Lines 1114-1136
Link Here
|
1114 |
select="key('item-by-status', 'available')"/> |
1114 |
select="key('item-by-status', 'available')"/> |
1115 |
<xsl:choose> |
1115 |
<xsl:choose> |
1116 |
<xsl:when test="$singleBranchMode=1"> |
1116 |
<xsl:when test="$singleBranchMode=1"> |
1117 |
<xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> |
1117 |
<xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> |
1118 |
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if> |
1118 |
<span class="CommasWithLinebreaks"> |
1119 |
<xsl:text> (</xsl:text> |
1119 |
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if> |
|
|
1120 |
<xsl:text> (</xsl:text> |
1120 |
<xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/> |
1121 |
<xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/> |
1121 |
<xsl:text>)</xsl:text> |
1122 |
<xsl:text>)</xsl:text> |
1122 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> |
1123 |
<xsl:choose> |
1123 |
</xsl:for-each> |
1124 |
<xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when> |
|
|
1125 |
<xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise> |
1126 |
</xsl:choose> |
1127 |
</span> |
1128 |
</xsl:for-each> |
1124 |
</xsl:when> |
1129 |
</xsl:when> |
1125 |
<xsl:otherwise> |
1130 |
<xsl:otherwise> |
1126 |
<xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> |
1131 |
<xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> |
1127 |
<xsl:value-of select="items:homebranch"/> |
1132 |
<span class="CommasWithLinebreaks"> |
1128 |
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if> |
1133 |
<xsl:value-of select="items:homebranch"/> |
1129 |
<xsl:text> (</xsl:text> |
1134 |
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if> |
|
|
1135 |
<xsl:text> (</xsl:text> |
1130 |
<xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/> |
1136 |
<xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/> |
1131 |
<xsl:text>)</xsl:text> |
1137 |
<xsl:text>)</xsl:text> |
1132 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> |
1138 |
<xsl:choose> |
1133 |
</xsl:for-each> |
1139 |
<xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when> |
|
|
1140 |
<xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise> |
1141 |
</xsl:choose> |
1142 |
</span> |
1143 |
</xsl:for-each> |
1134 |
</xsl:otherwise> |
1144 |
</xsl:otherwise> |
1135 |
</xsl:choose> |
1145 |
</xsl:choose> |
1136 |
|
1146 |
|
1137 |
- |
|
|