[Bug 42157] New: Make MARC export Unicode normalization configurable
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42157 Bug ID: 42157 Summary: Make MARC export Unicode normalization configurable Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: MARC Bibliographic data support Assignee: koha-bugs@lists.koha-community.org Reporter: januszop@gmail.com QA Contact: testopia@bugs.koha-community.org Currently, bibliographic data stored in Koha is normalized as NFC. However, all exports (MARC utf8, MARCXML) are performed using NFD normalization (cf. Unicode::Normalize : NFC & NFD). Some users expect records exported from Koha to be NFC-normalized. Koha already includes built-in functions that perform the necessary conversions. Adding a new system preference would allow libraries to configure exports according to the needs of their local users. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42157 Janusz Kaczmarek <januszop@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff Patch complexity|--- |Trivial patch Assignee|koha-bugs@lists.koha-commun |januszop@gmail.com |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42157 --- Comment #1 from Janusz Kaczmarek <januszop@gmail.com> --- Created attachment 195946 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195946&action=edit Bug 42157: New system preference MARCExportUnicodeNormalization Patch from commit 4ad1efd -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42157 --- Comment #2 from Janusz Kaczmarek <januszop@gmail.com> --- Created attachment 195947 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195947&action=edit Bug 42157: Make MARC export Unicode normalization configurable Currently, bibliographic data stored in Koha is normalized as NFC. However, all exports (MARC utf8, MARCXML) are performed using NFD normalization (cf. Unicode::Normalize : NFC & NFD). Some users expect records exported from Koha to be NFC-normalized. Koha already includes built-in functions that perform the necessary conversions. Adding a new system preference would allow libraries to configure exports according to the needs of their local users. 1. In a standard ktd (Koha Testing Docker) installation, change the heading in authority record #1702 to a name containing non-basic ASCII characters, e.g., Maître, Françoise-Thérèse. 2. Verify that the heading has updated accordingly in bibliographic record #1. 3. Export authority #1702 and biblio #1 to MARC UTF-8 (biblio also from OPAC). 4. Verify that in both exported records, the characters in the name "Maître, Françoise-Thérèse" are normalized as NFD—resulting in more than one character per glyph (you can use MarcEdit or Notepad++ to verify this). 5. Apply patch, updatedatabase, and restart_all. 6. Set the MARCExportUnicodeNormalization system preference to NFC. 7. Repeat steps 3 and 4. Verify that the characters in the name "Maître, Françoise-Thérèse" are now normalized as NFC—resulting in one character per glyph. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42157 Janusz Kaczmarek <januszop@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@openfifth.c | |o.uk -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org