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 1004-1011 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
1004
1004
1005
<div id="holdings">
1005
<div id="holdings">
1006
[% IF ( itemloop.size ) %]
1006
[% IF ( itemloop.size ) %]
1007
    [% IF ( lotsofitems ) %]
1007
    [% IF ( lotsofholdingsitems ) %]
1008
	<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>
1008
        <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>
1009
    [% ELSE %]
1009
    [% ELSE %]
1010
        [% INCLUDE items_table items=itemloop tab="holdings" %]
1010
        [% INCLUDE items_table items=itemloop tab="holdings" %]
1011
    [% END %]
1011
    [% END %]
Lines 1040-1046 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
1040
[% IF (SeparateHoldings) %]
1040
[% IF (SeparateHoldings) %]
1041
    <div id="otherholdings">
1041
    <div id="otherholdings">
1042
        [% IF (otheritemloop.size) %]
1042
        [% IF (otheritemloop.size) %]
1043
            [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
1043
            [% IF lotsofothersholdingsitems %]
1044
                <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>
1045
            [% ELSE %]
1046
                [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
1047
            [% END %]
1044
        [% ELSE %]
1048
        [% ELSE %]
1045
            No other items.
1049
            No other items.
1046
        [% END %]
1050
        [% END %]
(-)a/opac/opac-detail.pl (-2 / +4 lines)
Lines 623-629 if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) { Link Here
623
# TODO: The limit of 50 could be a syspref
623
# TODO: The limit of 50 could be a syspref
624
my $viewallitems = $query->param('viewallitems');
624
my $viewallitems = $query->param('viewallitems');
625
if (scalar(@itemloop) >= 50 && !$viewallitems) {
625
if (scalar(@itemloop) >= 50 && !$viewallitems) {
626
    $template->param('lotsofitems' => 1);
626
    $template->param('lotsofholdingsitems' => 1);
627
}
628
if (scalar(@otheritemloop) >= 50 && !$viewallitems) {
629
    $template->param('lotsofothersholdingsitems' => 1);
627
}
630
}
628
631
629
## get notes and subjects from MARC record
632
## get notes and subjects from MARC record
630
- 

Return to bug 10283