[Koha-bugs] [Bug 23542] SRU import encoding issue

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 3 14:55:33 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23542

--- Comment #5 from sandboxes at biblibre.com <sandboxes at biblibre.com> ---
Created attachment 93588
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=93588&action=edit
Bug 23542: fix SRU import ending issue

When importing records from a SRU server, the diacritics have bad encoding.
I reproduce with BNF server so it may be a UNIMARC issue.
Looks like this does not affect autorities import for SRU server.

In C4::Breeding::_handle_one_result(), in case of a Z39.50 server, when
creating MARC::Record MarcToUTF8Record() is called which calls
SetMarcUnicodeFlag(). This ensures that leader indicates UTF-8 encoding.
Looking at MARC::Record->encoding() shows that encoding depends on leader even
for UNIMARC.
So this patch adds a call to SetMarcUnicodeFlag() in cas of a SRU server in
C4::Breeding::_handle_one_result().

Test plan :
1) Use a UNIMARC database
2) Configure a connexion to a UNIMARC SRU, for example BNF,
   see
https://doc.biblibre.com/koha/autour_de_koha/serveurs_z3950_sru#serveur_de_la_bnf
3) Go to cataloguing module
4) Click on 'New from Z39.50/SRU'
5) Choose only the SRU target
6) Search for ISBN 2266072889
7) Confirm you see good encoding : diacritic on 'a' of title 'Strate-a-gemmes'
8) Click on 'Marc preview'
9) Confirm you see good encoding
10) Click import
11) Confirm you see good encoding
12) Check SRU connexion on a MARC21 database is still OK

Signed-off-by: Séverine QUEUNE <severine.queune at bulac.fr>
Signed-off-by: Séverine QUEUNE <severine.queune at bulac.fr>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list