Lines 37-68
Link Here
|
37 |
<li class="dropdown"> |
37 |
<li class="dropdown"> |
38 |
<a href="#" title="Show lists" class="dropdown-toggle" id="listsmenu" data-toggle="dropdown" role="button"><i class="icon-list icon-white"></i> <span class="listslabel">Lists</span> <b class="caret"></b></a> |
38 |
<a href="#" title="Show lists" class="dropdown-toggle" id="listsmenu" data-toggle="dropdown" role="button"><i class="icon-list icon-white"></i> <span class="listslabel">Lists</span> <b class="caret"></b></a> |
39 |
<ul aria-labelledby="listsmenu" role="menu" class="dropdown-menu"> |
39 |
<ul aria-labelledby="listsmenu" role="menu" class="dropdown-menu"> |
40 |
[% IF ( pubshelves ) %] |
40 |
[% IF some_public_shelves.count %] |
41 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=2" tabindex="-1" role="menuitem"><strong>Public lists</strong></a></li> |
41 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=2" tabindex="-1" role="menuitem"><strong>Public lists</strong></a></li> |
42 |
[% FOREACH pubshelvesloo IN pubshelvesloop %] |
42 |
[% SET number_of_public_shelves = 0 %] |
43 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% pubshelvesloo.shelfnumber %]&sortfield=[% pubshelvesloo.sortfield %]" tabindex="-1" role="menuitem">[% pubshelvesloo.shelfname |html %]</a></li> |
43 |
[% FOREACH s IN some_public_shelves %] |
44 |
[% END %] |
44 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]&sortfield=[% s.sortfield %]" tabindex="-1" role="menuitem">[% s.shelfname |html %]</a></li> |
45 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=2" tabindex="-1" role="menuitem" class="listmenulink">View All</a></li> |
45 |
[% SET number_of_public_shelves = number_of_public_shelves + 1 %] |
46 |
[% ELSE %] |
46 |
[% IF number_of_public_shelves >= 10 %][% LAST %][% END %] |
47 |
<li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No public lists</a></li> |
|
|
48 |
[% END %] |
47 |
[% END %] |
49 |
<li class="divider" role="presentation"></li> |
48 |
[% IF some_public_shelves > 10 %] |
50 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
49 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=2" tabindex="-1" role="menuitem" class="listmenulink">View All</a></li> |
51 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem"><strong>Your lists</strong></a></li> |
50 |
[% END %] |
52 |
[% IF ( loggedinusername ) %] |
51 |
[% ELSE %] |
53 |
[% IF ( barshelves ) %] |
52 |
<li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No public lists</a></li> |
54 |
[% FOREACH barshelvesloo IN barshelvesloop %] |
53 |
[% END %] |
55 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% barshelvesloo.shelfnumber %]&sortfield=[% barshelvesloo.sortfield %]" tabindex="-1" role="menuitem">[% barshelvesloo.shelfname |html %]</a></li> |
54 |
<li class="divider" role="presentation"></li> |
56 |
[% END %] |
55 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
57 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem" class="listmenulink">View all</a></li> |
56 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem"><strong>Your lists</strong></a></li> |
58 |
[% ELSE %] |
57 |
[% IF loggedinusername %] |
59 |
<li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No private lists</a></li> |
58 |
[% IF some_private_shelves.count %] |
60 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem" class="listmenulink">New list</a></li> |
59 |
[% SET number_of_private_shelves = 0 %] |
|
|
60 |
[% FOREACH s IN some_private_shelves %] |
61 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]&sortfield=[% s.sortfield %]" tabindex="-1" role="menuitem">[% s.shelfname |html %]</a></li> |
62 |
[% SET number_of_private_shelves = number_of_private_shelves + 1 %] |
63 |
[% IF number_of_private_shelves >= 10 %][% LAST %][% END %] |
64 |
[% END %] |
65 |
[% IF some_private_shelves > 10 %] |
66 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem" class="listmenulink">View All</a></li> |
61 |
[% END %] |
67 |
[% END %] |
62 |
[% ELSE %] |
68 |
[% ELSE %] |
63 |
<li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive loginModal-trigger" role="menuitem">Log in to create your own lists</a></li> |
69 |
<li role="presentation"><a href="#" tabindex="-1" class="menu-inactive" role="menuitem">No private lists</a></li> |
64 |
[% END # / IF loggedinusername %] |
70 |
<li role="presentation"><a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1" tabindex="-1" role="menuitem" class="listmenulink">New list</a></li> |
65 |
[% END # / IF opacuserlogin %] |
71 |
[% END %] |
|
|
72 |
[% ELSE %] |
73 |
<li role="presentation"><a href="/cgi-bin/koha/opac-user.pl" tabindex="-1" class="menu-inactive loginModal-trigger" role="menuitem">Log in to create your own lists</a></li> |
74 |
[% END # / IF loggedinusername %] |
75 |
[% END # / IF opacuserlogin %] |
66 |
</ul> <!-- / .dropdown-menu --> |
76 |
</ul> <!-- / .dropdown-menu --> |
67 |
</li> <!-- / .dropdown --> |
77 |
</li> <!-- / .dropdown --> |
68 |
[% END # / IF virtualshelves %] |
78 |
[% END # / IF virtualshelves %] |