From 7049ec93d10bc217b974a0c46430285ee4a89010 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Date: Mon, 1 May 2017 13:04:07 +0200 Subject: [PATCH] Bug 15140: Display $i when ind2==8 Content-Type: text/plain; charset=utf-8 See MARC specification. Note that we have a preceding text before all 776s too. Test plan: [1] Set field 776 ind2 to 8. And add text in $i. [2] Look for this text on OPAC detail and staff detail. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl | 6 ++++++ koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 36fa3c7..d327c7a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -771,6 +771,12 @@ </xsl:otherwise> </xsl:choose> </xsl:variable> + <xsl:if test="@ind2=8 and marc:subfield[@code='i']"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">i</xsl:with-param> + </xsl:call-template> + <xsl:text>: </xsl:text> + </xsl:if> <xsl:choose> <xsl:when test="marc:subfield[@code='w']"> <a> diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index fee0893..4b97672 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -823,6 +823,12 @@ </xsl:otherwise> </xsl:choose> </xsl:variable> + <xsl:if test="@ind2=8 and marc:subfield[@code='i']"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">i</xsl:with-param> + </xsl:call-template> + <xsl:text>: </xsl:text> + </xsl:if> <xsl:choose> <xsl:when test="marc:subfield[@code='w']"> <a> -- 2.1.4