fixes bug 4385
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
e9c0a11d41
commit
73f9c79e4f
1 changed files with 11 additions and 11 deletions
|
@ -893,11 +893,9 @@
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</span>
|
</span>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
<xsl:if test="marc:datafield[@tag=856]">
|
||||||
<span class="results_summary">
|
<span class="results_summary">
|
||||||
<span class="label">Availability: </span>
|
<span class="label">Online Access: </span>
|
||||||
<xsl:choose>
|
|
||||||
<xsl:when test="marc:datafield[@tag=856]">
|
|
||||||
<xsl:for-each select="marc:datafield[@tag=856]">
|
<xsl:for-each select="marc:datafield[@tag=856]">
|
||||||
<xsl:if test="$OPACURLOpenInNewWindow='0'">
|
<xsl:if test="$OPACURLOpenInNewWindow='0'">
|
||||||
<a><xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
|
<a><xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
|
||||||
|
@ -942,13 +940,15 @@
|
||||||
</a>
|
</a>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when>
|
<xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when>
|
||||||
<xsl:otherwise> | </xsl:otherwise>
|
<xsl:otherwise> | </xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</xsl:when>
|
</span>
|
||||||
|
</xsl:if>
|
||||||
|
<span class="results_summary">
|
||||||
|
<span class="label">Availability: </span>
|
||||||
|
<xsl:choose>
|
||||||
<xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0">No copies available
|
<xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0">No copies available
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="count(key('item-by-status', 'available'))>0">
|
<xsl:when test="count(key('item-by-status', 'available'))>0">
|
||||||
|
@ -958,7 +958,7 @@
|
||||||
select="key('item-by-status', 'available')"/>
|
select="key('item-by-status', 'available')"/>
|
||||||
<xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
|
<xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
|
||||||
<xsl:value-of select="items:homebranch"/>
|
<xsl:value-of select="items:homebranch"/>
|
||||||
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber">[<xsl:value-of select="items:itemcallnumber"/>]</xsl:if>
|
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if>
|
||||||
<xsl:text> (</xsl:text>
|
<xsl:text> (</xsl:text>
|
||||||
<xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/>
|
<xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/>
|
||||||
<xsl:text>)</xsl:text>
|
<xsl:text>)</xsl:text>
|
||||||
|
@ -976,7 +976,7 @@
|
||||||
select="key('item-by-status', 'reference')"/>
|
select="key('item-by-status', 'reference')"/>
|
||||||
<xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
|
<xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]">
|
||||||
<xsl:value-of select="items:homebranch"/>
|
<xsl:value-of select="items:homebranch"/>
|
||||||
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber">[<xsl:value-of select="items:itemcallnumber"/>]</xsl:if>
|
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if>
|
||||||
<xsl:text> (</xsl:text>
|
<xsl:text> (</xsl:text>
|
||||||
<xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/>
|
<xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/>
|
||||||
<xsl:text>)</xsl:text>
|
<xsl:text>)</xsl:text>
|
||||||
|
|
Loading…
Reference in a new issue