Bug 3567: Consider ISO language codes as well
authorWolfgang Heymans <wolfgang.heymans@bsz-bw.de>
Fri, 18 Sep 2009 10:02:01 +0000 (12:02 +0200)
committerGalen Charlton <gmcharlt@gmail.com>
Mon, 1 Mar 2010 16:19:35 +0000 (11:19 -0500)
Consider ISO language codes like 'Hebr' as well as 2-letter MARC codes like '2(' when checking trailing '/r' in linkage field.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl

index eed0e1f..d101723 100644 (file)
@@ -99,7 +99,7 @@
                     </xsl:if>
                     <xsl:choose>
                         <!-- display right-to-left tags floating right of their left-to-right counterparts -->
-                        <xsl:when test="substring($code6,10,2) ='/r'">
+                        <xsl:when test="substring($code6,string-length($code6)-1,2) ='/r'">
                             <xsl:attribute name="style">display:block; text-align:right; float:right; width:50%; padding-left:20px</xsl:attribute>
                             <xsl:attribute name="dir">rtl</xsl:attribute>
                         </xsl:when>