Last active
August 29, 2015 14:04
-
-
Save happyrainb/71da337b043d02757691 to your computer and use it in GitHub Desktop.
Voyager-OPAC-Add links: Go to the sandbox folder in Voyager – WebVoyage and modify the display.xsl. Find the xxxx/contentLayout/display: open display.xsl. Then find the <xsl:template name=”BMD3000″> and <xsl:param name=”marc”/> <xsl:param name=”recordType”/><xsl:for-each select=”$marc/slim:datafield[@tag='856']“> <xsl:if test=”string-length($new…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:variable name=”providerData”> | |
<xsl:value-of select=”slim:subfield[@code='z']” /> | |
</xsl:variable><xsl:variable name=”providerTrimmed”> | |
<xsl:value-of select=”substring-after($providerData, ‘- ‘)” /> | |
</xsl:variable><xsl:variable name=”provider”> | |
<xsl:choose> | |
<xsl:when test=”string-length($providerTrimmed)>0″> | |
<xsl:value-of select=”$providerTrimmed” /> | |
</xsl:when> | |
<xsl:otherwise> | |
<xsl:value-of select=”$providerData” /> | |
</xsl:otherwise> | |
</xsl:choose> | |
</xsl:variable><xsl:variable name=”baseURL”>http://xxx/library.xxx.edu</xsl:variable><a href=”{$baseURL}{$provider}”> | |
[License Info] | |
</a> | |
<br/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment