Lines 27-32
Link Here
|
27 |
<xsl:variable name="AlternateHoldingsField" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 1, 3)"/> |
27 |
<xsl:variable name="AlternateHoldingsField" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 1, 3)"/> |
28 |
<xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/> |
28 |
<xsl:variable name="AlternateHoldingsSubfields" select="substring(marc:sysprefs/marc:syspref[@name='AlternateHoldingsField'], 4)"/> |
29 |
<xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/> |
29 |
<xsl:variable name="AlternateHoldingsSeparator" select="marc:sysprefs/marc:syspref[@name='AlternateHoldingsSeparator']"/> |
|
|
30 |
<xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/> |
30 |
<xsl:variable name="leader" select="marc:leader"/> |
31 |
<xsl:variable name="leader" select="marc:leader"/> |
31 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
32 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
32 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
33 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
Lines 1025-1039
Link Here
|
1025 |
<b><xsl:text>Copies available for loan: </xsl:text></b> |
1026 |
<b><xsl:text>Copies available for loan: </xsl:text></b> |
1026 |
<xsl:variable name="available_items" |
1027 |
<xsl:variable name="available_items" |
1027 |
select="key('item-by-status', 'available')"/> |
1028 |
select="key('item-by-status', 'available')"/> |
1028 |
<xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> |
1029 |
<xsl:choose> |
1029 |
<xsl:value-of select="items:homebranch"/> |
1030 |
<xsl:when test="$singleBranchMode=1"> |
1030 |
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if> |
1031 |
<xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> |
1031 |
<xsl:text> (</xsl:text> |
1032 |
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if> |
1032 |
<xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/> |
1033 |
<xsl:text> (</xsl:text> |
1033 |
<xsl:text>)</xsl:text> |
1034 |
<xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/> |
1034 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> |
1035 |
<xsl:text>)</xsl:text> |
1035 |
</xsl:for-each> |
1036 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> |
1036 |
</span> |
1037 |
</xsl:for-each> |
|
|
1038 |
</xsl:when> |
1039 |
<xsl:otherwise> |
1040 |
<xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> |
1041 |
<xsl:value-of select="items:homebranch"/> |
1042 |
<xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if> |
1043 |
<xsl:text> (</xsl:text> |
1044 |
<xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/> |
1045 |
<xsl:text>)</xsl:text> |
1046 |
<xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> |
1047 |
</xsl:for-each> |
1048 |
</xsl:otherwise> |
1049 |
</xsl:choose> |
1050 |
</span> |
1051 |
|
1037 |
</xsl:when> |
1052 |
</xsl:when> |
1038 |
</xsl:choose> |
1053 |
</xsl:choose> |
1039 |
|
1054 |
|
1040 |
- |
|
|