New Book Lists - Title Links
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 12 Jan 2017 16:59:46 +0000 (11:59 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Sun, 17 Sep 2017 23:24:41 +0000 (19:24 -0400)
Improved title link to go to standard record page that the current
OPAC uses.

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

index c36813d..df3ea46 100644 (file)
@@ -338,7 +338,13 @@ To-do list:
     
 
        <xsl:template match="atom:entry | item | //rss1:item | //rss9:item"> <!-- match="" must match the select="" earlier on -->
-               <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>
+               <!-- 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>
                <!-- item title -->
                <dt>
             <span class="booktitle">
@@ -437,9 +443,6 @@ 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>