| 412 | | ================================================================ --> |
|---|
| 413 | | <xsl:template match="mods:mods[mods:genre='article']" mode="coins"> |
|---|
| | 440 | ================================================================ --> |
|---|
| | 441 | <xsl:template match="mods:mods[mods:genre='article' or mods:genre='book' or mods:genre='collection' or mods:genre='multi-volume work']" mode="coins"> |
|---|
| | 442 | |
|---|
| | 443 | <!-- build a variable containing the necessary key-value pairs; we'll clean it up anon --> |
|---|
| | 444 | <xsl:variable name="coins"> |
|---|
| | 445 | ctx_ver=Z39.88-2004& |
|---|
| | 446 | |
|---|
| | 447 | <!-- genre indicators --> |
|---|
| | 448 | <xsl:call-template name="coins_genre"><xsl:with-param name="mods" select="."/></xsl:call-template> |
|---|
| | 449 | |
|---|
| | 450 | <!-- titles for this work (not parents) --> |
|---|
| | 451 | <xsl:call-template name="coins_titles"><xsl:with-param name="mods" select="."/></xsl:call-template> |
|---|
| | 452 | |
|---|
| | 453 | <!-- human authors --> |
|---|
| | 454 | <xsl:for-each select="mods:name[@type='personal' and mods:role/mods:roleTerm='author']"> |
|---|
| | 455 | <xsl:if test="count(preceding-sibling::mods:name[@type='personal']) = 0"> |
|---|
| | 456 | rft.aulast=<xsl:value-of select="mods:namePart[@type='family']"/>& |
|---|
| | 457 | rft.aufirst=<xsl:value-of select="mods:namePart[@type='given']"/>& |
|---|
| | 458 | </xsl:if> |
|---|
| | 459 | rft.au=<xsl:call-template name="makecoinstitle"><xsl:with-param name="rawtitle"><xsl:value-of select="mods:namePart[@type='given']"/><xsl:text> </xsl:text><xsl:value-of select="mods:namePart[@type='family']"/></xsl:with-param></xsl:call-template>& |
|---|
| | 460 | </xsl:for-each> |
|---|
| | 461 | |
|---|
| | 462 | <!-- date of publication; does not include date of journal volume --> |
|---|
| | 463 | <xsl:for-each select="mods:originInfo/mods:dateIssued">rft.date=<xsl:value-of select="."/>&</xsl:for-each> |
|---|
| | 464 | |
|---|
| | 465 | <!-- publishers --> |
|---|
| | 466 | <xsl:for-each select="mods:originInfo/mods:publisher">rft.pub=<xsl:call-template name="makecoinstitle"><xsl:with-param name="rawtitle"><xsl:value-of select="."/></xsl:with-param></xsl:call-template>&</xsl:for-each> |
|---|
| | 467 | |
|---|
| | 468 | <!-- places of publication --> |
|---|
| | 469 | <xsl:for-each select="mods:originInfo/mods:place/mods:placeTerm">rft.place=<xsl:call-template name="makecoinstitle"><xsl:with-param name="rawtitle"><xsl:value-of select="."/></xsl:with-param></xsl:call-template>&</xsl:for-each> |
|---|
| | 470 | |
|---|
| | 471 | <!-- isbns --> |
|---|
| | 472 | <xsl:for-each select="mods:identifier[@type='isbn']">rft.isbn=<xsl:value-of select="."/>&</xsl:for-each> |
|---|
| | 473 | |
|---|
| | 474 | <!-- information related to parent works --> |
|---|
| | 475 | <xsl:apply-templates select="mods:relatedItem[@type='host']" mode="coins"/> |
|---|
| | 476 | </xsl:variable> |
|---|
| | 477 | |
|---|
| | 478 | <!-- remove spaces --> |
|---|
| | 479 | <xsl:variable name="cleancoins"><xsl:value-of select="replace(normalize-space($coins), ' ', '')"/></xsl:variable> |
|---|
| | 480 | |
|---|
| | 481 | <!-- remove trailing ampersand, if there is one --> |
|---|
| | 482 | <xsl:variable name="readycoins"> |
|---|
| | 483 | <xsl:choose> |
|---|
| | 484 | <xsl:when test="substring($cleancoins, string-length($cleancoins), 1) = '&'"> |
|---|
| | 485 | <xsl:value-of select="substring($cleancoins, 1, string-length($cleancoins) - 1)"/> |
|---|
| | 486 | </xsl:when> |
|---|
| | 487 | <xsl:otherwise><xsl:value-of select="$cleancoins"/></xsl:otherwise> |
|---|
| | 488 | </xsl:choose> |
|---|
| | 489 | </xsl:variable> |
|---|
| | 490 | |
|---|
| | 491 | <!-- emit the xhtml span element with the appropriate attribute tagging for COinS --> |
|---|
| | 492 | <p id="coins"><xsl:element name="span"> |
|---|
| | 493 | <xsl:attribute name="class">Z3988</xsl:attribute> |
|---|
| | 494 | <xsl:attribute name="title"><xsl:value-of select="$readycoins" /></xsl:attribute> |
|---|
| | 495 | This page includes embedded <a href="http://ocoins.info/" |
|---|
| | 496 | title="ContextObjects in Spans bibliographic data">COinS bibliographic |
|---|
| | 497 | data</a>, so it should be possible to capture the bibliographic data |
|---|
| | 498 | presented here using <a href="http://www.zotero.org">Zotero</a>. Note, |
|---|
| | 499 | however, that the <a |
|---|
| | 500 | href="http://alcme.oclc.org/openurl/servlet/OAIHandler?verb=ListRecords&metadataPrefix=oai_dc&set=Core:Metadata+Formats" |
|---|
| | 501 | >OpenURL Core Metadata Formats used by COinS</a> for <a |
|---|
| | 502 | href="http://alcme.oclc.org/openurl/servlet/OAIHandler/extension?verb=GetMetadata&metadataPrefix=mtx&identifier=info:ofi/fmt:kev:mtx:book" |
|---|
| | 503 | >books</a> and <a |
|---|
| | 504 | href="http://alcme.oclc.org/openurl/servlet/OAIHandler/extension?verb=GetMetadata&metadataPrefix=mtx&identifier=info:ofi/fmt:kev:mtx:journal" |
|---|
| | 505 | >articles</a> do not provide for all the bibliographic details captured in |
|---|
| | 506 | our records. To get a more complete citation in Zotero (or another system of |
|---|
| | 507 | your choice), download the <a href="http://www.loc.gov/standards/mods/" |
|---|
| | 508 | title="Metadata Object Description Schema">MODS</a> XML file linked below and import it locally.</xsl:element></p> |
|---|
| | 509 | </xsl:template> |
|---|
| | 510 | |
|---|
| | 511 | <xsl:template match="mods:relatedItem" mode="coins"> |
|---|
| | 512 | <xsl:variable name="parentref"><xsl:value-of select="substring-after(./@xlink:href, '#')"/></xsl:variable> |
|---|
| | 513 | <xsl:variable name="parent" select="//mods:mods[@ID=$parentref]"/> |
|---|
| | 514 | <xsl:variable name="parentgenre"><xsl:value-of select="$parent/mods:genre"/></xsl:variable> |
|---|
| | 515 | <xsl:apply-templates select="$parent" mode="coinsparent"/> |
|---|
| | 516 | <xsl:apply-templates select="mods:part/mods:detail" mode="coins"/> |
|---|
| | 517 | <xsl:apply-templates select="mods:part/mods:extent" mode="coins"/> |
|---|
| | 518 | <xsl:apply-templates select="mods:part/mods:date" mode="coins"/> |
|---|
| | 519 | |
|---|
| | 520 | </xsl:template> |
|---|
| | 521 | |
|---|
| | 522 | <xsl:template match="mods:detail" mode="coins"> |
|---|
| | 523 | <xsl:choose> |
|---|
| | 524 | <xsl:when test="@type='volume'"> |
|---|
| | 525 | rft.volume=<xsl:value-of select="mods:number"/>& |
|---|
| | 526 | </xsl:when> |
|---|
| | 527 | </xsl:choose> |
|---|
| | 528 | </xsl:template> |
|---|
| | 529 | |
|---|
| | 530 | <xsl:template match="mods:extent" mode="coins"> |
|---|
| | 531 | <xsl:choose> |
|---|
| | 532 | <xsl:when test="@unit='pages'"> |
|---|
| | 533 | <xsl:for-each select="mods:start">rft.spage=<xsl:value-of select="."/>&</xsl:for-each> |
|---|
| | 534 | <xsl:for-each select="mods:end">rft.epage=<xsl:value-of select="."/>&</xsl:for-each> |
|---|
| | 535 | </xsl:when> |
|---|
| | 536 | <!-- coins doesn't seem to have support for extents other than columns --> |
|---|
| | 537 | </xsl:choose> |
|---|
| | 538 | </xsl:template> |
|---|
| | 539 | |
|---|
| | 540 | <xsl:template match="mods:date[ancestor::mods:part]" mode="coins"> |
|---|
| | 541 | rft.date=<xsl:value-of select="."/>& |
|---|
| | 542 | </xsl:template> |
|---|
| | 543 | |
|---|
| | 544 | |
|---|
| | 545 | |
|---|
| | 546 | <xsl:template match="mods:mods" mode="coinsparent"> |
|---|
| | 547 | <xsl:call-template name="coins_titles"><xsl:with-param name="mods" select="."/></xsl:call-template> |
|---|
| | 548 | <xsl:if test="mods:genre = 'book' or mods:genre = 'collection' or mods:genre = 'multi-volume work'"> |
|---|
| | 549 | <xsl:for-each select="mods:originInfo/mods:dateIssued">rft.date=<xsl:value-of select="."/>&</xsl:for-each> |
|---|
| | 550 | <xsl:for-each select="mods:originInfo/mods:publisher">rft.pub=<xsl:call-template name="makecoinstitle"><xsl:with-param name="rawtitle"><xsl:value-of select="."/></xsl:with-param></xsl:call-template>&</xsl:for-each> |
|---|
| | 551 | <xsl:for-each select="mods:originInfo/mods:place/mods:placeTerm">rft.place=<xsl:call-template name="makecoinstitle"><xsl:with-param name="rawtitle"><xsl:value-of select="."/></xsl:with-param></xsl:call-template>&</xsl:for-each> |
|---|
| | 552 | <xsl:for-each select="mods:identifier[@type='isbn']">rft.isbn=<xsl:value-of select="."/>&</xsl:for-each> |
|---|
| | 553 | </xsl:if> |
|---|
| | 554 | <xsl:for-each select="mods:identifier[@type='issn']">rft.issn=<xsl:value-of select="."/>&</xsl:for-each> |
|---|
| | 555 | <xsl:for-each select="mods:identifier[@type='isbn']">rft.isbn=<xsl:value-of select="."/>&</xsl:for-each> |
|---|
| | 556 | </xsl:template> |
|---|
| | 557 | |
|---|
| | 558 | <xsl:template name="coins_genre"> |
|---|
| | 559 | <xsl:param name="mods"/> |
|---|
| | 560 | <xsl:variable name="genre"><xsl:value-of select="$mods/mods:genre"></xsl:value-of></xsl:variable> |
|---|
| | 561 | rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3A |
|---|
| | 562 | <xsl:choose> |
|---|
| | 563 | <xsl:when test="$genre = 'article'"> |
|---|
| | 564 | <xsl:variable name="parentgenres"><xsl:call-template name="coins_parentgenres"><xsl:with-param name="mods" select="."/></xsl:call-template></xsl:variable> |
|---|
| | 565 | <xsl:choose> |
|---|
| | 566 | <xsl:when test="contains($parentgenres, 'journal')">journal&rft.genre=article&</xsl:when> |
|---|
| | 567 | <xsl:otherwise>book&rft.genre=bookitem&</xsl:otherwise> |
|---|
| | 568 | </xsl:choose> |
|---|
| | 569 | </xsl:when> |
|---|
| | 570 | <xsl:when test="$genre = 'book' or $genre = 'collection' or $genre = 'multi-volume work'">book&rft.genre=book&</xsl:when> |
|---|
| | 571 | </xsl:choose> |
|---|
| | 572 | </xsl:template> |
|---|
| | 573 | |
|---|
| | 574 | <xsl:template name="coins_parentgenres"> |
|---|
| | 575 | <xsl:param name="mods"/> |
|---|
| | 576 | <xsl:for-each select="$mods/mods:relatedItem[@type='host']"> |
|---|
| | 577 | <xsl:variable name="parentref"><xsl:value-of select="substring-after(./@xlink:href, '#')"/></xsl:variable> |
|---|
| | 578 | <xsl:variable name="parent" select="//mods:mods[@ID=$parentref]"/> |
|---|
| | 579 | <xsl:value-of select="$parent/mods:genre"/> |
|---|
| | 580 | </xsl:for-each> |
|---|
| | 581 | </xsl:template> |
|---|
| | 582 | |
|---|
| | 583 | <xsl:template name="coins_titles"> |
|---|
| | 584 | <xsl:param name="mods"/> |
|---|
| | 585 | <xsl:param name="doshort">yes</xsl:param> |
|---|
| | 586 | <xsl:variable name="genre"><xsl:value-of select="$mods/mods:genre"></xsl:value-of></xsl:variable> |
|---|
| | 587 | <xsl:variable name="thistitle"><xsl:call-template name="makecoinstitle"><xsl:with-param name="rawtitle"><xsl:value-of select="$mods/mods:titleInfo[@type='uniform'][1]/mods:title"/></xsl:with-param></xsl:call-template></xsl:variable> |
|---|
| | 588 | <xsl:choose> |
|---|
| | 589 | <xsl:when test="$genre = 'article'"> |
|---|
| | 590 | rft.atitle=<xsl:value-of select="$thistitle"/>& |
|---|
| | 591 | </xsl:when> |
|---|
| | 592 | <xsl:when test="$genre = 'book' or $genre = 'collection' or $genre = 'multi-volume work'"> |
|---|
| | 593 | rft.btitle=<xsl:value-of select="$thistitle"/>& |
|---|
| | 594 | </xsl:when> |
|---|
| | 595 | <xsl:when test="$genre='journal'"> |
|---|
| | 596 | rft.jtitle=<xsl:value-of select="$thistitle"/>& |
|---|
| | 597 | </xsl:when> |
|---|
| | 598 | <xsl:when test="$genre='series'"> |
|---|
| | 599 | rft.series=<xsl:value-of select="$thistitle"/>& |
|---|
| | 600 | </xsl:when> |
|---|
| | 601 | </xsl:choose> |
|---|
| | 602 | <xsl:if test="$doshort='yes' and $genre='journal'"> |
|---|
| | 603 | <xsl:for-each select="$mods/mods:titleInfo[@type='abbreviated'][1]"> |
|---|
| | 604 | <xsl:variable name="shorttitle"><xsl:call-template name="makecoinstitle"><xsl:with-param name="rawtitle"><xsl:value-of select="mods:title"/></xsl:with-param></xsl:call-template></xsl:variable> |
|---|
| | 605 | rft.stitle=<xsl:value-of select="$shorttitle"/>& |
|---|
| | 606 | </xsl:for-each> |
|---|
| | 607 | </xsl:if> |
|---|
| | 608 | </xsl:template> |
|---|
| | 609 | |
|---|
| | 610 | <xsl:template match="mods:mods[mods:genre='article']" mode="pig"> |
|---|
| 438 | | <xsl:attribute name="title"><xsl:value-of select="$cleancoins"/></xsl:attribute>This page includes embedded COinS bibliographic data.</xsl:element> |
|---|
| 439 | | </xsl:template> |
|---|
| 440 | | |
|---|
| 441 | | <!-- missing: support for coins for types other than article --> |
|---|
| 442 | | <xsl:template match="mods:mods[mods:genre!='article']" mode="coins"/> |
|---|
| | 643 | <xsl:attribute name="title"><xsl:value-of select="$readycoins"/></xsl:attribute>This page includes embedded COinS bibliographic data.</xsl:element> |
|---|
| | 644 | </xsl:template> |
|---|
| | 645 | |
|---|
| | 646 | <xsl:template match="mods:mods[mods:genre='book']" mode="pig"> |
|---|
| | 647 | <!-- <xsl:variable name="parentref"><xsl:value-of select="substring-after(mods:relatedItem[@type='host']/@xlink:href, '#')"/></xsl:variable> |
|---|
| | 648 | <xsl:variable name="parent" select="//mods:mods[@ID=$parentref]"/> --> |
|---|
| | 649 | <xsl:variable name="coins"> |
|---|
| | 650 | ctx_ver=Z39.88-2004& |
|---|
| | 651 | rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook& |
|---|
| | 652 | rft.genre=book& |
|---|
| | 653 | rft.btitle=<xsl:call-template name="makecoinstitle"><xsl:with-param name="rawtitle"><xsl:value-of select="mods:titleInfo[@type='uniform']/mods:title"/></xsl:with-param></xsl:call-template>& |
|---|
| | 654 | rft.title=<xsl:call-template name="makecoinstitle"><xsl:with-param name="rawtitle"><xsl:value-of select="mods:titleInfo[@type='uniform']/mods:title"/></xsl:with-param></xsl:call-template>& |
|---|
| | 655 | <xsl:for-each select="mods:identifier[@type='isbn']">rft.isbn=<xsl:value-of select="."/>&</xsl:for-each> |
|---|
| | 656 | <xsl:for-each select="mods:name[@type='personal' and mods:role/mods:roleTerm='author']"> |
|---|
| | 657 | <xsl:if test="count(preceding-sibling::mods:name[@type='personal']) = 0"> |
|---|
| | 658 | rft.aulast=<xsl:value-of select="mods:namePart[@type='family']"/>& |
|---|
| | 659 | rft.aufirst=<xsl:value-of select="mods:namePart[@type='given']"/>& |
|---|
| | 660 | </xsl:if> |
|---|
| | 661 | rft.au=<xsl:call-template name="makecoinstitle"><xsl:with-param name="rawtitle"><xsl:value-of select="mods:namePart[@type='given']"/><xsl:text> </xsl:text><xsl:value-of select="mods:namePart[@type='family']"/></xsl:with-param></xsl:call-template>& |
|---|
| | 662 | </xsl:for-each> |
|---|
| | 663 | <xsl:for-each select="mods:originInfo/mods:dateIssued">rft.date=<xsl:value-of select="."/>&</xsl:for-each> |
|---|
| | 664 | <xsl:for-each select="mods:originInfo/mods:publisher">rft.pub=<xsl:call-template name="makecoinstitle"><xsl:with-param name="rawtitle"><xsl:value-of select="."/></xsl:with-param></xsl:call-template>&</xsl:for-each> |
|---|
| | 665 | <xsl:for-each select="mods:originInfo/mods:place/mods:placeTerm">rft.place=<xsl:call-template name="makecoinstitle"><xsl:with-param name="rawtitle"><xsl:value-of select="."/></xsl:with-param></xsl:call-template>&</xsl:for-each> |
|---|
| | 666 | </xsl:variable> |
|---|
| | 667 | <xsl:variable name="cleancoins"><xsl:value-of select="replace(normalize-space($coins), ' ', '')"/></xsl:variable> |
|---|
| | 668 | <xsl:variable name="readycoins"> |
|---|
| | 669 | <xsl:choose> |
|---|
| | 670 | <xsl:when test="substring($cleancoins, string-length($cleancoins), 1) = '&'"> |
|---|
| | 671 | <xsl:value-of select="substring($cleancoins, 1, string-length($cleancoins) - 1)"/> |
|---|
| | 672 | </xsl:when> |
|---|
| | 673 | <xsl:otherwise><xsl:value-of select="$cleancoins"/></xsl:otherwise> |
|---|
| | 674 | </xsl:choose> |
|---|
| | 675 | </xsl:variable> |
|---|
| | 676 | <xsl:element name="span"> |
|---|
| | 677 | <xsl:attribute name="class">Z3988</xsl:attribute> |
|---|
| | 678 | <xsl:attribute name="title"><xsl:value-of select="$readycoins"/></xsl:attribute>This page includes embedded COinS bibliographic data.</xsl:element> |
|---|
| | 679 | </xsl:template> |
|---|
| | 680 | |
|---|
| | 681 | <xsl:template match="mods:mods" mode="coins"/> |
|---|
| 446 | | <xsl:value-of select="replace(encode-for-uri(normalize-space($rawtitle)), '%20', '+')"/> |
|---|
| 447 | | </xsl:template> |
|---|
| 448 | | |
|---|
| | 685 | <xsl:value-of select="replace(normalize-space($rawtitle), ' ', '+')"/> |
|---|
| | 686 | </xsl:template> |
|---|
| | 687 | |
|---|
| | 688 | <!-- ================================================================ |
|---|
| | 689 | search for it |
|---|
| | 690 | ================================================================ --> |
|---|
| | 691 | <xsl:template match="mods:mods" mode="searchforit"> |
|---|
| | 692 | <xsl:variable name="genre"><xsl:value-of select="mods:genre"/></xsl:variable> |
|---|
| | 693 | <xsl:variable name="parentgenres"><xsl:call-template name="coins_parentgenres"><xsl:with-param name="mods" select="."/></xsl:call-template></xsl:variable> |
|---|
| | 694 | <xsl:variable name="thetitle"><xsl:call-template name="trunctitle"><xsl:with-param name="rawtitle"><xsl:value-of select="mods:titleInfo[@type='uniform'][1]/mods:title"/></xsl:with-param></xsl:call-template></xsl:variable> |
|---|
| | 695 | <xsl:variable name="readytitle"><xsl:value-of select="replace(normalize-space($thetitle), ' ', '+')"/></xsl:variable> |
|---|
| | 696 | <xsl:variable name="theauthor"><xsl:value-of select="mods:name[@type='personal'][1]/mods:namePart[@type='family']"/></xsl:variable> |
|---|
| | 697 | <xsl:variable name="readyauthor"><xsl:value-of select="replace(normalize-space($theauthor), ' ', '+')"/></xsl:variable> |
|---|
| | 698 | <ul> |
|---|
| | 699 | <xsl:choose> |
|---|
| | 700 | <xsl:when test="mods:identifier[@type='isbn']"> |
|---|
| | 701 | <xsl:variable name="isbn"><xsl:value-of select="mods:identifier[@type='isbn']"/></xsl:variable> |
|---|
| | 702 | <li><xsl:element name="a"> |
|---|
| | 703 | <xsl:attribute name="href">http://books.google.com/books?as_isbn=<xsl:value-of select="$isbn"/></xsl:attribute> |
|---|
| | 704 | Search Google Books using ISBN = <xsl:value-of select="$isbn"/></xsl:element></li> |
|---|
| | 705 | <li><xsl:element name="a"> |
|---|
| | 706 | <xsl:attribute name="href">http://www.worldcat.org/search?q=isbn%3A<xsl:value-of select="$isbn"/></xsl:attribute> |
|---|
| | 707 | Search WorldCat using ISBN = <xsl:value-of select="$isbn"/></xsl:element></li> |
|---|
| | 708 | </xsl:when> |
|---|
| | 709 | <xsl:when test="mods:identifier[@type='issn']"> |
|---|
| | 710 | <xsl:variable name="issn"><xsl:value-of select="mods:identifier[@type='issn']"/></xsl:variable> |
|---|
| | 711 | <li><xsl:element name="a"> |
|---|
| | 712 | <xsl:attribute name="href">http://www.google.com/search?as_epq=<xsl:value-of select="$readytitle"/></xsl:attribute> |
|---|
| | 713 | Search the web using the phrase ("<xsl:value-of select="$thetitle"/>")</xsl:element></li> |
|---|
| | 714 | <li><xsl:element name="a"> |
|---|
| | 715 | <xsl:attribute name="href">http://www.worldcat.org/search?q=issn%3A<xsl:value-of select="$issn"/></xsl:attribute> |
|---|
| | 716 | Search WorldCat using ISSN = <xsl:value-of select="$issn"/></xsl:element></li> |
|---|
| | 717 | </xsl:when> |
|---|
| | 718 | <xsl:otherwise> |
|---|
| | 719 | <xsl:choose> |
|---|
| | 720 | <xsl:when test="$genre = 'article'"> |
|---|
| | 721 | <li><xsl:element name="a"> |
|---|
| | 722 | <xsl:attribute name="href">http://scholar.google.com/scholar?as_epq=<xsl:value-of select="$readytitle"/><xsl:if test="string-length($readyauthor) > 0">&as_sauthors=<xsl:value-of select="$readyauthor"/></xsl:if></xsl:attribute> |
|---|
| | 723 | 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> |
|---|
| | 724 | </xsl:when> |
|---|
| | 725 | <xsl:when test="$genre = 'book' or $genre = 'collection' or $genre = 'multi-volume work' or $genre = 'journal'"> |
|---|
| | 726 | <li><xsl:element name="a"> |
|---|
| | 727 | <xsl:attribute name="href">http://books.google.com/books?as_vt=<xsl:value-of select="$readytitle"/><xsl:if test="string-length($readyauthor) > 0">&as_auth=<xsl:value-of select="$readyauthor"/></xsl:if></xsl:attribute> |
|---|
| | 728 | Search Google Books 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> |
|---|
| | 729 | <li><xsl:element name="a"> |
|---|
| | 730 | <xsl:attribute name="href">http://www.worldcat.org/search?q=<xsl:value-of select="$readytitle"/></xsl:attribute> |
|---|
| | 731 | Search WorldCat using title phrase ("<xsl:value-of select="$thetitle"/>")</xsl:element></li> |
|---|
| | 732 | </xsl:when> |
|---|
| | 733 | <xsl:otherwise> |
|---|
| | 734 | <li><xsl:element name="a"> |
|---|
| | 735 | <xsl:attribute name="href">http://www.google.com/search?as_epq=<xsl:value-of select="$readytitle"/></xsl:attribute> |
|---|
| | 736 | Search the web using the phrase ("<xsl:value-of select="$thetitle"/>")</xsl:element></li> |
|---|
| | 737 | </xsl:otherwise> |
|---|
| | 738 | </xsl:choose> |
|---|
| | 739 | </xsl:otherwise> |
|---|
| | 740 | </xsl:choose> |
|---|
| | 741 | </ul> |
|---|
| | 742 | </xsl:template> |
|---|
| | 743 | |
|---|