View | Details | Raw Unified | Return to bug 26302
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-5 / +9 lines)
Lines 1476-1482 Link Here
1476
                <xsl:text> (</xsl:text>
1476
                <xsl:text> (</xsl:text>
1477
                <xsl:value-of select="count($items)"/>
1477
                <xsl:value-of select="count($items)"/>
1478
                <xsl:text>)</xsl:text>
1478
                <xsl:text>)</xsl:text>
1479
                <xsl:if test="$max>0 and $OPACItemLocation!='library'">
1479
                <xsl:if test="$max>0 and count($items[items:itemcallnumber!=''])>0 and $OPACItemLocation!='library'">
1480
                    <span class="CallNumberAndLabel">
1480
                    <span class="CallNumberAndLabel">
1481
                    <span class="LabelCallNumber">
1481
                    <span class="LabelCallNumber">
1482
                        <xsl:if test="$OPACItemLocation='callnum'">Call number: </xsl:if>
1482
                        <xsl:if test="$OPACItemLocation='callnum'">Call number: </xsl:if>
Lines 1484-1499 Link Here
1484
                        <xsl:if test="$OPACItemLocation='location'">Location, call number: </xsl:if>
1484
                        <xsl:if test="$OPACItemLocation='location'">Location, call number: </xsl:if>
1485
                    </span>
1485
                    </span>
1486
                    <span class="CallNumber">
1486
                    <span class="CallNumber">
1487
                    <xsl:for-each select="$items[position() &lt;= $max]">
1487
                    <xsl:for-each select="$items[items:itemcallnumber!=''][position() &lt;= $max]">
1488
                        <xsl:if test="$OPACItemLocation='location'">
1488
                        <xsl:if test="$OPACItemLocation='location'">
1489
                            <strong><xsl:value-of select="concat(items:location,' ')"/></strong>
1489
                            <strong><xsl:value-of select="concat(items:location,' ')"/></strong>
1490
                        </xsl:if>
1490
                        </xsl:if>
1491
                        <xsl:if test="$OPACItemLocation='ccode'">
1491
                        <xsl:if test="$OPACItemLocation='ccode'">
1492
                            <strong><xsl:value-of select="concat(items:ccode,' ')"/></strong>
1492
                            <strong><xsl:value-of select="concat(items:ccode,' ')"/></strong>
1493
                        </xsl:if>
1493
                        </xsl:if>
1494
                        <xsl:value-of select="items:itemcallnumber"/><xsl:if test="position()!=last()"><xsl:text>, </xsl:text></xsl:if>
1494
                        <xsl:value-of select="items:itemcallnumber"/>
1495
                        <xsl:if test="position()!=last()">
1496
                            <xsl:text>, </xsl:text>
1497
                        </xsl:if>
1498
                        <xsl:if test="position()=last() and (count($items)>$max or count($items[items:itemcallnumber=''])>0)">
1499
                            <xsl:text>, ..</xsl:text>
1500
                        </xsl:if>
1495
                    </xsl:for-each>
1501
                    </xsl:for-each>
1496
                    <xsl:if test="count($items)>$max"><xsl:text>, ..</xsl:text></xsl:if>
1497
                    </span>
1502
                    </span>
1498
                    </span>
1503
                    </span>
1499
                </xsl:if>
1504
                </xsl:if>
1500
- 

Return to bug 26302