Bug 14094: DDC - Add separators for repeated $a subfields (MARC21)

Mulitple 082 fields are already separated by |, but multiple
$a in one 082 field were only separated by space, making those
not easy to read.

Patch takes care that the | separator is used in all cases.

To test:
- Catalog a record with multiple 082 fields
- Add one or multiple $a subfields to each
- Verify every single classification is separated from
  the others with a | in staff and in OPAC detail pages

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>

Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
Katrin Fischer 2015-06-08 04:46:05 +02:00 committed by Tomas Cohen Arazi
parent da8ec2d37a
commit 6d9d66e32a
2 changed files with 2 additions and 0 deletions

View File

@ -705,6 +705,7 @@
<xsl:for-each select="marc:datafield[@tag=082]">
<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">a</xsl:with-param>
<xsl:with-param name="delimeter"><xsl:text> | </xsl:text></xsl:with-param>
</xsl:call-template>
<xsl:choose>
<xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when>

View File

@ -760,6 +760,7 @@
<xsl:for-each select="marc:datafield[@tag=082]">
<xsl:call-template name="subfieldSelect">
<xsl:with-param name="codes">a</xsl:with-param>
<xsl:with-param name="delimeter"><xsl:text> | </xsl:text></xsl:with-param>
</xsl:call-template>
<xsl:choose>
<xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when>