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 1268-1273
Link Here
|
1268 |
</xsl:when></xsl:choose> |
1269 |
</xsl:when></xsl:choose> |
1269 |
</xsl:when> </xsl:choose> |
1270 |
</xsl:when> </xsl:choose> |
1270 |
|
1271 |
|
|
|
1272 |
<xsl:if test="count(key('item-by-status', 'available'))=0"> |
1273 |
<span class="available"><xsl:value-of select="items:homebranch"/><xsl:text>: </xsl:text></span> |
1274 |
</xsl:if> |
1275 |
|
1276 |
<xsl:choose> |
1277 |
<xsl:when test="count(key('item-by-status', 'reallynotforloan'))>0"> |
1278 |
<span class="unavailable"> |
1279 |
<br /> |
1280 |
<xsl:variable name="reference_items" select="key('item-by-status', 'reallynotforloan')"/> |
1281 |
<xsl:for-each select="$reference_items[generate-id() = generate-id(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch))[1])]"> |
1282 |
<xsl:value-of select="items:substatus"/> |
1283 |
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<span class="LabelCallNumber">Call number: </span><xsl:value-of select="items:itemcallnumber"/>]</xsl:if> |
1284 |
<xsl:text> (</xsl:text> |
1285 |
<xsl:value-of select="count(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch)))"/> |
1286 |
<xsl:text>)</xsl:text> |
1287 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> |
1288 |
</xsl:for-each> |
1289 |
</span> |
1290 |
</xsl:when> |
1291 |
</xsl:choose> |
1292 |
|
1271 |
<xsl:if test="count(key('item-by-status', 'Checked out'))>0"> |
1293 |
<xsl:if test="count(key('item-by-status', 'Checked out'))>0"> |
1272 |
<span class="unavailable"> |
1294 |
<span class="unavailable"> |
1273 |
<xsl:text>Checked out (</xsl:text> |
1295 |
<xsl:text>Checked out (</xsl:text> |
1274 |
- |
|
|