|
Lines 504-562
Link Here
|
| 504 |
<xsl:if test="marc:datafield[@tag=856]"> |
504 |
<xsl:if test="marc:datafield[@tag=856]"> |
| 505 |
<span class="results_summary"><span class="label">Online Resources: </span> |
505 |
<span class="results_summary"><span class="label">Online Resources: </span> |
| 506 |
<xsl:for-each select="marc:datafield[@tag=856]"> |
506 |
<xsl:for-each select="marc:datafield[@tag=856]"> |
| 507 |
<xsl:if test="$OPACURLOpenInNewWindow='0'"> |
507 |
<a><xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute> |
| 508 |
<a><xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute> |
508 |
<xsl:if test="$OPACURLOpenInNewWindow='1'"> |
| 509 |
<xsl:choose> |
509 |
<xsl:attribute name="target">_blank</xsl:attribute> |
| 510 |
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']"> |
510 |
</xsl:if> |
| 511 |
<xsl:call-template name="subfieldSelect"> |
511 |
<xsl:choose> |
| 512 |
<xsl:with-param name="codes">y3z</xsl:with-param> |
512 |
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']"> |
| 513 |
</xsl:call-template> |
513 |
<xsl:call-template name="subfieldSelect"> |
| 514 |
</xsl:when> |
514 |
<xsl:with-param name="codes">y3z</xsl:with-param> |
| 515 |
<xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])"> |
515 |
</xsl:call-template> |
| 516 |
<xsl:choose> |
516 |
</xsl:when> |
| 517 |
<xsl:when test="$URLLinkText!=''"> |
517 |
<xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])"> |
| 518 |
<xsl:value-of select="$URLLinkText"/> |
518 |
<xsl:choose> |
| 519 |
</xsl:when> |
519 |
<xsl:when test="$URLLinkText!=''"> |
| 520 |
<xsl:otherwise> |
520 |
<xsl:value-of select="$URLLinkText"/> |
| 521 |
<xsl:text>Click here to access online</xsl:text> |
521 |
</xsl:when> |
| 522 |
</xsl:otherwise> |
522 |
<xsl:otherwise> |
| 523 |
</xsl:choose> |
523 |
<xsl:text>Click here to access online</xsl:text> |
| 524 |
</xsl:when> |
524 |
</xsl:otherwise> |
| 525 |
</xsl:choose> |
525 |
</xsl:choose> |
| 526 |
</a> |
526 |
</xsl:when> |
| 527 |
</xsl:if> |
527 |
</xsl:choose> |
| 528 |
<xsl:if test="$OPACURLOpenInNewWindow='1'"> |
528 |
</a> |
| 529 |
<a target='_blank'><xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute> |
529 |
<xsl:choose> |
| 530 |
<xsl:choose> |
530 |
<xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when> |
| 531 |
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']"> |
531 |
<xsl:otherwise> | </xsl:otherwise> |
| 532 |
<xsl:call-template name="subfieldSelect"> |
532 |
</xsl:choose> |
| 533 |
<xsl:with-param name="codes">y3z</xsl:with-param> |
|
|
| 534 |
</xsl:call-template> |
| 535 |
</xsl:when> |
| 536 |
<xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])"> |
| 537 |
<xsl:choose> |
| 538 |
<xsl:when test="$URLLinkText!=''"> |
| 539 |
<xsl:value-of select="$URLLinkText"/> |
| 540 |
</xsl:when> |
| 541 |
<xsl:otherwise> |
| 542 |
<xsl:text>Click here to access online</xsl:text> |
| 543 |
</xsl:otherwise> |
| 544 |
</xsl:choose> |
| 545 |
</xsl:when> |
| 546 |
</xsl:choose> |
| 547 |
</a> |
| 548 |
</xsl:if> |
| 549 |
<xsl:choose> |
| 550 |
<xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when> |
| 551 |
<xsl:otherwise> | </xsl:otherwise> |
| 552 |
</xsl:choose> |
| 553 |
|
| 554 |
</xsl:for-each> |
533 |
</xsl:for-each> |
| 555 |
</span> |
534 |
</span> |
| 556 |
</xsl:if> |
535 |
</xsl:if> |
|
|
536 |
|
| 537 |
<!-- 505 --> |
| 557 |
<xsl:if test="marc:datafield[@tag=505]"> |
538 |
<xsl:if test="marc:datafield[@tag=505]"> |
| 558 |
<xsl:for-each select="marc:datafield[@tag=505]"> |
539 |
<xsl:for-each select="marc:datafield[@tag=505]"> |
| 559 |
<span class="results_summary"> |
540 |
<span class="results_summary contents"> |
| 560 |
<xsl:choose> |
541 |
<xsl:choose> |
| 561 |
<xsl:when test="@ind1=1"> |
542 |
<xsl:when test="@ind1=1"> |
| 562 |
<span class="label">Incomplete contents:</span> |
543 |
<span class="label">Incomplete contents:</span> |
| 563 |
- |
|
|