Changeset 1060

Show
Ignore:
Timestamp:
08/22/07 14:07:52 (1 year ago)
Author:
thomase
Message:

refine worldcat links to use more sane urls for isbn and issn lookups; add search links for academic and book live search, and librarything

Files:

Legend:

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

    r1055 r1060  
    2525                            Search Google Books using ISBN = <xsl:value-of select="$isbn"/></xsl:element></li> 
    2626                    <li><xsl:element name="a"> 
    27                             <xsl:attribute name="href">http://www.worldcat.org/search?q=isbn%3A<xsl:value-of select="$isbn"/></xsl:attribute> 
     27                        <xsl:attribute name="href">http://www.librarything.com/isbn/<xsl:value-of select="$isbn"/></xsl:attribute> 
     28                        Search LibraryThing using ISBN = <xsl:value-of select="$isbn"/></xsl:element></li> 
     29                    <li><xsl:element name="a"> 
     30                            <xsl:attribute name="href">http://worldcat.org/isbn/<xsl:value-of select="$isbn"/></xsl:attribute> 
    2831                            Search WorldCat using ISBN = <xsl:value-of select="$isbn"/></xsl:element></li> 
    2932                </xsl:when> 
     
    3437                                Search the web using the phrase ("<xsl:value-of select="$thetitle"/>")</xsl:element></li> 
    3538                    <li><xsl:element name="a"> 
    36                             <xsl:attribute name="href">http://www.worldcat.org/search?q=issn%3A<xsl:value-of select="$issn"/></xsl:attribute> 
     39                            <xsl:attribute name="href">http://worldcat.org/issn/<xsl:value-of select="$issn"/></xsl:attribute> 
    3740                            Search WorldCat using ISSN = <xsl:value-of select="$issn"/></xsl:element></li> 
    3841                </xsl:when> 
     
    4245                            <li><xsl:element name="a"> 
    4346                                <xsl:attribute name="href">http://scholar.google.com/scholar?as_epq=<xsl:value-of select="$readytitle"/><xsl:if test="string-length($readyauthor) &gt; 0">&amp;as_sauthors=<xsl:value-of select="$readyauthor"/></xsl:if></xsl:attribute> 
    44                                 Search Google Scholar using title phrase ("<xsl:value-of select="$thetitle"/>") <xsl:if test="string-length($readyauthor)"> and author name ("<xsl:value-of select="$theauthor"/>")</xsl:if></xsl:element></li> 
     47                                Search Google Scholar using title phrase ("<xsl:value-of select="$thetitle"/>") <xsl:if test="string-length($readyauthor) &gt; 0"> and author name ("<xsl:value-of select="$theauthor"/>")</xsl:if></xsl:element></li> 
     48                            <li><xsl:element name="a"> 
     49                                <xsl:attribute name="href">http://search.live.com/results.aspx?scope=academic&amp;q=#q=<xsl:value-of select="replace($readytitle, ' ', '%20')"/><xsl:if test="string-length($readyauthor) &gt; 0">%20<xsl:value-of select="replace($readyauthor, ' ', '%20')"/></xsl:if>&amp;start=1</xsl:attribute> 
     50                                Search Live Search Academic using title phrase ("<xsl:value-of select="$thetitle"/>") <xsl:if test="string-length($readyauthor) &gt; 0"> and author name ("<xsl:value-of select="$theauthor"/>")</xsl:if></xsl:element></li> 
    4551                        </xsl:when> 
    4652                        <xsl:when test="$genre = 'book' or $genre = 'collection' or $genre = 'multi-volume work' or $genre = 'journal'"> 
     
    4854                                <xsl:attribute name="href">http://books.google.com/books?as_q=<xsl:value-of select="$readytitle"/><xsl:if test="string-length($readyauthor) &gt; 0">&amp;as_auth=<xsl:value-of select="$readyauthor"/></xsl:if></xsl:attribute> 
    4955                                Search Google Books using the words ("<xsl:value-of select="$thetitle"/>") <xsl:if test="string-length($readyauthor)"> and author name ("<xsl:value-of select="$theauthor"/>")</xsl:if></xsl:element></li> 
     56                            <li><xsl:element name="a"> 
     57                                <xsl:attribute name="href">http://www.librarything.com/title/<xsl:value-of select="lower-case(replace($readytitle, ' ', '_'))"/></xsl:attribute> 
     58                                Search LibraryThing using title phrase ("<xsl:value-of select="$thetitle"/>")</xsl:element></li> 
     59                            <li><xsl:element name="a"> 
     60                                <xsl:attribute name="href">http://search.live.com/results.aspx?q=&amp;scope=books#q=<xsl:value-of select="replace($readytitle, ' ', '%20')"/></xsl:attribute> 
     61                                Search Live Book Search using title phrase ("<xsl:value-of select="$thetitle"/>")</xsl:element></li> 
    5062                            <li><xsl:element name="a"> 
    5163                                <xsl:attribute name="href">http://www.worldcat.org/search?q=<xsl:value-of select="$readytitle"/></xsl:attribute> 
     
    5567                            <li><xsl:element name="a"> 
    5668                                <xsl:attribute name="href">http://www.google.com/search?as_q=<xsl:value-of select="$readytitle"/></xsl:attribute> 
    57                                 Search the web using the words ("<xsl:value-of select="$thetitle"/>")</xsl:element></li> 
     69                                Search the web with Google using the words ("<xsl:value-of select="$thetitle"/>")</xsl:element></li> 
    5870                        </xsl:otherwise> 
    5971                    </xsl:choose>