Bug 21260: Simple adjustments in Availability blocks
[1] Add reallynotforloan=0 test to 'Block 1'. Add a period after No items available. [2] Remove the if with colon block. Remove the <br> and add a span for reallynotforloan (items on order). [3] Add a 'Not available' label for the reallynotforloan block. [4] Remove the On order status, since it is not used anymore since 7611. Test plan: See subsequent patches. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: ava li <rubyli208@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
4d2d6aa8bc
commit
325a6dfd70
|
|
@ -1249,7 +1249,7 @@
|
|||
<span class="results_summary availability">
|
||||
<span class="label">Availability: </span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0">
|
||||
<xsl:when test="count(key('item-by-status', 'available'))=0 and count(key('item-by-status', 'reference'))=0 and count(key('item-by-status', 'reallynotforloan'))=0">
|
||||
<xsl:choose>
|
||||
<xsl:when test="string-length($AlternateHoldingsField)=3 and marc:datafield[@tag=$AlternateHoldingsField]">
|
||||
<xsl:variable name="AlternateHoldingsCount" select="count(marc:datafield[@tag=$AlternateHoldingsField])"/>
|
||||
|
|
@ -1261,7 +1261,7 @@
|
|||
</xsl:for-each>
|
||||
(<xsl:value-of select="$AlternateHoldingsCount"/>)
|
||||
</xsl:when>
|
||||
<xsl:otherwise><span class="noitems">No items available </span> </xsl:otherwise>
|
||||
<xsl:otherwise><span class="noitems">No items available.</span> </xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="count(key('item-by-status', 'available'))>0">
|
||||
|
|
@ -1369,14 +1369,10 @@
|
|||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
||||
<xsl:if test="count(key('item-by-status', 'available'))=0">
|
||||
<span class="available"><xsl:value-of select="items:homebranch"/><xsl:text>: </xsl:text></span>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(key('item-by-status', 'reallynotforloan'))>0">
|
||||
<span class="unavailable">
|
||||
<br />
|
||||
<span class="AvailabilityLabel"><strong><xsl:text>Not available: </xsl:text></strong></span>
|
||||
<xsl:variable name="unavailable_items" select="key('item-by-status', 'reallynotforloan')"/>
|
||||
<xsl:for-each select="$unavailable_items[generate-id() = generate-id(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch))[1])]">
|
||||
<span>
|
||||
|
|
@ -1429,12 +1425,6 @@
|
|||
<xsl:value-of select="count(key('item-by-status', 'Damaged'))"/>
|
||||
<xsl:text>). </xsl:text> </span>
|
||||
</xsl:if>
|
||||
<xsl:if test="count(key('item-by-status', 'On order'))>0">
|
||||
<span class="unavailable">
|
||||
<xsl:text>On order (</xsl:text>
|
||||
<xsl:value-of select="count(key('item-by-status', 'On order'))"/>
|
||||
<xsl:text>). </xsl:text> </span>
|
||||
</xsl:if>
|
||||
<xsl:if test="count(key('item-by-status', 'Pending hold'))>0">
|
||||
<span class="unavailable">
|
||||
<xsl:text>Pending hold (</xsl:text>
|
||||
|
|
|
|||
Loading…
Reference in New Issue