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

(-)a/C4/XSLT.pm (-1 lines)
Lines 177-183 sub get_xslt_sysprefs { Link Here
177
                              OpenURLText OPACShowMusicalInscripts OPACPlayMusicalInscripts / )
177
                              OpenURLText OPACShowMusicalInscripts OPACPlayMusicalInscripts / )
178
    {
178
    {
179
        my $sp = C4::Context->preference( $syspref );
179
        my $sp = C4::Context->preference( $syspref );
180
        $sp ||= 1 if $syspref eq 'resultsMaxItems'; # needs default
181
        next unless defined($sp);
180
        next unless defined($sp);
182
        $sysxml .= "<syspref name=\"$syspref\">$sp</syspref>\n";
181
        $sysxml .= "<syspref name=\"$syspref\">$sp</syspref>\n";
183
    }
182
    }
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-5 / +4 lines)
Lines 1281-1287 Link Here
1281
                        <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1281
                        <xsl:for-each select="$available_items[generate-id() = generate-id(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch))[1])]">
1282
                           <span class="ItemSummary">
1282
                           <span class="ItemSummary">
1283
                               <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/><xsl:text> </xsl:text>
1283
                               <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/><xsl:text> </xsl:text>
1284
                               <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1284
                               <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum' and $resultsMaxItems &gt; 0">
1285
                                   <span class="CallNumberAndLabel">
1285
                                   <span class="CallNumberAndLabel">
1286
                                        <span class="LabelCallNumber">Call number: </span>
1286
                                        <span class="LabelCallNumber">Call number: </span>
1287
                                        <span class="CallNumber">
1287
                                        <span class="CallNumber">
Lines 1309-1315 Link Here
1309
                                       <xsl:text> (</xsl:text>
1309
                                       <xsl:text> (</xsl:text>
1310
                                           <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1310
                                           <xsl:value-of select="count(key('item-by-status-and-branch-home', concat(items:status, ' ', items:homebranch)))"/>
1311
                                       <xsl:text>) </xsl:text>
1311
                                       <xsl:text>) </xsl:text>
1312
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1312
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum' and $resultsMaxItems &gt; 0">
1313
                                            <span class="CallNumberAndLabel">
1313
                                            <span class="CallNumberAndLabel">
1314
                                                <span class="LabelCallNumber">Call number: </span>
1314
                                                <span class="LabelCallNumber">Call number: </span>
1315
                                                <span class="CallNumber">
1315
                                                <span class="CallNumber">
Lines 1335-1341 Link Here
1335
                                       <xsl:text> (</xsl:text>
1335
                                       <xsl:text> (</xsl:text>
1336
                                           <xsl:value-of select="count(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch)))"/>
1336
                                           <xsl:value-of select="count(key('item-by-status-and-branch-holding', concat(items:status, ' ', items:holdingbranch)))"/>
1337
                                       <xsl:text>) </xsl:text>
1337
                                       <xsl:text>) </xsl:text>
1338
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1338
                                       <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum' and $resultsMaxItems &gt; 0">
1339
                                            <span class="CallNumberAndLabel">
1339
                                            <span class="CallNumberAndLabel">
1340
                                                <span class="LabelCallNumber">Call number: </span>
1340
                                                <span class="LabelCallNumber">Call number: </span>
1341
                                                <span class="CallNumber">
1341
                                                <span class="CallNumber">
Lines 1379-1385 Link Here
1379
                                <xsl:text> (</xsl:text>
1379
                                <xsl:text> (</xsl:text>
1380
                                <xsl:value-of select="count(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch)))"/>
1380
                                <xsl:value-of select="count(key('item-by-substatus-and-branch', concat(items:substatus, ' ', items:homebranch)))"/>
1381
                                <xsl:text>) </xsl:text>
1381
                                <xsl:text>) </xsl:text>
1382
                                <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum'">
1382
                                <xsl:if test="items:itemcallnumber != '' and items:itemcallnumber and $OPACItemLocation='callnum' and $resultsMaxItems &gt; 0">
1383
                                    <span class="CallNumberAndLabel">
1383
                                    <span class="CallNumberAndLabel">
1384
                                        <span class="LabelCallNumber">Call number: </span>
1384
                                        <span class="LabelCallNumber">Call number: </span>
1385
                                        <span class="CallNumber">
1385
                                        <span class="CallNumber">
1386
- 

Return to bug 26302