Lines 40-45
Link Here
|
40 |
<xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/> |
40 |
<xsl:variable name="OPACTrackClicks" select="marc:sysprefs/marc:syspref[@name='TrackClicks']"/> |
41 |
<xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/> |
41 |
<xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/> |
42 |
<xsl:variable name="resultsMaxItems" select="marc:sysprefs/marc:syspref[@name='resultsMaxItems']"/> |
42 |
<xsl:variable name="resultsMaxItems" select="marc:sysprefs/marc:syspref[@name='resultsMaxItems']"/> |
|
|
43 |
<xsl:variable name="resultsMaxItemsUnavailable" select="marc:sysprefs/marc:syspref[@name='resultsMaxItemsUnavailable']"/> |
43 |
<xsl:variable name="leader" select="marc:leader"/> |
44 |
<xsl:variable name="leader" select="marc:leader"/> |
44 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
45 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
45 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
46 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
Lines 1415-1469
Link Here
|
1415 |
</xsl:for-each> |
1416 |
</xsl:for-each> |
1416 |
|
1417 |
|
1417 |
<!-- Followed by other statuses --> |
1418 |
<!-- Followed by other statuses --> |
1418 |
<xsl:if test="count(key('item-by-status', 'Checked out'))>0"> |
1419 |
<xsl:call-template name="listCallNumbers"> |
1419 |
<span class="unavailable"> |
1420 |
<xsl:with-param name="status_text">Checked out</xsl:with-param> |
1420 |
<xsl:text>Checked out (</xsl:text> |
1421 |
<xsl:with-param name="items" select="key('item-by-status', 'Checked out')"/> |
1421 |
<xsl:value-of select="count(key('item-by-status', 'Checked out'))"/> |
1422 |
<xsl:with-param name="max" select="$resultsMaxItemsUnavailable"/> |
1422 |
<xsl:text>). </xsl:text> |
1423 |
</xsl:call-template> |
1423 |
</span> |
1424 |
|
1424 |
</xsl:if> |
1425 |
<xsl:call-template name="listCallNumbers"> |
1425 |
<xsl:if test="count(key('item-by-status', 'Withdrawn'))>0"> |
1426 |
<xsl:with-param name="status_text">Withdrawn</xsl:with-param> |
1426 |
<span class="unavailable"> |
1427 |
<xsl:with-param name="items" select="key('item-by-status', 'Withdrawn')"/> |
1427 |
<xsl:text>Withdrawn (</xsl:text> |
1428 |
<xsl:with-param name="max" select="$resultsMaxItemsUnavailable"/> |
1428 |
<xsl:value-of select="count(key('item-by-status', 'Withdrawn'))"/> |
1429 |
</xsl:call-template> |
1429 |
<xsl:text>). </xsl:text> |
1430 |
|
1430 |
</span> |
1431 |
<xsl:if test="$hidelostitems='0'"> |
1431 |
</xsl:if> |
1432 |
<xsl:call-template name="listCallNumbers"> |
1432 |
<xsl:if test="$hidelostitems='0' and count(key('item-by-status', 'Lost'))>0"> |
1433 |
<xsl:with-param name="status_text">Lost</xsl:with-param> |
1433 |
<span class="unavailable"> |
1434 |
<xsl:with-param name="items" select="key('item-by-status', 'Lost')"/> |
1434 |
<xsl:text>Lost (</xsl:text> |
1435 |
<xsl:with-param name="max" select="$resultsMaxItemsUnavailable"/> |
1435 |
<xsl:value-of select="count(key('item-by-status', 'Lost'))"/> |
1436 |
</xsl:call-template> |
1436 |
<xsl:text>). </xsl:text> |
|
|
1437 |
</span> |
1438 |
</xsl:if> |
1439 |
<xsl:if test="count(key('item-by-status', 'Damaged'))>0"> |
1440 |
<span class="unavailable"> |
1441 |
<xsl:text>Damaged (</xsl:text> |
1442 |
<xsl:value-of select="count(key('item-by-status', 'Damaged'))"/> |
1443 |
<xsl:text>). </xsl:text> |
1444 |
</span> |
1445 |
</xsl:if> |
1446 |
<xsl:if test="count(key('item-by-status', 'Pending hold'))>0"> |
1447 |
<span class="unavailable"> |
1448 |
<xsl:text>Pending hold (</xsl:text> |
1449 |
<xsl:value-of select="count(key('item-by-status', 'Pending hold'))"/> |
1450 |
<xsl:text>). </xsl:text> |
1451 |
</span> |
1452 |
</xsl:if> |
1453 |
<xsl:if test="count(key('item-by-status', 'In transit'))>0"> |
1454 |
<span class="unavailable"> |
1455 |
<xsl:text>In transit (</xsl:text> |
1456 |
<xsl:value-of select="count(key('item-by-status', 'In transit'))"/> |
1457 |
<xsl:text>). </xsl:text> |
1458 |
</span> |
1459 |
</xsl:if> |
1460 |
<xsl:if test="count(key('item-by-status', 'Waiting'))>0"> |
1461 |
<span class="unavailable"> |
1462 |
<xsl:text>On hold (</xsl:text> |
1463 |
<xsl:value-of select="count(key('item-by-status', 'Waiting'))"/> |
1464 |
<xsl:text>). </xsl:text> |
1465 |
</span> |
1466 |
</xsl:if> |
1437 |
</xsl:if> |
|
|
1438 |
|
1439 |
<xsl:call-template name="listCallNumbers"> |
1440 |
<xsl:with-param name="status_text">Damaged</xsl:with-param> |
1441 |
<xsl:with-param name="items" select="key('item-by-status', 'Damaged')"/> |
1442 |
<xsl:with-param name="max" select="$resultsMaxItemsUnavailable"/> |
1443 |
</xsl:call-template> |
1444 |
|
1445 |
<xsl:call-template name="listCallNumbers"> |
1446 |
<xsl:with-param name="status_text">Pending hold</xsl:with-param> |
1447 |
<xsl:with-param name="items" select="key('item-by-status', 'Pending hold')"/> |
1448 |
<xsl:with-param name="max" select="$resultsMaxItemsUnavailable"/> |
1449 |
</xsl:call-template> |
1450 |
|
1451 |
<xsl:call-template name="listCallNumbers"> |
1452 |
<xsl:with-param name="status_text">In transit</xsl:with-param> |
1453 |
<xsl:with-param name="items" select="key('item-by-status', 'In transit')"/> |
1454 |
<xsl:with-param name="max" select="$resultsMaxItemsUnavailable"/> |
1455 |
</xsl:call-template> |
1456 |
|
1457 |
<xsl:call-template name="listCallNumbers"> |
1458 |
<xsl:with-param name="status_text">On hold</xsl:with-param> |
1459 |
<xsl:with-param name="items" select="key('item-by-status', 'Waiting')"/> |
1460 |
<xsl:with-param name="max" select="$resultsMaxItemsUnavailable"/> |
1461 |
</xsl:call-template> |
1462 |
|
1467 |
</span> |
1463 |
</span> |
1468 |
</xsl:when> |
1464 |
</xsl:when> |
1469 |
</xsl:choose> |
1465 |
</xsl:choose> |
Lines 1623-1626
Link Here
|
1623 |
</xsl:if> |
1619 |
</xsl:if> |
1624 |
</xsl:template> |
1620 |
</xsl:template> |
1625 |
|
1621 |
|
|
|
1622 |
<xsl:template name="listCallNumbers"> |
1623 |
<xsl:param name="items"/> |
1624 |
<xsl:param name="max"/> |
1625 |
<xsl:param name="status_text"/> |
1626 |
<xsl:if test="count($items)>0"> |
1627 |
<span class="unavailable"> |
1628 |
<xsl:value-of select="$status_text"/> |
1629 |
<xsl:text> (</xsl:text> |
1630 |
<xsl:value-of select="count($items)"/> |
1631 |
<xsl:text>)</xsl:text> |
1632 |
<xsl:if test="$max>0"> |
1633 |
<xsl:text> [ </xsl:text> |
1634 |
<xsl:for-each select="$items[position() <= $max]"> |
1635 |
<xsl:value-of select="items:itemcallnumber"/><xsl:if test="position()!=last()"><xsl:text>, </xsl:text></xsl:if> |
1636 |
</xsl:for-each> |
1637 |
<xsl:if test="count($items)>$max"><xsl:text>, ..</xsl:text></xsl:if> |
1638 |
<xsl:text> ]</xsl:text> |
1639 |
</xsl:if> |
1640 |
<xsl:text>. </xsl:text> |
1641 |
</span> |
1642 |
</xsl:if> |
1643 |
</xsl:template> |
1644 |
|
1626 |
</xsl:stylesheet> |
1645 |
</xsl:stylesheet> |
1627 |
- |
|
|