[Koha-patches] [PATCH] Improve detail page MARC21 XSL file for 505 and 520 tags
Frédéric Demians
f.demians at tamil.fr
Sun Nov 8 10:28:59 CET 2009
Some tags weren't displayed propertly:
505 If there is no indicator 1, content label is not displayed and
then repeated 505 tags are also incorrecly displayed. This patch
add a default label.
502 Wasn't displayed at all. Added in this patch.
---
.../prog/en/xslt/MARC21slim2OPACDetail.xsl | 23 +++++++++++++++++--
1 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
index 351bd50..a855b16 100644
--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
@@ -453,15 +453,15 @@
<xsl:for-each select="marc:datafield[@tag=505]">
<span class="results_summary"><span class="label">
<xsl:choose>
- <xsl:when test="@ind1=0">
- Contents:
- </xsl:when>
<xsl:when test="@ind1=1">
Incomplete contents:
</xsl:when>
<xsl:when test="@ind1=1">
Partial contents:
</xsl:when>
+ <xsl:otherwise>
+ Contents:
+ </xsl:otherwise>
</xsl:choose>
</span>
<xsl:choose>
@@ -480,6 +480,23 @@
</xsl:for-each>
</xsl:if>
+ <xsl:for-each select="marc:datafield[@tag=520]">
+ <span class="results_summary"><span class="label">
+ <xsl:choose>
+ <xsl:when test="@ind1=0"><xsl:text>Subject: </xsl:text></xsl:when>
+ <xsl:when test="@ind1=1"><xsl:text>Review: </xsl:text></xsl:when>
+ <xsl:when test="@ind1=2"><xsl:text>Scope and content: </xsl:text></xsl:when>
+ <xsl:when test="@ind1=3"><xsl:text>Abstract: </xsl:text></xsl:when>
+ <xsl:when test="@ind1=4"><xsl:text>Content advice: </xsl:text></xsl:when>
+ <xsl:otherwise><xsl:text>Summary: </xsl:text></xsl:otherwise>
+ </xsl:choose>
+ </span>
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">abcu</xsl:with-param>
+ </xsl:call-template>
+ </span>
+ </xsl:for-each>
+
<!-- 780 -->
<xsl:if test="marc:datafield[@tag=780]">
<xsl:for-each select="marc:datafield[@tag=780]">
--
1.6.4.3
More information about the Koha-patches
mailing list