From 5bec0e7aea875d0a19aafcc2d917c58497aa9b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9rick?= <frederick.capovilla@libeo.com> Date: Fri, 28 Feb 2014 16:49:36 -0500 Subject: [PATCH] Small improvements for the availability informations in the search results list on the OPAC. * Add linebreaks to each location * Add the text "Call Number:" before call numbers. --- .../prog/en/xslt/MARC21slim2OPACResults.xsl | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl index 24ffa85..d8fdd90 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl @@ -1053,21 +1053,21 @@ <xsl:choose> <xsl:when test="$singleBranchMode=1"> <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> - <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if> + <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber"> [<xsl:text>Call Number: </xsl:text><xsl:value-of select="items:itemcallnumber"/>]</xsl:if> <xsl:text> (</xsl:text> <xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/> <xsl:text>)</xsl:text> - <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> + <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><br /></xsl:otherwise></xsl:choose> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch))[1])]"> <xsl:value-of select="items:homebranch"/> - <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> [<xsl:value-of select="items:itemcallnumber"/>]</xsl:if> + <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'"> [<xsl:text>Call Number: </xsl:text><xsl:value-of select="items:itemcallnumber"/>]</xsl:if> <xsl:text> (</xsl:text> <xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/> <xsl:text>)</xsl:text> - <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>, </xsl:text></xsl:otherwise></xsl:choose> + <xsl:choose><xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><br /></xsl:otherwise></xsl:choose> </xsl:for-each> </xsl:otherwise> </xsl:choose> -- 1.7.2.5