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

--- Comment #6 from Alexander Wagner <[email protected]> ---
Created attachment 168536
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168536&action=edit
Bug 37196: Add automatic punctuation for Marc-245

If the Marc Leader 18 is set to `c` or `n` add the necessary punctuation
for the Marc21 field 245 automatically. Otherwise assume the punctuation
exists and use the subfield data _as is_. The following subfields are
handled: bcfghknps

Additionally, all title parts are enclosed in individual `<span>` tags
with proper class assignments to allow for easy styling of all the
individual parts.

Note: some special cases (like title translations that should get an `=`
instead of a `:`) can not be handled fully automatically.

The change applies to:
- OPAC results
- OPAC details
- intranet results
- intranet details

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/

Reply via email to