Created attachment 11512 [details] [review] Normalize records imported from Z39.50 servers. Records with separated diacritics might not show up in Zebra searches if the search terms use accented characters, because typed UTF-8 accented characters normally use combined diacritics. Some Z39.50 server may use the MARC-8 encoding, which uses separated diacritics. By forcing a normalization, all imported records will have combined diacritics. Example serveur using separated diacritics (MARC-21): http://www.collectionscanada.gc.ca/amicus/006002-400-f.html Hostname: amicus.collectionscanada.gc.ca Port: 210 Database: BN Syntax: MARC21/USMARC Encoding: MARC-8
Patch sponsored by the CCSR ( http://www.ccsr.qc.ca )
Works fine. My only point would be that function MarcToUTF8Record should have returned a normalized record already. Now we receive it and need to call SetUTF8Flag again (from the same module!). Signing off.
QA Comment: Code looks good. See also previous comment. A followup could handle the output of MarcToUTF8Record in the scripts bulkmarcimport.pl, bulkauthimport.pl and svc/new_bib. In those three cases a similar correction could be necessary.
Created attachment 12732 [details] [review] Signed patch
Patch pushed to master
Released in 3.10.0