https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37196
Paul Derscheid <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #174381|0 |1 is obsolete| | --- Comment #15 from Paul Derscheid <[email protected]> --- Created attachment 187554 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187554&action=edit Bug 37196: Add automatic punctuation for Marc title fields Add a new MARC filter to automatically inject punctuation for MARC fields 245, 246 and 246 if the MARC Leader 18 is set to `c` or `n`. Otherwise assume the punctuation exists and use the subfield data _as is_. Hook in this filter before any XSL tranformations happen, so all subsequent processing can assume that punctuation _exists_. The following subfields are handled: - 245: bcdefghknps - 246/247: bfghinqrt Note: some special cases (like title translations that should get an `=` instead of a `:`) can not be handled fully automatically. Testplan: 1. Start `ktd` 2. Check a record with additional title fields. Examples: - biblionumber 55: DÃ in do Eimhir = Poems to Eimhir / Somhairle MacGill-Eain = Sorley MacLean ; edited by Christopher Whyte. - biblionumber 58 'More fruitful than the soil' : army, empire and the Scottish Highlands, 1715-1815 / Andrew Mackillop. Those should display correctly, as they hold all punctuations _in_ the record. (Marc Leader 18 set to `a`). 3. Apply the patch 4. Call up the records again They should display unchanged as the Leader 18 is still set to `a` => no automatic punctuation is applied 5. Edit both records and only set the Leader 18 to either `c` or `n`. (Note: this is _incorrect_ wrt the record semantic.) All punctuation chars appear _twice_ as Koha adds them automatically as instructed even though they are there. The title display like - DÃ in do Eimhir = : Poems to Eimhir / / Somhairle MacGill-Eain = Sorley MacLean ; edited by Christopher Whyte. - 'More fruitful than the soil' : : army, empire and the Scottish Highlands, 1715-1815 / / Andrew Mackillop. Note that for biblionumber 55 Koha displays `= :` as it is not possible to know automatically that there should be an `=` instad of the `:`. Sponsored-by: Deutsches Elektronen-Synchrotron DESY, Library -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
