[Koha-patches] [PATCH] Bug 5622 (Show 773 host in staff normal view)
Marcel de Rooy
M.de.Rooy at rijksmuseum.nl
Mon Jan 17 14:54:34 CET 2011
Applies to XSLT generated results in staff normal view.
Remove limitation to show host item entry only for leader19==c.
Use generic LOC label In: instead of Set:
Show title from 773t.
---
.../prog/en/xslt/MARC21slim2intranetDetail.xsl | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
index edaf280..06309fc 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
@@ -275,9 +275,9 @@
</span>
</xsl:if>
- <!-- Set -->
- <xsl:if test="$leader19='c'">
- <span class="results_summary"><span class="label">Set: </span>
+ <!-- Host item entry -->
+ <xsl:if test="marc:datafield[@tag=773]">
+ <span class="results_summary"><span class="label">In: </span>
<xsl:for-each select="marc:datafield[@tag=773]">
<a>
<xsl:choose>
@@ -285,10 +285,10 @@
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Control-number:<xsl:value-of select="marc:subfield[@code='w']"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
- <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Title:<xsl:value-of select="translate(//marc:datafield[@tag=245]/marc:subfield[@code='a'], '.', '')"/></xsl:attribute>
+ <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=Title:<xsl:value-of select="translate(marc:subfield[@code='t'], '.', '')"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
- <xsl:value-of select="translate(//marc:datafield[@tag=245]/marc:subfield[@code='a'], '.', '')" />
+ <xsl:value-of select="translate(marc:subfield[@code='t'], '.', '')" />
</a>
<xsl:choose>
<xsl:when test="position()=last()"></xsl:when>
--
1.6.0.6
More information about the Koha-patches
mailing list