Bug 39124: In lists dropdown, the option "view all" is always displayed
In the code of the OPAC, the "Lists" dropdown menu is supposed to
display max. 10 lists and display a button "view all" if there are more
than 10 lists.
The button "view all" is always displayed and it is weird when there
are few lists because "Public lists" and "Your lists" do the same.
Test plan:
1 - On an OPAC with less than 10 public lists and 10 private lists,
navigate to /cgi-bin/koha/opac-shelves.pl, click on the dropdown see
there is a view all button for both types of lists
2 - APPLY PATCH
3 - Repeat 1, notice the buttons disappeared
4 - Create lists so there are >10 public and >10 private lists
5 - Repeat 1, notice the buttons reappeared
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 88a292af36)
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
This commit is contained in:
parent
e46b444ac0
commit
bd41df01a0
|
|
@ -59,7 +59,7 @@
|
|||
[% SET number_of_public_shelves = number_of_public_shelves + 1 %]
|
||||
[% IF number_of_public_shelves >= 10 %][% LAST %][% END %]
|
||||
[% END %]
|
||||
[% IF some_public_shelves > 10 %]
|
||||
[% IF some_public_shelves.count > 10 %]
|
||||
<a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=1" tabindex="-1" role="menuitem">View all</a>
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
|
@ -76,7 +76,7 @@
|
|||
[% SET number_of_private_shelves = number_of_private_shelves + 1 %]
|
||||
[% IF number_of_private_shelves >= 10 %][% LAST %][% END %]
|
||||
[% END %]
|
||||
[% IF some_private_shelves > 10 %]
|
||||
[% IF some_private_shelves.count > 10 %]
|
||||
<a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=0" tabindex="-1" role="menuitem">View all</a>
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue