6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha › [% IF op == 'view' %]Lists › Contents of [% shelf.shelfname | html %][% ELSE %]Lists[% END %][% IF op == 'add_form' %] › Create new list[% END %][% IF op == 'edit_form' %] › Edit list [% shelf.shelfname | html %][% END %]</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
11 [% BLOCK list_permissions %]
13 <label for="allow_changes_from">Allow changes to contents from: </label>
14 <select name="allow_changes_from" id="allow_changes_from" onchange="AdjustRemark()">
16 [% IF shelf.allow_change_from_owner %]<option value="0">Nobody</option>[% ELSE %]<option value="0" selected="selected">Nobody</option>[% END %]
18 [% IF shelf.allow_change_from_owner && (( !shelf.is_public && !shelf.is_shared ) || !shelf.allow_change_from_others ) %]
19 <option value="1" selected="selected">Owner only</option>
21 <option value="1">Owner only</option>
24 [% IF shelf.allow_change_from_others %]<option value="2" selected="selected">Anyone seeing this list</option>[% ELSE %]<option value="2">Anyone seeing this list</option>[% END %]
27   <span id="anyone_remark" style="display:none;color:red;">The Anyone permission has no actual effect while this list is strictly private.</span>
32 <body id="lists_shelves" class="lists">
33 [% INCLUDE 'header.inc' %]
34 [% INCLUDE 'cat-search.inc' %]
36 <div id="breadcrumbs">
37 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
39 <a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a>
43 [% IF shelf AND shelf.is_private %] ›
44 [% IF op == 'view' OR op == 'edit_form' %]
45 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PRIVATE %]">Your lists</a>
49 [% ELSIF shelf AND shelf.is_public %] ›
51 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PUBLIC %]">Public lists</a>
57 [% IF op == 'view' %]› Contents of <i>[% shelf.shelfname | html %]</i>[% END %][% IF op == 'add_form' %] › Create new list[% END %][% IF op == 'edit_form' %] › Edit list <i>[% shelf.shelfname | html %]</i>[% END %]</div>
59 <div id="doc3" class="yui-t2">
64 <div class="yui-g">[% INCLUDE 'virtualshelves-toolbar.inc' %]
67 [% FOR m IN messages %]
68 <div class="dialog [% m.type %]">
70 [% CASE 'error_on_update' %]
71 <span>An error occurred when updating this list.</span>
72 [% CASE 'error_on_insert' %]
73 <span>An error occurred when creating this list.</span>
74 [% CASE 'error_on_delete' %]
75 <span>An error occurred when deleting this list.</span>
76 [% CASE 'error_on_add_biblio' %]
77 [% IF m.item_barcode %]
78 <span>The item ([% m.item_barcode %]) has not been added to the list. Please verify it is not already in the list.</span>
80 <span>The record ([% m.bibnum %]) has not been added to the list. Please verify it is not already in the list.</span>
82 [% CASE 'success_on_update' %]
83 <span>List updated.</span>
84 [% CASE 'success_on_insert' %]
85 <span>List created.</span>
86 [% CASE 'success_on_delete' %]
87 <span>List deleted.</span>
88 [% CASE 'success_on_add_biblio' %]
89 [% IF m.item_barcode %]
90 <span>The item ([% m.item_barcode %]) has been added to the list.</span>
92 <span>The record ([% m.bibnum %]) has been added to the list.</span>
94 [% CASE 'success_on_remove_biblios' %]
95 <span>The item has been removed from the list.</span>
96 [% CASE 'does_not_exist' %]
97 <span>This list does not exist.</span>
98 [% CASE 'item_does_not_exist' %]
99 [% IF m.item_barcode %]
100 <span>The item ([% m.item_barcode %]) does not exist.</span>
102 <span>The record ([% m.bibnum %]) does not exist.</span>
104 [% CASE 'unauthorized_on_view' %]
105 <span>You do not have permission to view this list.</span>
106 [% CASE 'unauthorized_on_update' %]
107 <span>You do not have permission to update this list.</span>
108 [% CASE 'unauthorized_on_delete' %]
109 <span>You do not have permission to delete this list.</span>
110 [% CASE 'unauthorized_on_add_biblio' %]
111 <span>You do not have permission to add a record to this list.</span>
112 [% CASE 'no_biblio_removed' %]
113 <span>No record was removed.</span>
114 [% CASE 'Koha::Exceptions::Virtualshelves::DuplicateObject' %]
115 <span>An error occurred when creating this list. The name [% shelfname %] already exists.</span>
116 [% CASE 'Koha::Exceptions::Virtualshelves::UseDbAdminAccount' %]
117 <span>List could not be created. (Do not use the database administrator account.)</span>
118 [% CASE 'DBIx::Class::Exception' %]
121 [% m.code %] [% m.msg %]
126 [% IF op == 'view' %]
130 <h3>Contents of <i>[% shelf.shelfname | html %]</i></h3>
131 <div class="pages">[% pagination_bar %]</div>
132 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" id="listform" method="post" class="checkboxed">
133 <input type="hidden" name="op" value="remove_biblios" />
134 <input type="hidden" name="referer" value="view" />
135 <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber %]" />
137 [% IF direction == 'asc' %]
138 [% SET new_direction = 'desc' %]
140 [% SET direction = 'desc' %]
141 [% SET new_direction = 'asc' %]
144 <div id="searchheader" class="noprint">
146 <div id="selection_ops"><span class="checkall"></span> |
147 <span class="clearall"></span>
149 <span class="addto">| </span>
151 [% IF CAN_user_reserveforothers && Koha.Preference('DisplayMultiPlaceHold') %]
152 <div class="btn-group"><button class="btn btn-default btn-xs placehold"><i class="fa fa-sticky-note-o"></i> Place hold</button></div>
154 [% IF can_remove_biblios %]
155 <div class="btn-group"><button type="submit" class="btn btn-default btn-xs list-remove"><i class="fa fa-trash"></i> Remove selected</button></div>
157 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<div class="btn-group"><button type="submit" class="btn btn-default btn-xs merge-items"><i class="fa fa-compress"></i> Merge selected</button></div>[% END %]
162 <table id="searchresults">
164 [% IF ( itemsloop ) %]<th class="checkall"> </th>[% END %]
166 [% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %]
168 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber %]&sortfield=title&direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction %][% END %]">Title</a>
169 [% IF sortfield == 'title' %]
170 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
172 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
176 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber %]&sortfield=author&direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction %][% END %]">Author</a>
177 [% IF sortfield == 'author' %]
178 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
180 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
185 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber %]&sortfield=itemcallnumber&direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction %][% END %]">Call number</a>
186 [% IF sortfield == 'itemcallnumber' %]
187 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
189 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
193 [% FOREACH itemsloo IN itemsloop %]
197 <input type="checkbox" class="selection" value="[% itemsloo.biblionumber %]" name="biblionumber" />
200 [% UNLESS ( item_level_itypes ) %]<td>
201 [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />[% END %][% itemsloo.description %]
204 [% IF ( itemsloo.XSLTBloc ) %]
205 [% itemsloo.XSLTBloc %]
207 [% INCLUDE 'biblio-default-view.inc' biblionumber = itemsloo.biblionumber %]
208 [% itemsloo.title |html %][% FOREACH subtitl IN itemsloo.subtitle %] [% subtitl.subfield %][% END %]</a>
211 [% IF ( itemsloo.notforloan ) %]
212 <span class="noholdstext">No holds allowed</span>
214 [% IF ( itemsloo.ITEM_RESULTS.size ) %]
215 <a id="reserve_[% itemsloo.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]">Holds</a>
216 [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]&findborrower=[% holdfor_cardnumber %]">Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></span>[% END %]
218 <span class="noholdstext">No holds allowed</span>
221 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
222 | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber %]">Edit record</a>
224 [% IF ( CAN_user_editcatalogue_edit_items ) %]
225 | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber %]">Edit items</a>
229 <td>[% itemsloo.author %]</td>
230 <td>[% itemsloo.dateadded | $KohaDates%]</td>
233 [% FOREACH result IN itemsloo.ITEM_RESULTS %]
234 <li>[% result.holdingbranch %] [% IF ( result.location_intranet ) %] ([% result.location_intranet %]) [% END %]
235 [% IF ( result.itemcallnumber ) %]
236 [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% result.itemcallnumber |uri %]%22">[% result.itemcallnumber %]</a>]
243 [% END %]<!-- /itemsloop -->
245 <div class="pages">[% pagination_bar %]</div>
252 [% IF op == 'add_form' OR op == 'edit_form' %]
254 <div class="yui-u first">
255 <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl" class="validated">
256 <fieldset class="rows">
258 [% IF op == 'add_form' %]
259 <legend>Create a new list</legend>
260 <input type="hidden" name="op" value="add" />
262 <legend>Edit list <i>[% shelf.shelfname | html %]</i></legend>
263 <input type="hidden" name="op" value="edit" />
265 <input type="hidden" name="referer" value="[% referer | html %]" />
266 <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber %]" />
269 <label for="shelfname" class="required">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="[% shelf.shelfname |html %]" required="required" class="required" />
270 <span class="required">Required</span>
273 <span class="label">Owner: </span>
274 [% IF op == 'add_form' %]
275 <input type="hidden" name="owner" id="owner" value="[% loggedinusernumber %]" />[% loggedinusername %]</li>
278 <input type="hidden" id="owner" name="owner" value="[% owner.borrowernumber %]" />[% owner.firstname _ ' ' _ owner.surname %]
280 <input type="hidden" id="owner" name="owner" value="[% loggedinusernumber %]" />[% loggedinusername %]
284 <li><label for="sortfield" >Sort this list by: </label>
285 <select name="sortfield">
286 [% IF shelf.sortfield == "title" %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %]
287 [% IF shelf.sortfield == "author" %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %]
288 [% IF shelf.sortfield == "copyrightdate" %]<option value="copyrightdate" selected="selected">Copyrightdate</option>[% ELSE %]<option value="copyrightdate">Copyrightdate</option>[% END %]
289 [% IF shelf.sortfield == "itemcallnumber" %]<option value="itemcallnumber" selected="selected">Call number</option>[% ELSE %]<option value="itemcallnumber">Call number</option>[% END %]
291 <li><label for="category">Category: </label>
292 <select id="category" name="category" onchange="AdjustRemark()">
293 [% IF shelf.is_private %]
294 <option value="1" selected="selected">Private</option>
296 <option value="1">Private</option>
298 [% IF shelf.is_public %]
299 <option value="2" selected="selected">Public</option>
301 <option value="2">Public</option>
305 [% INCLUDE list_permissions %]
310 <fieldset class="action">
311 <input type="submit" value="Save" class="submit" />
312 [% IF referer == 'view' %]
313 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber %]" class="cancel">Cancel</a>
315 [% IF category == PUBLIC %]
316 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PUBLIC %]" class="cancel">Cancel</a>
318 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=list&category=[% PRIVATE %]" class="cancel">Cancel</a>
327 [% IF op == 'list' %]
329 <div id="tabs" class="toptabs">
331 <li id="privateshelves_tab" class="active"><a href="#tab_content">Your lists</a></li>
332 <li id="publicshelves_tab" class="active"><a href="#tab_content">Public lists</a></li>
335 <div id="tab_content">
336 <table id="listresultst">
339 <th class="NoVisible">Type</th>
345 <th>Creation date</th>
346 <th>Modification date</th>
349 <tr class="filters_row">
351 <th><input class="filter text_filter" id="searchshelfname_filter" placeholder="List name"></th>
354 <th><input class="filter text_filter" id="searchowner_filter" placeholder="Owner"></th>
356 <select class="filter text_filter" id="searchsortby_filter">
357 <option value=""></option>
358 <option value="title">Title</option>
359 <option value="author">Author</option>
360 <option value="copyrightdate">Copyrightdate</option>
361 <option value="itemcallnumber">Call number</option>
375 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
376 <!-- Value will be set here by placeHold() -->
377 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
378 <input type="hidden" name="multi_hold" value="1"/>
384 [% IF ( can_add_biblios ) %]
386 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
387 <fieldset class="brief noprint">
388 <legend>Add items</legend>
391 <label for="barcodes">Barcodes:</label>
392 <textarea name="barcodes" id="barcodes" class="focus" autocomplete="off" rows="5"></textarea>
393 <input type="hidden" name="op" value="add_biblio" />
394 <input type="hidden" name="referer" value="view" />
395 <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber %]" />
398 <label for="biblionumbers">Biblio numbers:</label>
399 <textarea name="biblionumbers" id="biblionumbers" class="focus" autocomplete="off" rows="5"></textarea>
400 <input type="hidden" name="op" value="add_biblio" />
401 <input type="hidden" name="referer" value="view" />
402 <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber %]" />
405 <fieldset class="action">
406 <input type="submit" value="Add" />
415 [% MACRO jsinclude BLOCK %]
416 [% INCLUDE 'datatables.inc' %]
417 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
419 <script type="text/javascript">
420 $( document ).ready(function() {
422 setTimeout('window.close()', 1);
427 [% IF op == 'view' %]
428 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
429 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
431 <script type="text/javascript">
432 var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
433 var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
434 var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to remove this list?");
436 [% IF op == 'list' %]
437 $(document).ready(function(){
438 [% IF category == PUBLIC %]
439 var type = [% PUBLIC %];
441 var type = [% PRIVATE %];
443 var dtListResults = $("#listresultst").dataTable($.extend(true, {}, dataTablesDefaults, {
445 "aaSorting": [[ 5, "asc" ]],
447 'sAjaxSource': "/cgi-bin/koha/svc/virtualshelves/search",
448 'fnServerData': function(sSource, aoData, fnCallback) {
454 'value': $("#searchshelfname_filter").val(),
457 'value': $("#searchowner_filter").val(),
460 'value': $("#searchsortby_filter").val(),
462 'name': 'template_path',
463 'value': 'virtualshelves/tables/shelves_results.tt',
470 'success': function(json){
476 { 'mDataProp': 'dt_type' },
477 { 'mDataProp': 'dt_shelfname' },
478 { 'mDataProp': 'dt_count' },
479 { 'mDataProp': 'dt_is_shared' },
480 { 'mDataProp': 'dt_owner' },
481 { 'mDataProp': 'dt_sortby' },
482 { 'mDataProp': 'dt_created_on' },
483 { 'mDataProp': 'dt_modification_time' },
484 { 'mDataProp': 'dt_action', 'bSortable': false, 'sClass': 'actions' }
487 { "bVisible": false, "aTargets": [ 'NoVisible' ] }
490 'sPaginationType': 'full_numbers',
493 "bSortCellsTop": true
496 dtListResults.fnAddFilters("filter", 750);
498 var tabs = $("#tabs").tabs({
499 [% IF category == PUBLIC %]
504 activate: function(e, ui) {
505 var active = tabs.tabs("option", "active" );
507 type = [% PRIVATE %];
508 dtListResults.fnDraw();
509 } else if ( active == 1 ) {
511 dtListResults.fnDraw();
515 $("body").on("click", ".deleteshelf", function(){
516 return confirmDelete(MSG_CONFIRM_DELETE_LIST);
521 [% IF shelf AND op == 'view' %]
522 $(document).ready(function(){
523 [% IF ( itemsloop ) %]$('#searchheader').fixFloat();[% END %]
524 $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\"><i class=\"fa fa-remove\"></i>"+_(" Clear all")+"<\/a>");
525 $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/shelves.pl\"><i class=\"fa fa-check\"></i>"+_(" Select all")+"<\/a>");
526 $("#CheckAll").click(function(){
527 $(".checkboxed").checkCheckboxes();
530 $("#CheckNone").click(function(){
531 $(".checkboxed").unCheckCheckboxes();
534 $(".placehold").on("click",function(e){
538 $(".addtocart").show();
539 var param1 = "| <label for=\"addto\">"+_("Add to:")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>";
540 [% IF ( intranetbookbag ) %]
541 param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
543 [% IF Koha.Preference('virtualshelves') %]
544 [% IF add_to_some_private_shelves.count %]
545 param1 += "<optgroup label=\""+_("Your lists:")+"\">";
546 [% SET number_of_private_shelves = 0 %]
547 [% FOREACH s IN add_to_some_private_shelves %]
548 [% IF shelfnumber != s.shelfnumber %]
549 param1 += "<option id=\"s[% s.shelfnumber %]\" value=\"addtolist\">[% s.shelfname |html %]<\/option>";
550 [% SET number_of_private_shelves = number_of_private_shelves + 1 %]
551 [% IF number_of_private_shelves == 10 %][% LAST %][% END %]
554 param1 += "<\/optgroup>";
556 [% IF add_to_some_public_shelves.count %]
557 param1 += "<optgroup label=\""+_("Public lists:")+"\">";
558 [% SET number_of_public_shelves = 0 %]
559 [% FOREACH s IN add_to_some_public_shelves %]
560 [% IF shelfnumber != s.shelfnumber %]
561 param1 += "<option id=\"s[% s.shelfnumber %]\" value=\"addtolist\">[% s.shelfname |html %]<\/option>";
562 [% SET number_of_public_shelves = number_of_public_shelves + 1 %]
563 [% IF number_of_public_shelves == 10 %][% LAST %][% END %]
566 param1 += "<\/optgroup>";
568 [% IF add_to_some_private_shelves.count > 10 or add_to_some_public_shelves.count > 10 %]
569 param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
571 param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
573 param1 += "<\/select> <button id=\"cartsubmit\" type=\"submit\" class=\"btn btn-default btn-xs\">"+_("Save")+"</button>";
574 $("span.addto").html(param1);
575 $("#cartsubmit").on("click",function(e){
579 $("#addto").change(function(){
582 $(".addto").find("input:submit").click(function(e){
586 $("#selection_ops").show();
587 $(".merge-items").on("click",function(e){
591 $("#listform").on("submit",function(e){
594 $(".list-remove").on("click",function(e){
595 if($(".selection").filter(":checked").length > 0){
596 return confirm(MSG_REMOVE_FROM_LIST);
598 alert(MSG_NO_ITEM_SELECTED);
605 [% IF shelf AND op == 'edit_form' %]
606 $(document).ready(function(){
612 * This function checks if the adequate number of records are checked for merging
614 function MergeItems() {
615 var checkboxes = $("input:checkbox:checked");
616 if (checkboxes.length < 2) {
617 alert(_("At least two records must be selected for merging."));
620 $(checkboxes).each(function() {
621 params.push('biblionumber=' + $(this).val());
623 var url = '/cgi-bin/koha/cataloguing/merge.pl?' + params.join('&');
630 * This function checks all checkboxes if all are empty,
631 * or unchecks all if any already checked.
634 var checkboxes = document.getElementsByTagName('input');
635 var nbCheckbox = checkboxes.length;
636 var check = areAllChecked();
637 for(var i=0;i<nbCheckbox;i++){
638 if(checkboxes[i].getAttribute('type') == "checkbox" ){
639 checkboxes[i].checked = (check) ? 0 : 1;
644 * This function returns true if ALL checkboxes are checked
646 function areAllChecked(){
647 var checkboxes = document.getElementsByTagName('input');
648 var nbCheckbox = checkboxes.length;
649 for(var i=0;i<nbCheckbox;i++){
650 if(checkboxes[i].getAttribute('type') == "checkbox" ){
651 if(checkboxes[i].checked == 0){
659 function placeHold () {
660 var checkedItems = $(".selection:checked");
661 if ($(checkedItems).size() == 0) {
662 alert(MSG_NO_ITEM_SELECTED);
666 $(checkedItems).each(function() {
667 bibs += $(this).val() + "/";
669 $("#hold_form_biblios").val(bibs);
670 $("#hold_form").submit();
675 var checkboxes = $("#searchresults").find(":checkbox");
676 var vshelf = vShelfAdd(checkboxes);
677 if($("#addto").find("option:selected").attr("value") == "addtolist"){
678 var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
680 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vshelf,'popup',500,500);
683 } else if($("#addto").find("option:selected").attr("value") == "newlist"){
685 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vshelf,'popup',500,500);
688 } else if($("#addto").find("option:selected").attr("value") == "morelists"){
690 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?' + vshelf,'popup',500,500);
694 if($("#addto").find("option:selected").attr("value") == "addtocart"){
695 addMultiple(checkboxes);
700 function AdjustRemark() {
701 var category = $("#category").val();
702 var perms = $("#allow_changes_from").val();
705 $("#anyone_remark").hide();
706 } else if( category==1 ) {
707 // If we move to Private (without shares), show Anyone remark
708 // Note: the number of shares is not tested real-time
709 [% IF !shelf.is_shared %]
710 $("#anyone_remark").show();
712 $("#anyone_remark").hide();
714 } else { // category==2
715 $("#anyone_remark").hide();
718 [% IF op == 'view' %]
721 open(CGIBIN+'virtualshelves/sendshelf.pl?shelfid=[% shelf.shelfnumber %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100');
724 $(document).ready(function() {
725 $("#sendlist").click(function(){
729 $("#deleteshelf").click(function(e){
730 if(confirm(_("Are you sure you want to delete this list?"))){
742 [% INCLUDE 'intranet-bottom.inc' %]