From 681616694643acf46436df93e2ec2e607ca190c0 Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti <olli-antti.kivilahti@hypernova.fi> Date: Sun, 13 Sep 2020 23:57:41 +0200 Subject: [PATCH] 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> --- .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 17 +++++++++++++++++ .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 16f727a0e1..e403352ffd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -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"> diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index f507ea428e..c3a9e422cc 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -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"> -- 2.11.0