[open-ils-commits] r13043 - trunk/Open-ILS/xsl (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun May 3 16:41:43 EDT 2009
Author: miker
Date: 2009-05-03 16:41:39 -0400 (Sun, 03 May 2009)
New Revision: 13043
Modified:
trunk/Open-ILS/xsl/MARC21slim2HTMLCard-holdings.xsl
Log:
add ##URI## support ot the slimpac
Modified: trunk/Open-ILS/xsl/MARC21slim2HTMLCard-holdings.xsl
===================================================================
--- trunk/Open-ILS/xsl/MARC21slim2HTMLCard-holdings.xsl 2009-05-03 12:06:14 UTC (rev 13042)
+++ trunk/Open-ILS/xsl/MARC21slim2HTMLCard-holdings.xsl 2009-05-03 20:41:39 UTC (rev 13043)
@@ -71,6 +71,12 @@
</xsl:template>
<xsl:template match="hold:volumes">
+ <xsl:if test="count(hold:volume/hold:uris/hold:uri) > 0">
+ <u>Links</u>
+ <ul>
+ <xsl:apply-templates select="hold:volume/hold:uris/hold:uri"/>
+ </ul>
+ </xsl:if>
<xsl:if test="count(hold:volume/hold:copies/hold:copy) > 0">
<u>Holdings</u>
<ul>
@@ -95,6 +101,22 @@
</li>
</xsl:template>
+ <xsl:template match="hold:uri">
+ <li>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="@href"/>
+ </xsl:attribute>
+ <xsl:value-of select="@label"/>
+ </a>
+ <xsl:if test="@use_restriction != ''">
+ <span> (Use Restriction: </span>
+ <xsl:value-of select="@use_restriction"/>
+ <span>)</span>
+ </xsl:if>
+ </li>
+ </xsl:template>
+
<xsl:template match="hold:copies">
<ul>
<xsl:apply-templates select="hold:copy">
@@ -189,9 +211,10 @@
<span class="DDC"><xsl:value-of select="marc:subfield[@code='a']"/></span>
</xsl:if>
- <xsl:if test="@tag='856'">
+ <xsl:if test="@tag='856' and not(marc:subfield[@code='9'])">
<br/><xsl:apply-templates mode="link" select="marc:subfield" />
</xsl:if>
+
</xsl:template>
<xsl:template match="marc:subfield" mode="link">
More information about the open-ils-commits
mailing list