Summary: | XSLT on OPAC is broken for incomplete 6xx fields | ||
---|---|---|---|
Product: | Koha | Reporter: | Katrin Fischer <katrin.fischer> |
Component: | OPAC | Assignee: | Owen Leonard <oleonard> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | fridolin.somers |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: | http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8513 | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: | ||
Attachments: | screenshot |
Is this a duplicate of 8513 ? Or same problem ? Is this for all MARC flavors ? The problem can occur in other places too. The problem was the empty link text breaking the HTML display. I am not sure and can't test right now :( |
Created attachment 11521 [details] screenshot Currently the OPAC XSLT page is broken, when you data includes an 6xx field, that includes no subfield that is marked for display (empty link). I was testing with German data that includes 689 fields for transporting "Schlagwortketten". To avoid the problem the XSLT should include a check for a displayable subfields before creating the link. Example with problematic data: <datafield tag="689" ind1="1" ind2="0"> <subfield code="A">c</subfield> <subfield code="0">(DE-588c)4542874-8</subfield> <subfield code="0">(DE-576)213479192</subfield> <subfield code="2">swd</subfield> <subfield code="a">Solesmes</subfield> <subfield code="b">Kloster</subfield> </datafield> <datafield tag="689" ind1="1" ind2="1"> <subfield code="A">s</subfield> <subfield code="0">(DE-588c)4021952-5</subfield> <subfield code="0">(DE-576)20894091X</subfield> <subfield code="2">swd</subfield> <subfield code="a">Gregorianischer Gesang</subfield> </datafield> <datafield tag="689" ind1="1" ind2=" "> <subfield code="5">DE-576</subfield> </datafield>