|
Lines 22-27
Link Here
|
| 22 |
<xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/> |
22 |
<xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/> |
| 23 |
<xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/> |
23 |
<xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/> |
| 24 |
<xsl:variable name="ShowISBD" select="marc:sysprefs/marc:syspref[@name='viewISBD']"/> |
24 |
<xsl:variable name="ShowISBD" select="marc:sysprefs/marc:syspref[@name='viewISBD']"/> |
|
|
25 |
<xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='OPACDisplay856uAsImage']"/> |
| 25 |
<xsl:variable name="leader" select="marc:leader"/> |
26 |
<xsl:variable name="leader" select="marc:leader"/> |
| 26 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
27 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
| 27 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
28 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
|
Lines 505-516
Link Here
|
| 505 |
</span> |
506 |
</span> |
| 506 |
</xsl:if> |
507 |
</xsl:if> |
| 507 |
|
508 |
|
|
|
509 |
<!-- Image processing code added here, takes precedence over text links including y3z text --> |
| 508 |
<xsl:if test="marc:datafield[@tag=856]"> |
510 |
<xsl:if test="marc:datafield[@tag=856]"> |
| 509 |
<span class="results_summary"><span class="label">Online Resources: </span> |
511 |
<span class="results_summary"><span class="label">Online Resources: </span> |
| 510 |
<xsl:for-each select="marc:datafield[@tag=856]"> |
512 |
<xsl:for-each select="marc:datafield[@tag=856]"> |
|
|
513 |
<xsl:variable name="SubqText"><xsl:value-of select="marc:subfield[@code='q']"/></xsl:variable> |
| 511 |
<xsl:if test="$OPACURLOpenInNewWindow='0'"> |
514 |
<xsl:if test="$OPACURLOpenInNewWindow='0'"> |
| 512 |
<a><xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute> |
515 |
<a><xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute> |
| 513 |
<xsl:choose> |
516 |
<xsl:choose> |
|
|
517 |
<xsl:when test="($Show856uAsImage='Details' or $Show856uAsImage='Both') and ($SubqText='img' or $SubqText='bmp' or $SubqText='cod' or $SubqText='gif' or $SubqText='ief' or $SubqText='jpe' or $SubqText='jpeg' or $SubqText='jpg' or $SubqText='jfif' or $SubqText='png' or $SubqText='svg' or $SubqText='tif' or $SubqText='tiff' or $SubqText='ras' or $SubqText='cmx' or $SubqText='ico' or $SubqText='pnm' or $SubqText='pbm' or $SubqText='pgm' or $SubqText='ppm' or $SubqText='rgb' or $SubqText='xbm' or $SubqText='xpm' or $SubqText='xwd')"> |
| 518 |
<xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:attribute><xsl:attribute name="height">100</xsl:attribute></xsl:element><xsl:text></xsl:text> |
| 519 |
</xsl:when> |
| 514 |
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']"> |
520 |
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']"> |
| 515 |
<xsl:call-template name="subfieldSelect"> |
521 |
<xsl:call-template name="subfieldSelect"> |
| 516 |
<xsl:with-param name="codes">y3z</xsl:with-param> |
522 |
<xsl:with-param name="codes">y3z</xsl:with-param> |
|
Lines 532-537
Link Here
|
| 532 |
<xsl:if test="$OPACURLOpenInNewWindow='1'"> |
538 |
<xsl:if test="$OPACURLOpenInNewWindow='1'"> |
| 533 |
<a target='_blank'><xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute> |
539 |
<a target='_blank'><xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute> |
| 534 |
<xsl:choose> |
540 |
<xsl:choose> |
|
|
541 |
<xsl:when test="($Show856uAsImage='Details' or $Show856uAsImage='Both') and ($SubqText='img' or $SubqText='bmp' or $SubqText='cod' or $SubqText='gif' or $SubqText='ief' or $SubqText='jpe' or $SubqText='jpeg' or $SubqText='jpg' or $SubqText='jfif' or $SubqText='png' or $SubqText='svg' or $SubqText='tif' or $SubqText='tiff' or $SubqText='ras' or $SubqText='cmx' or $SubqText='ico' or $SubqText='pnm' or $SubqText='pbm' or $SubqText='pgm' or $SubqText='ppm' or $SubqText='rgb' or $SubqText='xbm' or $SubqText='xpm' or $SubqText='xwd')"> |
| 542 |
<xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="marc:subfield[@code='y']"/></xsl:attribute><xsl:attribute name="height">100</xsl:attribute></xsl:element><xsl:text></xsl:text> |
| 543 |
</xsl:when> |
| 535 |
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']"> |
544 |
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']"> |
| 536 |
<xsl:call-template name="subfieldSelect"> |
545 |
<xsl:call-template name="subfieldSelect"> |
| 537 |
<xsl:with-param name="codes">y3z</xsl:with-param> |
546 |
<xsl:with-param name="codes">y3z</xsl:with-param> |
|
Lines 558-563
Link Here
|
| 558 |
</xsl:for-each> |
567 |
</xsl:for-each> |
| 559 |
</span> |
568 |
</span> |
| 560 |
</xsl:if> |
569 |
</xsl:if> |
|
|
570 |
|
| 561 |
<xsl:if test="marc:datafield[@tag=505]"> |
571 |
<xsl:if test="marc:datafield[@tag=505]"> |
| 562 |
<xsl:for-each select="marc:datafield[@tag=505]"> |
572 |
<xsl:for-each select="marc:datafield[@tag=505]"> |
| 563 |
<span class="results_summary"> |
573 |
<span class="results_summary"> |