Lines 153-160
Link Here
|
153 |
[% IF shelf AND op == 'view' %] |
153 |
[% IF shelf AND op == 'view' %] |
154 |
<h3> |
154 |
<h3> |
155 |
[% shelf.shelfname | html %] |
155 |
[% shelf.shelfname | html %] |
156 |
<a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-shelves.pl?rss=1&op=view&shelfnumber=[% shelf.shelfnumber | uri %]" class="rss-list-link noprint"> |
156 |
<a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-shelves.pl?rss=1&op=view&shelfnumber=[% shelf.shelfnumber | uri %]" class="rss-list-link noprint" aria-label="Subscribe to this list"> |
157 |
<i class="fa fa-fw fa-rss rsssearchicon" title="Subscribe to this list"></i> |
157 |
<i class="fa fa-fw fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to this list"></i> |
158 |
</a> |
158 |
</a> |
159 |
</h3> |
159 |
</h3> |
160 |
|
160 |
|
Lines 162-175
Link Here
|
162 |
<div id="floating"> |
162 |
<div id="floating"> |
163 |
<div id="toolbar" class="toolbar clearfix"> |
163 |
<div id="toolbar" class="toolbar clearfix"> |
164 |
<div class="list-actions"> |
164 |
<div class="list-actions"> |
165 |
<a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-fw fa-plus"></i> New list</a> <span class="sep">|</span> |
165 |
<a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-fw fa-plus" aria-hidden="true"></i> New list</a> <span class="sep">|</span> |
166 |
<a href="/cgi-bin/koha/opac-downloadshelf.pl?shelfnumber=[% shelf.shelfnumber | uri %]" class="btn btn-link download" data-toggle="modal" data-target="#modalWin"><i class="fa fa-fw fa-download"></i> Download list</a> |
166 |
<a href="/cgi-bin/koha/opac-downloadshelf.pl?shelfnumber=[% shelf.shelfnumber | uri %]" class="btn btn-link download" data-toggle="modal" data-target="#modalWin"><i class="fa fa-fw fa-download" aria-hidden="true"></i> Download list</a> |
167 |
|
167 |
|
168 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
168 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
169 |
<span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | uri %]" class="btn btn-link send" onclick="open('/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | html %]','win_form','scrollbars=yes,resizable=yes,height=400,width=500,top=50,left=100'); return false; "><i class="fa fa-fw fa-envelope"></i> Send list</a></span> |
169 |
<span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | uri %]" class="btn btn-link send" onclick="open('/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | html %]','win_form','scrollbars=yes,resizable=yes,height=400,width=500,top=50,left=100'); return false; "><i class="fa fa-fw fa-envelope" aria-hidden="true"></i> Send list</a></span> |
170 |
[% END %] |
170 |
[% END %] |
171 |
|
171 |
|
172 |
<a class="btn btn-link print-small" target="_blank" href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | html %]&sortfield=[% sortfield | html %]&direction=[% direction | uri %]&print=1"><i class="fa fa-fw fa-print"></i> Print list</a> |
172 |
<a class="btn btn-link print-small" target="_blank" href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | html %]&sortfield=[% sortfield | html %]&direction=[% direction | uri %]&print=1"><i class="fa fa-fw fa-print" aria-hidden="true"></i> Print list</a> |
173 |
|
173 |
|
174 |
[% IF can_manage_shelf %] |
174 |
[% IF can_manage_shelf %] |
175 |
<span class="sep">|</span> |
175 |
<span class="sep">|</span> |
Lines 178-184
Link Here
|
178 |
<input type="hidden" name="referer" value="view" /> |
178 |
<input type="hidden" name="referer" value="view" /> |
179 |
<input type='hidden' name='category' value='[% shelf.category | html %]' /> |
179 |
<input type='hidden' name='category' value='[% shelf.category | html %]' /> |
180 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> |
180 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> |
181 |
<button type="submit" class="btn btn-link editshelf"><i class="fa fa-fw fa-pencil-square-o"></i> Edit list</button> |
181 |
<button type="submit" class="btn btn-link editshelf"><i class="fa fa-fw fa-pencil-square-o" aria-hidden="true"></i> Edit list</button> |
182 |
</form> |
182 |
</form> |
183 |
|
183 |
|
184 |
<form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline"> |
184 |
<form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline"> |
Lines 186-195
Link Here
|
186 |
<input type="hidden" name="referer" value="list" /> |
186 |
<input type="hidden" name="referer" value="list" /> |
187 |
<input type='hidden' name='category' value='[% shelf.category | html %]' /> |
187 |
<input type='hidden' name='category' value='[% shelf.category | html %]' /> |
188 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> |
188 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> |
189 |
<button type="submit" class="btn btn-link remove deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"><i class="fa fa-fw fa-remove"></i> Delete list</button> |
189 |
<button type="submit" class="btn btn-link remove deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"><i class="fa fa-fw fa-remove" aria-hidden="true"></i> Delete list</button> |
190 |
</form> |
190 |
</form> |
191 |
[% IF category == PRIVATE && Koha.Preference('OpacAllowSharingPrivateLists') %] |
191 |
[% IF category == PRIVATE && Koha.Preference('OpacAllowSharingPrivateLists') %] |
192 |
<a href="/cgi-bin/koha/opac-shareshelf.pl?op=invite&shelfnumber=[% shelf.shelfnumber | uri %]" class="btn btn-link sharelist"><i class="fa fa-fw fa-share"></i> Share list</a> |
192 |
<a href="/cgi-bin/koha/opac-shareshelf.pl?op=invite&shelfnumber=[% shelf.shelfnumber | uri %]" class="btn btn-link sharelist"><i class="fa fa-fw fa-share" aria-hidden="true"></i> Share list</a> |
193 |
[% END %] |
193 |
[% END %] |
194 |
[% ELSIF category == PRIVATE # not manageshelf and private means shared %] |
194 |
[% ELSIF category == PRIVATE # not manageshelf and private means shared %] |
195 |
<form action="/cgi-bin/koha/opac-shelves.pl" method="post" class="form-inline"> |
195 |
<form action="/cgi-bin/koha/opac-shelves.pl" method="post" class="form-inline"> |
Lines 197-203
Link Here
|
197 |
<input type="hidden" name="referer" value="list" /> |
197 |
<input type="hidden" name="referer" value="list" /> |
198 |
<input type='hidden' name='category' value='[% category | html %]' /> |
198 |
<input type='hidden' name='category' value='[% category | html %]' /> |
199 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> |
199 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> |
200 |
<button type="submit" class="btn btn-link deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_REMOVE_SHARE);"><i class="fa fa-fw fa-remove"></i> Remove share</button> |
200 |
<button type="submit" class="btn btn-link deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_REMOVE_SHARE);"><i class="fa fa-fw fa-remove" aria-hidden="true"></i> Remove share</button> |
201 |
</form> |
201 |
</form> |
202 |
[% END %] |
202 |
[% END %] |
203 |
</div> |
203 |
</div> |
Lines 285-291
Link Here
|
285 |
[% END %] |
285 |
[% END %] |
286 |
[% IF ( TagsInputEnabled && loggedinusername ) %] |
286 |
[% IF ( TagsInputEnabled && loggedinusername ) %] |
287 |
<span id="addtags"> |
287 |
<span id="addtags"> |
288 |
<a id="tagsel_tag" href="#" class="btn btn-link btn-disabled"><i class="fa fa-fw fa-tag"></i> Tag</a> |
288 |
<a id="tagsel_tag" href="#" class="btn btn-link btn-disabled"><i class="fa fa-fw fa-tag" aria-hidden="true"></i> Tag</a> |
289 |
</span> |
289 |
</span> |
290 |
<span id="tagsel_form" style="display:none"> |
290 |
<span id="tagsel_form" style="display:none"> |
291 |
<label for="tagsel_new">New tag(s), separated by a comma:</label> |
291 |
<label for="tagsel_new">New tag(s), separated by a comma:</label> |
Lines 492-498
Link Here
|
492 |
[% ELSE %] |
492 |
[% ELSE %] |
493 |
<div id="toolbar" class="toolbar clearfix"> |
493 |
<div id="toolbar" class="toolbar clearfix"> |
494 |
<div class="list-actions"> |
494 |
<div class="list-actions"> |
495 |
<a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-fw fa-plus"></i> New list</a> |
495 |
<a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-fw fa-plus" aria-hidden="true"></i> New list</a> |
496 |
[% IF can_manage_shelf %] |
496 |
[% IF can_manage_shelf %] |
497 |
<span class="sep">|</span> |
497 |
<span class="sep">|</span> |
498 |
<form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline"> |
498 |
<form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline"> |
Lines 500-513
Link Here
|
500 |
<input type="hidden" name="referer" value="view" /> |
500 |
<input type="hidden" name="referer" value="view" /> |
501 |
<input type="hidden" name="category" value="[% shelf.category | html %]" /> |
501 |
<input type="hidden" name="category" value="[% shelf.category | html %]" /> |
502 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> |
502 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" /> |
503 |
<button type="submit" class="btn btn-link editshelf"><i class="fa fa-fw fa-pencil-square-o"></i> Edit list</button> |
503 |
<button type="submit" class="btn btn-link editshelf"><i class="fa fa-fw fa-pencil-square-o" aria-hidden="true"></i> Edit list</button> |
504 |
</form> |
504 |
</form> |
505 |
|
505 |
|
506 |
<form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline"> |
506 |
<form method="post" action="/cgi-bin/koha/opac-shelves.pl" class="form-inline"> |
507 |
<input type="hidden" name="op" value="delete" /> |
507 |
<input type="hidden" name="op" value="delete" /> |
508 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]"/> |
508 |
<input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]"/> |
509 |
<input type="hidden" name="category" value="[% shelf.category | html %]" /> |
509 |
<input type="hidden" name="category" value="[% shelf.category | html %]" /> |
510 |
<button type="submit" class="btn btn-link remove deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"><i class="fa fa-fw fa-remove"></i> Delete list</button> |
510 |
<button type="submit" class="btn btn-link remove deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"><i class="fa fa-fw fa-remove" aria-hidden="true"></i> Delete list</button> |
511 |
</form> |
511 |
</form> |
512 |
[% END %] |
512 |
[% END %] |
513 |
</div> <!-- / .list-actions --> |
513 |
</div> <!-- / .list-actions --> |
Lines 646-652
Link Here
|
646 |
[% END %] |
646 |
[% END %] |
647 |
|
647 |
|
648 |
[% IF loggedinusername %] |
648 |
[% IF loggedinusername %] |
649 |
<div id="toolbar" class="toolbar"><a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-plus"></i> New list</a></div> |
649 |
<div id="toolbar" class="toolbar"><a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-plus" aria-hidden="true"></i> New list</a></div> |
650 |
[% ELSE %] |
650 |
[% ELSE %] |
651 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
651 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
652 |
<div class="alert alert-info"><a href="/cgi-bin/koha/opac-shelves.pl?op=add_form">Log in to create a new list</a></div> |
652 |
<div class="alert alert-info"><a href="/cgi-bin/koha/opac-shelves.pl?op=add_form">Log in to create a new list</a></div> |
Lines 683-689
Link Here
|
683 |
<input type="hidden" name="category" value="[% s.category | html %]" /> |
683 |
<input type="hidden" name="category" value="[% s.category | html %]" /> |
684 |
<input type="hidden" name="op" value="edit_form" /> |
684 |
<input type="hidden" name="op" value="edit_form" /> |
685 |
<input type="hidden" name="referer" value="list" /> |
685 |
<input type="hidden" name="referer" value="list" /> |
686 |
<button type="submit" class="btn btn-link editshelf"><i class="fa fa-pencil-square-o"></i> Edit</button> |
686 |
<button type="submit" class="btn btn-link editshelf"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> Edit</button> |
687 |
</form> |
687 |
</form> |
688 |
[% END %] |
688 |
[% END %] |
689 |
[% IF s.can_be_deleted( loggedinusernumber ) %] |
689 |
[% IF s.can_be_deleted( loggedinusernumber ) %] |
Lines 692-698
Link Here
|
692 |
<input type="hidden" name="referer" value="list" /> |
692 |
<input type="hidden" name="referer" value="list" /> |
693 |
<input type='hidden' name='category' value='[% category | html %]' /> |
693 |
<input type='hidden' name='category' value='[% category | html %]' /> |
694 |
<input type="hidden" name="shelfnumber" value="[% s.shelfnumber | html %]" /> |
694 |
<input type="hidden" name="shelfnumber" value="[% s.shelfnumber | html %]" /> |
695 |
<button type="submit" class="btn btn-link remove deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"><i class="fa fa-remove"></i> Delete</button> |
695 |
<button type="submit" class="btn btn-link remove deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);"><i class="fa fa-remove" aria-hidden="true"></i> Delete</button> |
696 |
</form> |
696 |
</form> |
697 |
[% END %] |
697 |
[% END %] |
698 |
[% IF s.is_private AND s.can_be_managed( loggedinusernumber ) AND Koha.Preference('OpacAllowSharingPrivateLists') %] |
698 |
[% IF s.is_private AND s.can_be_managed( loggedinusernumber ) AND Koha.Preference('OpacAllowSharingPrivateLists') %] |
Lines 834-840
$(function() {
Link Here
|
834 |
$("a.print").show(); |
834 |
$("a.print").show(); |
835 |
|
835 |
|
836 |
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %] |
836 |
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) ) %] |
837 |
$("#placehold").html("<a href=\"#\" class=\"btn btn-link hold tag_hides btn-disabled\"><i class=\"fa fa-fw fa-bookmark\"></i> "+_("Place hold")+"<\/a>"); |
837 |
$("#placehold").html("<a href=\"#\" class=\"btn btn-link hold tag_hides btn-disabled\"><i class=\"fa fa-fw fa-bookmark\" aria-hidden=\"true\"></i> "+_("Place hold")+"<\/a>"); |
838 |
$("#selections-toolbar a.hold").click(function(){ |
838 |
$("#selections-toolbar a.hold").click(function(){ |
839 |
holdSelections(); |
839 |
holdSelections(); |
840 |
return false; |
840 |
return false; |
Lines 927-933
$(function() {
Link Here
|
927 |
return false; |
927 |
return false; |
928 |
} |
928 |
} |
929 |
}); |
929 |
}); |
930 |
$("#removeitems").html("<a href=\"#\" class=\"btn btn-link disabled removeitems tag_hides\"><i class=\"fa fa-fw fa-remove\"></i> "+_("Remove from list")+"</a>") |
930 |
$("#removeitems").html("<a href=\"#\" class=\"btn btn-link disabled removeitems tag_hides\"><i class=\"fa fa-fw fa-remove\" aria-hidden=\"true\"></i> "+_("Remove from list")+"</a>") |
931 |
.click(function(){ |
931 |
.click(function(){ |
932 |
$("#myform").submit(); |
932 |
$("#myform").submit(); |
933 |
return false; |
933 |
return false; |
Lines 969-975
$(function() {
Link Here
|
969 |
function sortMenu( sorting_form ){ |
969 |
function sortMenu( sorting_form ){ |
970 |
var shelfnumber = sorting_form.find("input[name='shelfnumber']").val(); |
970 |
var shelfnumber = sorting_form.find("input[name='shelfnumber']").val(); |
971 |
var sort_link = "/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=" + shelfnumber + "&sortfield="; |
971 |
var sort_link = "/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=" + shelfnumber + "&sortfield="; |
972 |
var menu = "<div class=\"btn-group\"><button type=\"button\" class=\"btn btn-link dropdown-toggle\" data-toggle=\"dropdown\" id=\"sortmenu\" aria-haspopup=\"true\" aria-expanded=\"false\"><i class=\"fa fa-sort\"></i> " + _("Sort") + "</span></button><ul class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"sortmenu\">"; |
972 |
var menu = "<div class=\"btn-group\"><button type=\"button\" class=\"btn btn-link dropdown-toggle\" data-toggle=\"dropdown\" id=\"sortmenu\" aria-haspopup=\"true\" aria-expanded=\"false\"><i class=\"fa fa-sort\" aria-hidden=\"true\"></i> " + _("Sort") + "</span></button><ul class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"sortmenu\">"; |
973 |
$("#sortfield").children().each(function(){ |
973 |
$("#sortfield").children().each(function(){ |
974 |
if( $(this)[0].tagName.toUpperCase() == "OPTION" ){ |
974 |
if( $(this)[0].tagName.toUpperCase() == "OPTION" ){ |
975 |
menu += "<li><a href=\"" + sort_link + $(this).val() + "\">" + $(this).text() + "</a></li>"; |
975 |
menu += "<li><a href=\"" + sort_link + $(this).val() + "\">" + $(this).text() + "</a></li>"; |