From 6bc962f53194620c948ad5f883b2f1ad145aec8c Mon Sep 17 00:00:00 2001 From: Katrin Fischer <katrin.fischer@bsz-bw.de> Date: Tue, 8 Jan 2013 13:18:49 +0100 Subject: [PATCH] [SIGNED-OFF] Bug 9363: Show Patent control information and report number (MARC21, XSLT, detail pages) Adds 088 $a and 013 $a,c,d,e,f to OPAC and intranet detail pages for MARC21 and XSLT. To test: 1) Check records with single and multiple 013 and 088 fields with different subfields catalogued. 2) Check records with no 088 or 013 present. 3) Verify display is ok and consistent. Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> Verified in opac and staff client by following all tests. --- .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 25 ++++++++++++++++++++ .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 25 ++++++++++++++++++++ 2 files changed, 50 insertions(+), 0 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 24349e1..ae83415 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -395,6 +395,31 @@ </span> </xsl:if> + <xsl:if test="marc:datafield[@tag=013]"> + <span class="results_summary patent_info"> + <span class="label">Patent information: </span> + <xsl:for-each select="marc:datafield[@tag=013]"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">acdef</xsl:with-param> + <xsl:with-param name="delimeter">, </xsl:with-param> + </xsl:call-template> + <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> + </xsl:for-each> + </span> + </xsl:if> + + <xsl:if test="marc:datafield[@tag=088]"> + <span class="results_summary report_number"> + <span class="label">Report number: </span> + <xsl:for-each select="marc:datafield[@tag=088]"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">a</xsl:with-param> + </xsl:call-template> + <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> + </xsl:for-each> + </span> + </xsl:if> + <!-- Other Title Statement: Alternate Graphic Representation (MARC 880) --> <xsl:if test="$display880"> <xsl:call-template name="m880Select"> diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl index fe08fd3..7cd3207 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl @@ -401,6 +401,31 @@ </span> </xsl:if> + <xsl:if test="marc:datafield[@tag=013]"> + <span class="results_summary patent_info"> + <span class="label">Patent information: </span> + <xsl:for-each select="marc:datafield[@tag=013]"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">acdef</xsl:with-param> + <xsl:with-param name="delimeter">, </xsl:with-param> + </xsl:call-template> + <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> + </xsl:for-each> + </span> + </xsl:if> + + <xsl:if test="marc:datafield[@tag=088]"> + <span class="results_summary report_number"> + <span class="label">Report number: </span> + <xsl:for-each select="marc:datafield[@tag=088]"> + <xsl:call-template name="subfieldSelect"> + <xsl:with-param name="codes">a</xsl:with-param> + </xsl:call-template> + <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> + </xsl:for-each> + </span> + </xsl:if> + <!-- Other Title Statement: Alternate Graphic Representation (MARC 880) --> <xsl:if test="$display880"> <xsl:call-template name="m880Select"> -- 1.7.2.3