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

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Sep 14 11:45:33 EDT 2010


Author: miker
Date: 2010-09-14 11:45:30 -0400 (Tue, 14 Sep 2010)
New Revision: 17654

Modified:
   branches/rel_2_0/Open-ILS/xsl/ATOM2XHTML.xsl
Log:
Backport r17653: unbreak item count in result list of slimpac

Modified: branches/rel_2_0/Open-ILS/xsl/ATOM2XHTML.xsl
===================================================================
--- branches/rel_2_0/Open-ILS/xsl/ATOM2XHTML.xsl	2010-09-14 15:44:44 UTC (rev 17653)
+++ branches/rel_2_0/Open-ILS/xsl/ATOM2XHTML.xsl	2010-09-14 15:45:30 UTC (rev 17654)
@@ -412,18 +412,18 @@
 		<xsl:if test="$itemrights"><dd class="rights"><xsl:call-template name="showtext"><xsl:with-param name="node" select="$itemrights" /></xsl:call-template></dd></xsl:if>
 
         <!-- item count -->
-        <xsl:if test="h:volumes">
-            <xsl:if test="h:volumes/h:volume/h:copies/h:copy">
+        <xsl:if test="h:holdings/h:volumes">
+            <xsl:if test="h:holdings/h:volumes/h:volume/h:copies/h:copy">
                 <dd>
-                    <xsl:value-of select="$t-availcopies"/><xsl:value-of select="count(h:volumes/h:volume/h:copies/h:copy/h:status[@ident='0' or @ident='7' or @ident='12'])"/>
+                    <xsl:value-of select="$t-availcopies"/><xsl:value-of select="count(h:holdings/h:volumes/h:volume/h:copies/h:copy/h:status[@ident='0' or @ident='7' or @ident='12'])"/>
                     <span> / </span>
-                    <xsl:value-of select="$t-totalcopies"/><xsl:value-of select="count(h:volumes/h:volume/h:copies/h:copy)"/>
+                    <xsl:value-of select="$t-totalcopies"/><xsl:value-of select="count(h:holdings/h:volumes/h:volume/h:copies/h:copy)"/>
                 </dd>
             </xsl:if>
-            <xsl:if test="h:volumes/h:volume/h:uris/h:uri">
+            <xsl:if test="h:holdings/h:volumes/h:volume/h:uris/h:uri">
                 <dd>
                     <xsl:value-of select="$t-onlineresources"/>
-		    	    <xsl:for-each select="h:volumes/h:volume/h:uris/h:uri">
+		    	    <xsl:for-each select="h:holdings/h:volumes/h:volume/h:uris/h:uri">
                         <a>
     			    	    <xsl:attribute name="href">
 	    			    	    <xsl:value-of select="@href" />



More information about the open-ils-commits mailing list