From: Jared Camins-Esakov <jcamins@bywatersolutions.com>
To: dev@bywatersolutions.com
Cc: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Subject: [PATCH] Bug 5816: XSLT doesn't display enhanced contents
Date: Tue, 15 Mar 2011 13:38:54 -0400
Message-Id: <1300210734-7624-1-git-send-email-jcamins@bywatersolutions.com>
X-Mailer: git-send-email 1.7.2.3
X-Original-Sender: jcamins@bywatersolutions.com
X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com:
 209.85.216.177 is neither permitted nor denied by best guess record for
 domain of jcamins@bywatersolutions.com) smtp.mail=jcamins@bywatersolutions.com
Precedence: list
Mailing-list: list dev@bywatersolutions.com; contact dev+owners@bywatersolutions.com
List-ID: <dev.bywatersolutions.com>
X-Google-Group-Id: 274270250429
List-Help: <http://www.google.com/support/a/bywatersolutions.com/bin/static.py?hl=en_US&page=groups.cs>,
 <mailto:dev+help@bywatersolutions.com>
Content-Type: text/plain; charset="utf-8"

This patch corrects and standardizes the display of enhanced contents (MARC 505
with ind2='0').
---
 .../prog/en/xslt/MARC21slim2intranetDetail.xsl     |    6 +++---
 .../prog/en/xslt/MARC21slim2OPACDetail.xsl         |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
index 2b6af2d..5320c40 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
@@ -490,9 +490,9 @@
         </xsl:choose>  
         <xsl:choose>
         <xsl:when test="@ind2=0">
-            <xsl:for-each select="marc:subfield[@code='t']">
-                <xsl:value-of select="marc:subfield[@code=t]"/> <xsl:value-of select="marc:subfield[@code=r]"/>
-            </xsl:for-each> 
+            <xsl:call-template name="subfieldSelect">
+                <xsl:with-param name="codes">tru</xsl:with-param>
+            </xsl:call-template>
         </xsl:when>
         <xsl:otherwise>
             <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 6a62616..cc88220 100755
--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl
@@ -570,9 +570,9 @@
         </xsl:choose>
         <xsl:choose>
         <xsl:when test="@ind2=0">
-            <xsl:for-each select="marc:subfield[@code='t']">
-                <xsl:value-of select="marc:subfield[@code=t]"/> <xsl:value-of select="marc:subfield[@code=r]"/>
-            </xsl:for-each>
+            <xsl:call-template name="subfieldSelect">
+                <xsl:with-param name="codes">tru</xsl:with-param>
+            </xsl:call-template>
         </xsl:when>
         <xsl:otherwise>
             <xsl:call-template name="subfieldSelect">
-- 
1.7.2.3