From 773cf497992a6e20b4e518eace0fbb9f15cd0eb7 Mon Sep 17 00:00:00 2001
From: Katrin Fischer <katrin.fischer@bsz-bw.de>
Date: Fri, 25 Jul 2014 12:23:58 +0200
Subject: [PATCH] Bug 12501: Show dissertation note (MARC21 502) in XSLT
results
Bug 9356 added the dissertation note from MARC21 502 to the staff
and OPAC detail pages. This patch adds it to the result list.
1) Catalog a record with 502
Examples: http://www.loc.gov/marc/bibliographic/bd502.html
2) Important: Wait until the record got indexed by Zebra or
index it manually.
3) Verify your note shows up on the detail pages in staff and OPAC
4) Verfiy note also shows up on the result pages in staff and OPAC
5) Hide the dissertation note from display:
OpacUserCSS:
.diss_note {
display:none;
}
IntranetUserCSS:
.diss_note {
display:none;
}
6) Verify CSS works and all looks like before...
---
.../prog/en/xslt/MARC21slim2intranetResults.xsl | 13 +++++++++++++
.../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 13 +++++++++++++
2 files changed, 26 insertions(+)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl
index f3a1761..2a49c1c 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl
+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl
@@ -754,6 +754,19 @@
</span>
</xsl:if>
+ <!-- Dissertation note -->
+ <xsl:if test="marc:datafield[@tag=502]">
+ <span class="results_summary diss_note">
+ <span class="label">Dissertation note: </span>
+ <xsl:for-each select="marc:datafield[@tag=502]">
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">abcdgo</xsl:with-param>
+ </xsl:call-template>
+ </xsl:for-each>
+ <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise></xsl:choose>
+ </span>
+ </xsl:if>
+
<xsl:if test="marc:datafield[@tag=300]">
<span class="results_summary description"><span class="label">Description: </span>
<xsl:for-each select="marc:datafield[@tag=300]">
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl
index ea6af38..9dba489 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl
@@ -913,6 +913,19 @@
</span>
</xsl:if>
+ <!-- Dissertation note -->
+ <xsl:if test="marc:datafield[@tag=502]">
+ <span class="results_summary diss_note">
+ <span class="label">Dissertation note: </span>
+ <xsl:for-each select="marc:datafield[@tag=502]">
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">abcdgo</xsl:with-param>
+ </xsl:call-template>
+ </xsl:for-each>
+ <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise></xsl:choose>
+ </span>
+ </xsl:if>
+
<!-- Other Title Statement: Alternate Graphic Representation (MARC 880) -->
<xsl:if test="$display880">
<xsl:call-template name="m880Select">
--
1.7.10.4