Browse Source

Bug 22884: Show separator between 440 and 490 fields

This adds a ; as separator between 440 and 490 fields used in the
same record. Currently we loop first 440 and then 490. 490 is displayed
depending on the indicator.

So after we finish the first loop, we check for existence of 490 on the
same record now to decide if a separator is needed.

To test:
- Look at various records using one or multiple 440 and 490 fields
- Verify the display is correct, especially when both appar on the
  same record in both OPAC and staff

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
remotes/origin/19.11.x
Katrin Fischer 5 years ago
committed by Martin Renvoize
parent
commit
dd18ec355b
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 9
      koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
  2. 9
      koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl

9
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl

@ -207,7 +207,14 @@
</xsl:call-template>
</a>
<xsl:call-template name="part"/>
<xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> ; </xsl:text></xsl:otherwise></xsl:choose>
<xsl:choose>
<xsl:when test="position()=last()">
<xsl:if test="../marc:datafield[@tag=490][@ind1!=1]">
<xsl:text>; </xsl:text>
</xsl:if>
</xsl:when>
<xsl:otherwise><xsl:text> ; </xsl:text></xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<!-- 490 Series not traced, Ind1 = 0 -->

9
koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl

@ -226,7 +226,14 @@
</xsl:call-template>
</a>
<xsl:call-template name="part"/>
<xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> ; </xsl:text></xsl:otherwise></xsl:choose>
<xsl:choose>
<xsl:when test="position()=last()">
<xsl:if test="../marc:datafield[@tag=490][@ind1!=1]">
<xsl:text>; </xsl:text>
</xsl:if>
</xsl:when>
<xsl:otherwise><xsl:text> ; </xsl:text></xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<!-- 490 Series not traced, Ind1 = 0 -->

Loading…
Cancel
Save