<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:'),' ')"/></xsl:variable>
+ <xsl:value-of select="concat('/eg/opac/record/',$tcnraw)" />
+ </xsl:variable>
<!-- item title -->
<dt>
<span class="booktitle">
<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>