PINES: Further customizations to new books feed
authorMcCanna <tmccanna@georgialibraries.org>
Wed, 25 Apr 2018 16:24:06 +0000 (12:24 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 9 Aug 2019 13:23:08 +0000 (09:23 -0400)
Hid availability because it didn't differentiate between in process
and checked out. Added copydepth to url because it wasn't working on
production without it.

Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Open-ILS/xsl/ATOM2XHTML.xsl

index 7539118..73bc6a1 100644 (file)
@@ -345,10 +345,10 @@ To-do list:
             <xsl:variable name="tcnraw"><xsl:value-of select="substring-after(.,'TCN:')"/></xsl:variable>
             <xsl:choose>
                 <xsl:when test="contains($tcnraw, '&#10;')">
-                    <xsl:value-of select="concat('/eg/opac/record/', substring-before($tcnraw,'&#10;'))" />
+                    <xsl:value-of select="concat('/eg/opac/record/', substring-before($tcnraw,'&#10;'),'?copydepth=0')" />
                 </xsl:when>
                 <xsl:otherwise>
-                    <xsl:value-of select="concat('/eg/opac/record/', $tcnraw)" />
+                    <xsl:value-of select="concat('/eg/opac/record/', $tcnraw,'?copydepth=0')" />
                 </xsl:otherwise>
             </xsl:choose>
         </xsl:variable>
@@ -445,6 +445,7 @@ To-do list:
 
         <!-- item count -->
         <xsl:if test="h:holdings/h:volumes">
+               <!-- Hide available copies because it's confusing 
             <xsl:if test="h:holdings/h:volumes/h:volume/h:copies/h:copy">
                 <dd>
                     <xsl:value-of select="$t-availcopies"/>
@@ -457,6 +458,7 @@ To-do list:
                     <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:holdings/h:volumes/h:volume/h:uris/h:uri">
                 <dd>
                     <xsl:value-of select="$t-onlineresources"/>