If a 111/711 uses a subfield n (Number of part/section/meeting), XSLT wasn't
displaying it which made for an incomplete display.
e.g., International Conference on Concurrency Theory 1999 : Eindhoven,
Netherlands)
instead of 10th International Conference on Concurrency Theory 1999 :
Eindhoven, Netherlands)
I've added it to show before subfield a if present. I've also removed the
period that XSLT puts in the results and display after the last occurrence of a
110/710. It's fairly standard practice for these entries to have a period in
the MARC record, so the XSLT display was showing a double period.
---
.../prog/en/xslt/MARC21slim2OPACDetail.xsl | 10 +++++++++-
.../prog/en/xslt/MARC21slim2OPACResults.xsl | 11 ++++++++++-
2 files changed, 19 insertions(+), 2 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..b49396f 100644
--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
@@ -133,10 +133,18 @@
</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="nameABCDN"/></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: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>
<xsl:for-each select="marc:datafie...@tag=111 or @tag=711]">
+ <xsl:choose>
+ <xsl:when test="marc:subfie...@code='n']">
+ <xsl:text> </xsl:text>
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">n</xsl:with-param>
</xsl:call-template>
+ <xsl:text> </xsl:text>
+ </xsl:when>
+ </xsl:choose>
<a>
<xsl:choose>
<xsl:when test="marc:subfie...@code=9]">
diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl
b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl
index cd9d9f2..5e6e870 100644
--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl
+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl
@@ -459,7 +459,7 @@
</xsl:choose>
<xsl:choose>
<xsl:when test="position()=last()">
- <xsl:call-template name="nameABCDN"/>.
+ <xsl:call-template name="nameABCDN"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="nameABCDN"/>;
@@ -474,6 +474,15 @@
</xsl:when>
</xsl:choose>
<xsl:choose>
+ <xsl:when test="marc:subfie...@code='n']">
+ <xsl:text> </xsl:text>
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">n</xsl:with-param>
+ </xsl:call-template>
+ <xsl:text> </xsl:text>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
<xsl:when test="position()=last()">
<xsl:call-template name="nameACDEQ"/>.
</xsl:when>
--
1.5.6.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches