Revert "New Book Lists - Title Links"
authorChris Sharp <csharp@georgialibraries.org>
Sun, 15 Jan 2017 21:12:34 +0000 (16:12 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Sun, 15 Jan 2017 21:12:34 +0000 (16:12 -0500)
This reverts commit bd0b61a767a69e42cfa8f69615926878802a3b58.

Open-ILS/xsl/ATOM2XHTML.xsl

index df3ea46..c36813d 100644 (file)
@@ -338,13 +338,7 @@ To-do list:
     
 
        <xsl:template match="atom:entry | item | //rss1:item | //rss9:item"> <!-- match="" must match the select="" earlier on -->
-               <!-- PINES - create url instead of using one brought in 
-            <xsl:variable name="url"><xsl:call-template name="resolvelink"><xsl:with-param name="url" select="(atom:link[not(@rel) or @rel='alternate' or @rel='']/@href | link | guid[@isPermaLink='true'] | rss1:link | rss9:link)[1]" /></xsl:call-template></xsl:variable>
-        -->
-        <xsl:variable name="url">   
-            <xsl:variable name="tcnraw"><xsl:value-of select="substring-before(substring-after(.,'TCN:'),'&#10;')"/></xsl:variable>        
-            <xsl:value-of select="concat('/eg/opac/record/',$tcnraw)" />
-        </xsl:variable>
+               <xsl:variable name="url"><xsl:call-template name="resolvelink"><xsl:with-param name="url" select="(atom:link[not(@rel) or @rel='alternate' or @rel='']/@href | link | guid[@isPermaLink='true'] | rss1:link | rss9:link)[1]" /></xsl:call-template></xsl:variable>
                <!-- item title -->
                <dt>
             <span class="booktitle">
@@ -443,6 +437,9 @@ To-do list:
                     <xsl:value-of select="$t-availcopies"/>
                     <xsl:variable name="countcopies" select="count(h:holdings/h:volumes/h:volume/h:copies/h:copy/h:status[@ident='0' or @ident='7' or @ident='12'])"/>
                     <xsl:value-of select="$countcopies"/>
+                    <xsl:if test="$countcopies = '0'">
+                        <xsl:text> (ON ORDER) </xsl:text>
+                    </xsl:if>
                     <span> / </span>
                     <xsl:value-of select="$t-totalcopies"/><xsl:value-of select="count(h:holdings/h:volumes/h:volume/h:copies/h:copy)"/>
                 </dd>