[Koha-patches] [PATCH] [SIGNED-OFF] Bug 6496 - tidy the display of 710 fields on XSLT
Nicole C. Engard
nengard at bywatersolutions.com
Wed Sep 7 19:00:36 CEST 2011
From: Robin Sheat <robin at catalyst.net.nz>
This puts '--' between 710$b fields, and replaces the '.' with a '; ' if
there are additional authors.
Signed-off-by: Nicole C. Engard <nengard at bywatersolutions.com>
---
.../prog/en/xslt/MARC21slim2intranetDetail.xsl | 7 ++++++-
.../prog/en/xslt/MARC21slim2OPACDetail.xsl | 14 ++++++++++++--
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
index 4af47bd..aea48a1 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
@@ -756,7 +756,12 @@
</xsl:call-template>
</xsl:for-each>
<xsl:for-each select="marc:subfield[@code='b']">
- <xsl:value-of select="."/>
+ <xsl:value-of select="."/>
+ <xsl:choose>
+ <xsl:when test="position() != last()">
+ <xsl:text> -- </xsl:text>
+ </xsl:when>
+ </xsl:choose>
</xsl:for-each>
<xsl:if test="marc:subfield[@code='c'] or marc:subfield[@code='d'] or marc:subfield[@code='n']">
<xsl:call-template name="subfieldSelect">
diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
index d4f763f..8fe0cf7 100755
--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
@@ -142,10 +142,15 @@
</xsl:choose>
<xsl:call-template name="nameABCDQ"/></a>
<xsl:choose>
- <xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
+ <xsl:when test="position()!=last()"><xsl:text>; </xsl:text></xsl:when></xsl:choose>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag=110 or @tag=710]">
+ <xsl:choose>
+ <xsl:when test="position()=1">
+ <xsl:text>; </xsl:text>
+ </xsl:when>
+ </xsl:choose>
<a>
<xsl:choose>
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'">
@@ -898,7 +903,12 @@
</xsl:call-template>
</xsl:for-each>
<xsl:for-each select="marc:subfield[@code='b']">
- <xsl:value-of select="."/>
+ <xsl:value-of select="."/>
+ <xsl:choose>
+ <xsl:when test="position() != last()">
+ <xsl:text> -- </xsl:text>
+ </xsl:when>
+ </xsl:choose>
</xsl:for-each>
<xsl:if test="marc:subfield[@code='c'] or marc:subfield[@code='d'] or marc:subfield[@code='n']">
<xsl:call-template name="subfieldSelect">
--
1.7.2.3
More information about the Koha-patches
mailing list