Bug 3567: Consider ISO language codes as well

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>
This commit is contained in:
Wolfgang Heymans 2009-09-18 12:02:01 +02:00 committed by Galen Charlton
parent 42748246e9
commit fe35d0f704
1 changed files with 1 additions and 1 deletions

View 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>