Bug 6886: (follow-up) remove redundant test for singleBranchMode
authorGalen Charlton <gmc@esilibrary.com>
Mon, 6 Jan 2014 16:27:17 +0000 (16:27 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 6 Jan 2014 16:30:20 +0000 (16:30 +0000)
This patch removes an unnecessary check of the singleBranchMode
preference that occurred in an <xsl:otherwise> clause where
we already know that singleBranchMode != 1.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl

index 689641c..24ffa85 100644 (file)
                </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:if test="$singleBranchMode=0">
-                           <xsl:value-of select="items:homebranch"/>
-                       </xsl:if>
+                       <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:text> (</xsl:text>
                                <xsl:value-of select="count(key('item-by-status-and-branch', concat(items:status, ' ', items:homebranch)))"/>