Changeset 984

Show
Ignore:
Timestamp:
08/10/07 06:26:34 (1 year ago)
Author:
thomase
Message:

handle case where the IANA language subtag registry has more than one description element for a language (just take the first one)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • BibIt/trunk/modsdetails.xsl

    r953 r984  
    3030                        <ul> 
    3131                            <xsl:for-each select="$langs/descendant::subtag[. = $thislang]/.."> 
    32                                 <li>title <xsl:value-of select="type"/>:<xsl:text> </xsl:text><xsl:value-of select="normalize-space(description)"/></li> 
     32                                <li>title <xsl:value-of select="type"/>:<xsl:text> </xsl:text><xsl:value-of select="normalize-space(description[1])"/></li> 
    3333                            </xsl:for-each> 
    3434                        </ul> 
     
    3737                <xsl:otherwise> 
    3838                    <xsl:variable name="matchedlang" select="$langs/descendant::subtag[. = $thislang]/.."/> 
    39                     <li>title <xsl:value-of select="$matchedlang/type"/>:<xsl:text> </xsl:text><xsl:value-of select="normalize-space($matchedlang/description)"/></li> 
     39                    <li>title <xsl:value-of select="$matchedlang/type"/>:<xsl:text> </xsl:text><xsl:value-of select="normalize-space($matchedlang/description[1])"/></li> 
    4040                </xsl:otherwise> 
    4141            </xsl:choose>