Lines 1154-1167
Link Here
|
1154 |
<b><xsl:text>Items available for reference: </xsl:text></b> |
1154 |
<b><xsl:text>Items available for reference: </xsl:text></b> |
1155 |
<xsl:variable name="reference_items" select="key('item-by-status', 'reference')"/> |
1155 |
<xsl:variable name="reference_items" select="key('item-by-status', 'reference')"/> |
1156 |
<xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> |
1156 |
<xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> |
1157 |
<xsl:if test="$singleBranchMode=0"> |
1157 |
<span class="CommasWithLinebreaks"> |
1158 |
<xsl:value-of select="items:homebranch"/> |
1158 |
<xsl:if test="$singleBranchMode=0"> |
1159 |
</xsl:if> |
1159 |
<xsl:value-of select="items:homebranch"/> |
1160 |
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if> |
1160 |
</xsl:if> |
1161 |
<xsl:text> (</xsl:text> |
1161 |
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if> |
1162 |
<xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/> |
1162 |
<xsl:text> (</xsl:text> |
1163 |
<xsl:text> )</xsl:text> |
1163 |
<xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/> |
1164 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> |
1164 |
<xsl:text>)</xsl:text> |
|
|
1165 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> |
1166 |
</span> |
1165 |
</xsl:for-each> |
1167 |
</xsl:for-each> |
1166 |
</span> |
1168 |
</span> |
1167 |
</xsl:when> |
1169 |
</xsl:when> |
1168 |
- |
|
|