Bug 11256: Opac: Set a number of items to display on a biblio detail page - bootstrap
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 18 Feb 2014 13:27:14 +0000 (14:27 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 21 Feb 2014 18:34:31 +0000 (18:34 +0000)
This patch adds the changes for the bootstrap theme.
See test plan in the previous patch.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt

index 46f73db..64821b9 100644 (file)
                         [% ELSE %]
                             <li id="tab_holdings">
                         [% END %]
-                            <a href="#holdings">[% IF SeparateHoldings %][% LoginBranchname %] holdings[% ELSE %]Holdings[% END %] ( [% itemloop.size || 0 %] )</a>
+                            <a href="#holdings">[% IF SeparateHoldings %][% LoginBranchname %] holdings[% ELSE %]Holdings[% END %] [% UNLESS too_many_items %] ( [% itemloop.size || 0 %] )[% END %]</a>
                         </li>
                         [% IF (SeparateHoldings) %]
                             <li><a href="#otherholdings">Other holdings ( [% otheritemloop.size || 0 %] )</a></li>
 
 
                     <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 %]&amp;viewallitems=1#holdings">Click here to view them all.</a></p>
-                            [% ELSE %]
-                                [% INCLUDE items_table items=itemloop tab="holdings" %]
-                            [% END %]
+                        [% IF too_many_items %]
+                            <p>This record has many physical items ([% items_count %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]&amp;viewallitems=1">Click here to view them all.</a></p>
+                        [% ELSIF ( itemloop.size ) %]
+                            [% INCLUDE items_table items=itemloop tab="holdings" %]
+
                             [% IF holds_count.defined || priority %]
                                 <div id="bib_holds">
                                     [% IF holds_count.defined %]