Summary: | 505$t - change in line break/display | ||
---|---|---|---|
Product: | Koha | Reporter: | Sara Brown <sbrown> |
Component: | Cataloging | Assignee: | Bugs List <koha-bugs> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | trivial | ||
Priority: | P5 - low | CC: | fridolin.somers, jonathan.druart, lucas, m.de.rooy |
Version: | 21.05 | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19616 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28703 |
||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | 19616 | ||
Bug Blocks: |
Description
Sara Brown
2021-11-10 17:29:29 UTC
Hi Sara, when I was working on bug 19616 I found no way to keep the existing behaviour and still make the $g display nicely with the subfields it belongs to. XSLT is a bit limiting in what you can do easily and works different to a programming language. I'd be happy if someone could help out here that can make both the old and new behaviour work together. Say you have several 505 with several $t$r$g, what's the expected behaviour then? Subfield g, r, t are repeatable, a is not. For defining "items" this is all I could find back then and asusmeed that each item should go on a new line: In records formulated according to AACR 2, a space-hyphen-hyphen-space ( -- ) is recorded between each item in the contents note unless a delimiter/subfield code follows in which case there is no ending space. In pre-AACR 2 records, items are separated by a period-hyphen-hyphen (.--). I am not sure what indications the subfield sequence can give. Here it's tg tg... 505 00$tQuatrain II$g(16:35) --$tWater ways$g(1:57) --$tWaves$g(10:49). But then the next example is already different with gt gt gt: 505 10$gNr. 1.$tRegion Neusiedlersee --$gNr. 2.$tRegion Rosalia/Lithagebirge --$gNr. 3.$tRegion Mettelburgenland --$gNr. 4.$tRegion südliches Burgenland --$gNr. 5.$tRegion Südburgland You'd need to keep the ones corresponding on one line togehter, but if the subfield sequence can change like this, I saw no other option than using the --. Example from LOC documentation: https://www.loc.gov/marc/bibliographic/bd505.html Maybe this could be a compromise: we check for existence of $g, if there are no $g we break before each $t. Would that work Sara? |