<div id="holdings">
[% IF ( itemloop.size ) %]
- [% IF ( lotsofitems ) %]
- <p>This record has many physical items. <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]&viewallitems=1#holdings">Click here to view them all.</a></p>
+ [% IF ( lotsofholdingsitems ) %]
+ <p>This record has many physical items. <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]&viewallitems=1#holdings">Click here to view them all.</a></p>
[% ELSE %]
[% INCLUDE items_table items=itemloop tab="holdings" %]
[% END %]
[% IF (SeparateHoldings) %]
<div id="otherholdings">
[% IF (otheritemloop.size) %]
- [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
+ [% IF lotsofothersholdingsitems %]
+ <p>This record has many physical items. <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]&viewallitems=1#otherholdings">Click here to view them all.</a></p>
+ [% ELSE %]
+ [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
+ [% END %]
[% ELSE %]
No other items.
[% END %]
# TODO: The limit of 50 could be a syspref
my $viewallitems = $query->param('viewallitems');
if (scalar(@itemloop) >= 50 && !$viewallitems) {
- $template->param('lotsofitems' => 1);
+ $template->param('lotsofholdingsitems' => 1);
+}
+if (scalar(@otheritemloop) >= 50 && !$viewallitems) {
+ $template->param('lotsofothersholdingsitems' => 1);
}
## get notes and subjects from MARC record