Bug 8615 - XSLT on OPAC is broken for incomplete 6xx fields
Summary: XSLT on OPAC is broken for incomplete 6xx fields
Status: CLOSED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Owen Leonard
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 05:34 UTC by Katrin Fischer
Modified: 2020-01-06 20:14 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
screenshot (36.39 KB, image/png)
2012-08-10 05:34 UTC, Katrin Fischer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2012-08-10 05:34:30 UTC
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>
Comment 1 Fridolin Somers 2012-09-19 08:58:59 UTC
Is this a duplicate of 8513 ? Or same problem ?

Is this for all MARC flavors ?
Comment 2 Katrin Fischer 2012-09-19 09:05:07 UTC
The problem can occur in other places too. 
The problem was the empty link text breaking the HTML display.
Comment 3 Fridolin Somers 2012-09-19 09:54:12 UTC
What about Bug 8678 ?
Comment 4 Katrin Fischer 2012-09-19 10:16:45 UTC
I am not sure and can't test right now :(