Bug 24322: National Library of Medicine (NLM) call number to XSLT Detail

This adds MARC21 060 - National Library of Medicine Call Number
https://www.loc.gov/marc/bibliographic/bd060.html

To test:
- Catalog records using the 060, examples can be found in the
  LOC documentation.
- Verify that the field displays on the detail pages in staff
  and OPAC

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
RRescued this patch by redoing the changes. Only change made
was moving the section up before "Other classification".

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Olli-Antti Kivilahti 2020-09-13 23:57:41 +02:00 committed by Jonathan Druart
parent 0efa9a917b
commit 6824b93b02
2 changed files with 34 additions and 0 deletions

View File

@ -948,6 +948,23 @@
</span>
</xsl:if>
<!-- NLM classification -->
<xsl:if test="marc:datafield[@tag=060]">
<span class="results_summary nlm">
<span class="label">NLM classification: </span>
<xsl:for-each select="marc:datafield[@tag=060]">
<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>
<xsl:otherwise> | </xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</span>
</xsl:if>
<!-- Other classification -->
<xsl:if test="marc:datafield[@tag=084]">
<span class="results_summary oc">

View File

@ -1000,6 +1000,23 @@
</span>
</xsl:if>
<!-- NLM classification -->
<xsl:if test="marc:datafield[@tag=060]">
<span class="results_summary nlm">
<span class="label">NLM classification: </span>
<xsl:for-each select="marc:datafield[@tag=060]">
<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>
<xsl:otherwise> | </xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</span>
</xsl:if>
<!-- Other classification -->
<xsl:if test="marc:datafield[@tag=084]">
<span class="results_summary oc">