Changeset 1063

Show
Ignore:
Timestamp:
08/23/07 11:25:28 (1 year ago)
Author:
thomase
Message:

do something sensible with query strings if there's more than one isbn or issn

Files:

Legend:

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

    r1060 r1063  
    2020            <xsl:choose> 
    2121                <xsl:when test="mods:identifier[@type='isbn']"> 
    22                     <xsl:variable name="isbn"><xsl:value-of select="mods:identifier[@type='isbn']"/></xsl:variable> 
     22                    <xsl:variable name="isbn"><xsl:value-of select="mods:identifier[@type='isbn'][1]"/></xsl:variable> 
    2323                    <li><xsl:element name="a"> 
    2424                            <xsl:attribute name="href">http://books.google.com/books?as_isbn=<xsl:value-of select="$isbn"/></xsl:attribute> 
     
    3232                </xsl:when> 
    3333                <xsl:when test="mods:identifier[@type='issn']"> 
    34                     <xsl:variable name="issn"><xsl:value-of select="mods:identifier[@type='issn']"/></xsl:variable> 
     34                    <xsl:variable name="issn"><xsl:value-of select="mods:identifier[@type='issn'][1]"/></xsl:variable> 
    3535                    <li><xsl:element name="a"> 
    3636                                <xsl:attribute name="href">http://www.google.com/search?as_epq=<xsl:value-of select="$readytitle"/></xsl:attribute>