Lines 41-47
Link Here
|
41 |
</a> |
41 |
</a> |
42 |
<div aria-labelledby="listsmenu" role="menu" class="dropdown-menu"> |
42 |
<div aria-labelledby="listsmenu" role="menu" class="dropdown-menu"> |
43 |
[% IF some_public_shelves.count %] |
43 |
[% IF some_public_shelves.count %] |
44 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&category=2" tabindex="-1" role="menuitem"><strong>Public lists</strong></a> |
44 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=1" tabindex="-1" role="menuitem"><strong>Public lists</strong></a> |
45 |
[% SET number_of_public_shelves = 0 %] |
45 |
[% SET number_of_public_shelves = 0 %] |
46 |
[% FOREACH s IN some_public_shelves %] |
46 |
[% FOREACH s IN some_public_shelves %] |
47 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]&sortfield=[% s.sortfield | uri %]" tabindex="-1" role="menuitem">[% s.shelfname | html %]</a> |
47 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]&sortfield=[% s.sortfield | uri %]" tabindex="-1" role="menuitem">[% s.shelfname | html %]</a> |
Lines 49-62
Link Here
|
49 |
[% IF number_of_public_shelves >= 10 %][% LAST %][% END %] |
49 |
[% IF number_of_public_shelves >= 10 %][% LAST %][% END %] |
50 |
[% END %] |
50 |
[% END %] |
51 |
[% IF some_public_shelves > 10 %] |
51 |
[% IF some_public_shelves > 10 %] |
52 |
<a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&category=2" tabindex="-1" role="menuitem">View All</a> |
52 |
<a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=1" tabindex="-1" role="menuitem">View All</a> |
53 |
[% END %] |
53 |
[% END %] |
54 |
[% END %] |
54 |
[% END %] |
55 |
[% IF some_public_shelves.count > 0 %] |
55 |
[% IF some_public_shelves.count > 0 %] |
56 |
<div class="dropdown-divider"></div> |
56 |
<div class="dropdown-divider"></div> |
57 |
[% END %] |
57 |
[% END %] |
58 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
58 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
59 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem"><strong>Your lists</strong></a> |
59 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=0" tabindex="-1" role="menuitem"><strong>Your lists</strong></a> |
60 |
[% IF loggedinusername %] |
60 |
[% IF loggedinusername %] |
61 |
[% IF some_private_shelves.count %] |
61 |
[% IF some_private_shelves.count %] |
62 |
[% SET number_of_private_shelves = 0 %] |
62 |
[% SET number_of_private_shelves = 0 %] |
Lines 66-72
Link Here
|
66 |
[% IF number_of_private_shelves >= 10 %][% LAST %][% END %] |
66 |
[% IF number_of_private_shelves >= 10 %][% LAST %][% END %] |
67 |
[% END %] |
67 |
[% END %] |
68 |
[% IF some_private_shelves > 10 %] |
68 |
[% IF some_private_shelves > 10 %] |
69 |
<a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem">View All</a> |
69 |
<a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=0" tabindex="-1" role="menuitem">View All</a> |
70 |
[% END %] |
70 |
[% END %] |
71 |
[% ELSE %] |
71 |
[% ELSE %] |
72 |
<a class="dropdown-item disabled" href="#" tabindex="-1" role="menuitem">No private lists</a> |
72 |
<a class="dropdown-item disabled" href="#" tabindex="-1" role="menuitem">No private lists</a> |