[Koha-patches] Bug3567: (follow-up) Consider ISO language codes as well

Heymans, Wolfgang Wolfgang.Heymans at bsz-bw.de
Fri Sep 18 12:16:14 CEST 2009


---
 .../opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl
b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl
index eed0e1f..d101723 100644
--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl
+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slimUtils.xsl
@@ -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>
-- 
1.5.6.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Bug-3567-Consider-ISO-language-codes-as-well.patch
Type: application/octet-stream
Size: 1371 bytes
Desc: 0001-Bug-3567-Consider-ISO-language-codes-as-well.patch
URL: </pipermail/koha-patches/attachments/20090918/1c4b50dd/attachment-0002.obj>


More information about the Koha-patches mailing list