From: miker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Tue, 14 Sep 2010 15:44:44 +0000 (+0000)
Subject: unbreak item count in result list of slimpac
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a3aabbe26659e018920b2d9ec6ec9f0dd67b403f;p=evergreen%2Fmasslnc.git

unbreak item count in result list of slimpac

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17653 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/xsl/ATOM2XHTML.xsl b/Open-ILS/xsl/ATOM2XHTML.xsl
index 11415f1919..3484f1508b 100644
--- a/Open-ILS/xsl/ATOM2XHTML.xsl
+++ b/Open-ILS/xsl/ATOM2XHTML.xsl
@@ -412,18 +412,18 @@ To-do list:
 		<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" />