|
Lines 64-106
Link Here
|
| 64 |
</a> |
64 |
</a> |
| 65 |
<div aria-labelledby="listsmenu" role="menu" class="dropdown-menu"> |
65 |
<div aria-labelledby="listsmenu" role="menu" class="dropdown-menu"> |
| 66 |
[% IF some_public_shelves.count %] |
66 |
[% IF some_public_shelves.count %] |
| 67 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=1" tabindex="-1" role="menuitem"><strong>Public lists</strong></a> |
67 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=1" tabindex="0" role="menuitem"><strong>Public lists</strong></a> |
| 68 |
[% SET number_of_public_shelves = 0 %] |
68 |
[% SET number_of_public_shelves = 0 %] |
| 69 |
[% FOREACH s IN some_public_shelves %] |
69 |
[% FOREACH s IN some_public_shelves %] |
| 70 |
<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" |
70 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]&sortfield=[% s.sortfield | uri %]" tabindex="0" role="menuitem" |
| 71 |
>[% s.shelfname | html %]</a |
71 |
>[% s.shelfname | html %]</a |
| 72 |
> |
72 |
> |
| 73 |
[% SET number_of_public_shelves = number_of_public_shelves + 1 %] |
73 |
[% SET number_of_public_shelves = number_of_public_shelves + 1 %] |
| 74 |
[% IF number_of_public_shelves >= 10 %][% LAST %][% END %] |
74 |
[% IF number_of_public_shelves >= 10 %][% LAST %][% END %] |
| 75 |
[% END %] |
75 |
[% END %] |
| 76 |
[% IF some_public_shelves.count > 10 %] |
76 |
[% IF some_public_shelves.count > 10 %] |
| 77 |
<a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=1" tabindex="-1" role="menuitem">View all</a> |
77 |
<a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=1" tabindex="0" role="menuitem">View all</a> |
| 78 |
[% END %] |
78 |
[% END %] |
| 79 |
[% END %] |
79 |
[% END %] |
| 80 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 && some_public_shelves.count > 0 %] |
80 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 && some_public_shelves.count > 0 %] |
| 81 |
<div class="dropdown-divider"></div> |
81 |
<div class="dropdown-divider"></div> |
| 82 |
[% END %] |
82 |
[% END %] |
| 83 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
83 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
| 84 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=0" tabindex="-1" role="menuitem"><strong>Your lists</strong></a> |
84 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=0" tabindex="0" role="menuitem"><strong>Your lists</strong></a> |
| 85 |
[% IF loggedinusername %] |
85 |
[% IF loggedinusername %] |
| 86 |
[% IF some_private_shelves.count %] |
86 |
[% IF some_private_shelves.count %] |
| 87 |
[% SET number_of_private_shelves = 0 %] |
87 |
[% SET number_of_private_shelves = 0 %] |
| 88 |
[% FOREACH s IN some_private_shelves %] |
88 |
[% FOREACH s IN some_private_shelves %] |
| 89 |
<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" |
89 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]&sortfield=[% s.sortfield | uri %]" tabindex="0" role="menuitem" |
| 90 |
>[% s.shelfname | html %]</a |
90 |
>[% s.shelfname | html %]</a |
| 91 |
> |
91 |
> |
| 92 |
[% SET number_of_private_shelves = number_of_private_shelves + 1 %] |
92 |
[% SET number_of_private_shelves = number_of_private_shelves + 1 %] |
| 93 |
[% IF number_of_private_shelves >= 10 %][% LAST %][% END %] |
93 |
[% IF number_of_private_shelves >= 10 %][% LAST %][% END %] |
| 94 |
[% END %] |
94 |
[% END %] |
| 95 |
[% IF some_private_shelves.count > 10 %] |
95 |
[% IF some_private_shelves.count > 10 %] |
| 96 |
<a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=0" tabindex="-1" role="menuitem">View all</a> |
96 |
<a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=0" tabindex="0" role="menuitem">View all</a> |
| 97 |
[% END %] |
97 |
[% END %] |
| 98 |
[% ELSE %] |
98 |
[% ELSE %] |
| 99 |
<a class="dropdown-item disabled" aria-disabled="true" href="#" tabindex="-1" role="menuitem">No private lists</a> |
99 |
<a class="dropdown-item disabled" aria-disabled="true" href="#" tabindex="0" role="menuitem">No private lists</a> |
| 100 |
[% END %] |
100 |
[% END %] |
| 101 |
<a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="-1" role="menuitem">New list</a> |
101 |
<a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="0" role="menuitem">New list</a> |
| 102 |
[% ELSE %] |
102 |
[% ELSE %] |
| 103 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="-1" role="menuitem">Log in to create your own lists</a> |
103 |
<a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="0" role="menuitem">Log in to create your own lists</a> |
| 104 |
[% END # / IF loggedinusername %] |
104 |
[% END # / IF loggedinusername %] |
| 105 |
[% END # / IF opacuserlogin %] |
105 |
[% END # / IF opacuserlogin %] |
| 106 |
</div> |
106 |
</div> |
|
Lines 133-139
Link Here
|
| 133 |
<i class="fa fa-user fa-icon-black fa-fw" aria-hidden="true"></i> |
133 |
<i class="fa fa-user fa-icon-black fa-fw" aria-hidden="true"></i> |
| 134 |
<span class="userlabel">Welcome, [% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %]</span> |
134 |
<span class="userlabel">Welcome, [% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %]</span> |
| 135 |
</a> |
135 |
</a> |
| 136 |
<a tabindex="-1" role="menuitem" class="logout js-hide" href="/cgi-bin/koha/opac-main.pl?logout.x=1"><i class="fa fa-fw fa-sign-out" aria-hidden="true"></i> Log out</a> |
136 |
<a tabindex="0" role="menuitem" class="logout js-hide" href="/cgi-bin/koha/opac-main.pl?logout.x=1"><i class="fa fa-fw fa-sign-out" aria-hidden="true"></i> Log out</a> |
| 137 |
[% ELSE %] |
137 |
[% ELSE %] |
| 138 |
[% IF Koha.Preference('casAuthentication') %] |
138 |
[% IF Koha.Preference('casAuthentication') %] |
| 139 |
[%# CAS authentication is too complicated for modal window %] |
139 |
[%# CAS authentication is too complicated for modal window %] |
|
Lines 168-179
Link Here
|
| 168 |
</p> |
168 |
</p> |
| 169 |
[% IF Koha.Preference( 'EnableOpacSearchHistory' ) %] |
169 |
[% IF Koha.Preference( 'EnableOpacSearchHistory' ) %] |
| 170 |
<p> |
170 |
<p> |
| 171 |
<a tabindex="-1" role="menuitem" class="login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a> |
171 |
<a tabindex="0" role="menuitem" class="login-link" href="/cgi-bin/koha/opac-search-history.pl" title="View your search history">Search history</a> |
| 172 |
<span class="divider-vertical"></span> |
172 |
<span class="divider-vertical"></span> |
| 173 |
<a class="clearsh" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history"><i class="fa fa-trash-can" aria-hidden="true"></i> Clear</a> |
173 |
<a class="clearsh" href="/cgi-bin/koha/opac-search-history.pl?action=delete" title="Delete your search history"><i class="fa fa-trash-can" aria-hidden="true"></i> Clear</a> |
| 174 |
</p> |
174 |
</p> |
| 175 |
[% END %] |
175 |
[% END %] |
| 176 |
<a tabindex="-1" role="menuitem" class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log out</a> |
176 |
<a tabindex="0" role="menuitem" class="logout" id="logout" href="/cgi-bin/koha/opac-main.pl?logout.x=1">Log out</a> |
| 177 |
</div> |
177 |
</div> |
| 178 |
</div> |
178 |
</div> |
| 179 |
[% END %] |
179 |
[% END %] |
| 180 |
- |
|
|