Lines 12-17
Link Here
|
12 |
<xsl:key name="item-by-status" match="items:item" use="items:status"/> |
12 |
<xsl:key name="item-by-status" match="items:item" use="items:status"/> |
13 |
<xsl:key name="item-by-status-and-branch-home" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> |
13 |
<xsl:key name="item-by-status-and-branch-home" match="items:item" use="concat(items:status, ' ', items:homebranch)"/> |
14 |
<xsl:key name="item-by-status-and-branch-holding" match="items:item" use="concat(items:status, ' ', items:holdingbranch)"/> |
14 |
<xsl:key name="item-by-status-and-branch-holding" match="items:item" use="concat(items:status, ' ', items:holdingbranch)"/> |
|
|
15 |
<xsl:key name="item-by-substatus-and-branch" match="items:item" use="concat(items:substatus, ' ', items:homebranch)"/> |
15 |
|
16 |
|
16 |
<xsl:template match="/"> |
17 |
<xsl:template match="/"> |
17 |
<xsl:apply-templates/> |
18 |
<xsl:apply-templates/> |
Lines 1249-1254
Link Here
|
1249 |
</xsl:when></xsl:choose> |
1250 |
</xsl:when></xsl:choose> |
1250 |
</xsl:when> </xsl:choose> |
1251 |
</xsl:when> </xsl:choose> |
1251 |
|
1252 |
|
|
|
1253 |
<xsl:if test="count(key('item-by-status', 'available'))=0"> |
1254 |
<span class="available"><xsl:value-of select="items:homebranch"/><xsl:text>: </xsl:text></span> |
1255 |
</xsl:if> |
1256 |
|
1257 |
<xsl:choose> |
1258 |
<xsl:when test="count(key('item-by-status', 'reallynotforloan'))>0"> |
1259 |
<span class="unavailable"> |
1260 |
<br /> |
1261 |
<xsl:variable name="reference_items" select="key('item-by-status', 'reallynotforloan')"/> |
1262 |
<xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch))[1])]"> |
1263 |
<xsl:value-of select="items:substatus"/> |
1264 |
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if> |
1265 |
<xsl:text> (</xsl:text> |
1266 |
<xsl:value-of select="count(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch)))"/> |
1267 |
<xsl:text>)</xsl:text> |
1268 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> |
1269 |
</xsl:for-each> |
1270 |
</span> |
1271 |
</xsl:when> |
1272 |
</xsl:choose> |
1273 |
|
1252 |
<xsl:if test="count(key('item-by-status', 'Checked out'))>0"> |
1274 |
<xsl:if test="count(key('item-by-status', 'Checked out'))>0"> |
1253 |
<span class="unavailable"> |
1275 |
<span class="unavailable"> |
1254 |
<xsl:text>Checked out (</xsl:text> |
1276 |
<xsl:text>Checked out (</xsl:text> |
1255 |
- |
|
|