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

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (-3 / +7 lines)
Lines 1018-1025 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
1018
1018
1019
<div id="holdings">
1019
<div id="holdings">
1020
[% IF ( itemloop.size ) %]
1020
[% IF ( itemloop.size ) %]
1021
    [% IF ( lotsofitems ) %]
1021
    [% IF ( lotsofholdingsitems ) %]
1022
	<p>This record has many physical items. <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]&amp;viewallitems=1#holdings">Click here to view them all.</a></p>
1022
        <p>This record has many physical items. <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]&amp;viewallitems=1#holdings">Click here to view them all.</a></p>
1023
    [% ELSE %]
1023
    [% ELSE %]
1024
        [% INCLUDE items_table items=itemloop tab="holdings" %]
1024
        [% INCLUDE items_table items=itemloop tab="holdings" %]
1025
    [% END %]
1025
    [% END %]
Lines 1054-1060 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
1054
[% IF (SeparateHoldings) %]
1054
[% IF (SeparateHoldings) %]
1055
    <div id="otherholdings">
1055
    <div id="otherholdings">
1056
        [% IF (otheritemloop.size) %]
1056
        [% IF (otheritemloop.size) %]
1057
            [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
1057
            [% IF lotsofothersholdingsitems %]
1058
                <p>This record has many physical items. <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]&amp;viewallitems=1#otherholdings">Click here to view them all.</a></p>
1059
            [% ELSE %]
1060
                [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
1061
            [% END %]
1058
        [% ELSE %]
1062
        [% ELSE %]
1059
            No other items.
1063
            No other items.
1060
        [% END %]
1064
        [% END %]
(-)a/opac/opac-detail.pl (-2 / +4 lines)
Lines 624-630 if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) { Link Here
624
# TODO: The limit of 50 could be a syspref
624
# TODO: The limit of 50 could be a syspref
625
my $viewallitems = $query->param('viewallitems');
625
my $viewallitems = $query->param('viewallitems');
626
if (scalar(@itemloop) >= 50 && !$viewallitems) {
626
if (scalar(@itemloop) >= 50 && !$viewallitems) {
627
    $template->param('lotsofitems' => 1);
627
    $template->param('lotsofholdingsitems' => 1);
628
}
629
if (scalar(@otheritemloop) >= 50 && !$viewallitems) {
630
    $template->param('lotsofothersholdingsitems' => 1);
628
}
631
}
629
632
630
## get notes and subjects from MARC record
633
## get notes and subjects from MARC record
631
- 

Return to bug 10283