[open-ils-commits] r19261 - branches/rel_2_0/Open-ILS/xsl (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Sat Jan 22 19:05:18 EST 2011


Author: miker
Date: 2011-01-22 19:05:18 -0500 (Sat, 22 Jan 2011)
New Revision: 19261

Modified:
   branches/rel_2_0/Open-ILS/xsl/MARC21slim2HTMLCard-holdings.xsl
Log:
correct XPath attribute test syntax

Modified: branches/rel_2_0/Open-ILS/xsl/MARC21slim2HTMLCard-holdings.xsl
===================================================================
--- branches/rel_2_0/Open-ILS/xsl/MARC21slim2HTMLCard-holdings.xsl	2011-01-23 00:04:35 UTC (rev 19260)
+++ branches/rel_2_0/Open-ILS/xsl/MARC21slim2HTMLCard-holdings.xsl	2011-01-23 00:05:18 UTC (rev 19261)
@@ -77,17 +77,17 @@
           <xsl:apply-templates select="hold:volume/hold:uris/hold:uri"/>
         </ul>
     </xsl:if>
-    <xsl:if test="count(hold:volume[deleted='f']/hold:copies/hold:copy[deleted='f']) &gt; 0">
+    <xsl:if test="count(hold:volume[@deleted='f']/hold:copies/hold:copy[@deleted='f']) &gt; 0">
     	<u>Holdings</u>
         <ul>
-          <xsl:apply-templates select="hold:volume[deleted='f']">
+          <xsl:apply-templates select="hold:volume[@deleted='f']">
             <xsl:sort select="@lib"/>
           </xsl:apply-templates>
         </ul>
     </xsl:if>
   </xsl:template>
 
-  <xsl:template match="hold:volume[deleted='f']">
+  <xsl:template match="hold:volume[@deleted='f']">
       <li>
        <b>
         <a>
@@ -121,13 +121,13 @@
 
   <xsl:template match="hold:copies">
     <ul>
-    <xsl:apply-templates select="hold:copy[deleted='f']">
+    <xsl:apply-templates select="hold:copy[@deleted='f']">
       <xsl:sort select="hold:location"/>
     </xsl:apply-templates>
     </ul>
   </xsl:template>
 
-  <xsl:template match="hold:copy[deleted='f']">
+  <xsl:template match="hold:copy[@deleted='f']">
       <li> <xsl:value-of select="@barcode"/> <abbr class="unapi-id"><xsl:attribute name="title"><xsl:value-of select="@id"/></xsl:attribute></abbr>
         <ul>
     	  <li>Circulating from <b><xsl:value-of select="hold:circlib"/></b></li>



More information about the open-ils-commits mailing list