1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › [% IF ( viewshelf ) %]Lists › Contents of [% shelfname | html %][% ELSE %]Lists[% END %][% IF ( shelves ) %] › Create new list[% END %][% IF ( edit ) %] › Edit list [% shelfname | html %][% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'datatables.inc' %]
6 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
9 <script type="text/javascript">
10 $( document ).ready(function() {
12 setTimeout('window.close()', 1);
17 [% IF ( viewshelf ) %]
18 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
19 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
21 <script type="text/javascript">
24 var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
25 var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
26 var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to remove this list?");
29 $(document).ready(function(){
31 var dtListResults = $("#listresultst").dataTable($.extend(true, {}, dataTablesDefaults, {
33 'sAjaxSource': "/cgi-bin/koha/svc/virtualshelves/search",
34 'fnServerData': function(sSource, aoData, fnCallback) {
40 'value': $("#searchshelfname_filter").val(),
43 'value': $("#searchowner_filter").val(),
46 'value': $("#searchsortby_filter").val(),
48 'name': 'template_path',
49 'value': 'virtualshelves/tables/shelves_results.tt',
56 'success': function(json){
62 { 'mDataProp': 'dt_type' },
63 { 'mDataProp': 'dt_shelfname' },
64 { 'mDataProp': 'dt_count' },
65 { 'mDataProp': 'dt_owner' },
66 { 'mDataProp': 'dt_sortby' },
67 { 'mDataProp': 'dt_created_on' },
68 { 'mDataProp': 'dt_modification_time' },
69 { 'mDataProp': 'dt_action', 'bSortable': false }
72 { "bVisible": false, "aTargets": [ 'NoVisible' ] }
75 'sPaginationType': 'full_numbers',
81 dtListResults.fnAddFilters("filter", 750);
83 var tabs = $("#tabs").tabs({
84 activate: function(e, ui) {
85 var active = tabs.tabs("option", "active" );
88 dtListResults.fnDraw();
89 } else if ( active == 1 ) {
91 dtListResults.fnDraw();
98 [% IF ( viewshelf ) %]
99 $(document).ready(function(){
100 [% IF ( itemsloop ) %]$('#searchheader').fixFloat();[% END %]
101 $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\">"+_("Clear all")+"<\/a>");
102 $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/shelves.pl\">"+_("Select all")+"<\/a>");
103 $("#CheckAll").click(function(){
104 $(".checkboxed").checkCheckboxes();
107 $("#CheckNone").click(function(){
108 $(".checkboxed").unCheckCheckboxes();
111 $(".placehold").on("click",function(e){
115 $(".addtocart").show();
116 var param1 = "| <label for=\"addto\">"+_("Add to:")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>";
117 [% IF ( intranetbookbag ) %]
118 param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
120 [% IF ( virtualshelves ) %]
121 [% IF ( addbarshelves ) %]
122 param1 += "<optgroup label=\""+_("Your lists:")+"\">";
123 [% FOREACH addbarshelvesloo IN addbarshelvesloop %]
124 [% IF ( shelfnumber != addbarshelvesloo.shelfnumber ) %]
125 param1 += "<option id=\"s[% addbarshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addbarshelvesloo.shelfname |html %]<\/option>";
128 param1 += "<\/optgroup>";
130 [% IF ( addpubshelves ) %]
131 param1 += "<optgroup label=\""+_("Public lists:")+"\">";
132 [% FOREACH addpubshelvesloo IN addpubshelvesloop %]
133 [% IF ( shelfnumber != addpubshelvesloo.shelfnumber ) %]
134 param1 += "<option id=\"s[% addpubshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addpubshelvesloo.shelfname |html %]<\/option>";
137 param1 += "<\/optgroup>";
139 [% IF ( ( addbarshelvesloop && addbarshelvesloop.size > 9 ) || (addpubshelvesloop && addpubshelvesloop.size > 9 )) %]
140 param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
142 param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
144 param1 += "<\/select> <button id=\"cartsubmit\" type=\"submit\" class=\"btn btn-mini\">"+_("Save")+"</button>";
145 $("span.addto").html(param1);
146 $("#cartsubmit").on("click",function(e){
150 $("#addto").change(function(){
153 $(".addto").find("input:submit").click(function(e){
157 $("#selection_ops").show();
158 $(".merge-items").on("click",function(e){
162 $("#listform").on("submit",function(e){
165 $(".list-remove").on("click",function(e){
166 if($(".selection").filter(":checked").length > 0){
167 return confirm(MSG_REMOVE_FROM_LIST);
169 alert(MSG_NO_ITEM_SELECTED);
176 function confirmDelete(message){
177 if (window.confirm(message)) {
178 location.href="/cgi-bin/koha/virtualshelves/shelves.pl?[% IF ( showprivateshelves ) %]display=privateshelves&[% END %]shelves=1&DEL-[% shelfnumber %]=1&shelfoff=[% shelfoff %]";
185 * This function checks if the adequate number of records are checked for merging
187 function MergeItems() {
188 var checkboxes = $("input:checkbox:checked");
189 var nbCheckbox = checkboxes.length;
190 if (nbCheckbox != 2) {
191 alert(_("Two records must be selected for merging."));
193 location.href='/cgi-bin/koha/cataloguing/merge.pl?biblionumber=' + checkboxes[0].value + '&biblionumber=' + checkboxes[1].value;
199 * This function checks all checkboxes if all are empty,
200 * or unchecks all if any already checked.
203 var checkboxes = document.getElementsByTagName('input');
204 var nbCheckbox = checkboxes.length;
205 var check = areAllChecked();
206 for(var i=0;i<nbCheckbox;i++){
207 if(checkboxes[i].getAttribute('type') == "checkbox" ){
208 checkboxes[i].checked = (check) ? 0 : 1;
213 * This function returns true if ALL checkboxes are checked
215 function areAllChecked(){
216 var checkboxes = document.getElementsByTagName('input');
217 var nbCheckbox = checkboxes.length;
218 for(var i=0;i<nbCheckbox;i++){
219 if(checkboxes[i].getAttribute('type') == "checkbox" ){
220 if(checkboxes[i].checked == 0){
228 function placeHold () {
229 var checkedItems = $(".selection:checked");
230 if ($(checkedItems).size() == 0) {
231 alert(MSG_NO_ITEM_SELECTED);
235 $(checkedItems).each(function() {
236 bibs += $(this).val() + "/";
238 $("#hold_form_biblios").val(bibs);
239 $("#hold_form").submit();
244 var checkboxes = $("#searchresults").find(":checkbox");
245 var vshelf = vShelfAdd(checkboxes);
246 if($("#addto").find("option:selected").attr("value") == "addtolist"){
247 var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
249 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vshelf,'popup',500,500);
252 } else if($("#addto").find("option:selected").attr("value") == "newlist"){
254 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vshelf,'popup',500,500);
257 } else if($("#addto").find("option:selected").attr("value") == "morelists"){
259 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?' + vshelf,'popup',500,500);
263 if($("#addto").find("option:selected").attr("value") == "addtocart"){
264 addMultiple(checkboxes);
271 <body id="lists_shelves" class="lists">
272 [% INCLUDE 'header.inc' %]
273 [% INCLUDE 'cat-search.inc' %]
275 [% BLOCK list_permissions %]
277 <label for="permissions">Permissions: </label>
278 <select name="allow_add" id="allow_add">
279 [% IF allow_add %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
280 [% IF allow_add %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
282 <span>anyone else to add entries.</span>
285 <label> </label>
286 <select name="allow_delete_own" id="allow_delete_own">
287 [% IF allow_delete_own %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
288 [% IF allow_delete_own %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
290 <span>anyone to remove his own contributed entries.</span>
293 <label> </label>
294 <select name="allow_delete_other" id="allow_delete_other">
295 [% IF allow_delete_other %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
296 [% IF allow_delete_other %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
298 <span>anyone to remove other contributed entries.</span>
301 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a> [% IF ( category1 ) %] › [% IF ( viewshelf || edit ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a> [% ELSE %] Your lists [% END %] [% ELSIF ( category2 ) %] › [% IF ( viewshelf ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a> [% ELSE %] Public lists [% END %] [% ELSIF ( showprivateshelves ) %] › [% IF ( viewshelf || edit ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a> [% ELSE %] Your lists [% END %] [% ELSIF ( showpublicshelves ) %] › [% IF ( viewshelf || edit ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a> [% ELSE %] Public lists [% END %] [% END %]
303 [% IF ( viewshelf ) %]› Contents of <i>[% shelfname | html %]</i>[% END %][% IF ( shelves ) %] › Create new list[% END %][% IF ( edit ) %] › Edit list <i>[% shelfname | html %]</i>[% END %]</div>
305 <div id="doc3" class="yui-t2">
310 <div class="yui-g">[% INCLUDE 'virtualshelves-toolbar.inc' %]
313 [% FOR m IN messages %]
314 <div class="dialog [% m.type %]">
316 [% CASE 'error_on_update' %]
317 An error occurred when updating this list. Perhaps the value already exists.
318 [% CASE 'error_on_insert' %]
319 An error occurred when inserting this list. Perhaps the name already exists.
320 [% CASE 'error_on_delete' %]
321 An error occurred when deleteing this list. Check the logs.
322 [% CASE 'success_on_update' %]
323 List updated with success.
324 [% CASE 'success_on_insert' %]
325 List inserted with success.
326 [% CASE 'success_on_delete' %]
327 List deleted with success.
328 [% CASE 'Koha::Exception::DuplicateObject' %]
329 An error occurred when inserting this list. The name already [% shelfname %] exists.
336 [% IF ( paramsloop ) %]
337 [% FOREACH paramsloo IN paramsloop %]
339 <div class="yui-u first">
340 [% IF ( paramsloo.status ) %]<div class="dialog alert">[% paramsloo.string %]</div>[% END %]
341 [% IF ( paramsloo.nobarcode ) %]<div class="dialog alert">ERROR: No barcode given.</div>[% END %]
342 [% IF ( paramsloo.noshelfnumber ) %]<div class="dialog alert">ERROR: No list number given.</div>[% END %]
343 [% IF ( paramsloo.need_confirm ) %]
344 <div class="dialog alert">The list <i>[% paramsloo.need_confirm %]</i> is not empty.
345 [% IF ( paramsloo.single ) %]
346 <br />It has <b>[% paramsloo.count %]</b> entry.
348 <br />It has <b>[% paramsloo.count %]</b> entries.
350 <br />Use the "Confirm" button below to confirm deletion.
353 [% IF ( paramsloo.nopermission ) %]
354 <div class="dialog alert">ERROR: You do not have adequate permission for that action on list [% paramsloo.nopermission %].</div>
356 [% IF ( paramsloo.failgetitem ) %]
357 <div class="dialog alert">ERROR: No item found with barcode [% paramsloo.failgetitem %].</div>
359 [% IF ( paramsloo.duplicatebiblio ) %]
360 <div class="dialog alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div>
362 [% IF ( paramsloo.nothingdeleted) %]
363 <div class="dialog message">Warning: You could not delete any of the selected items from this list.</div>
365 [% IF ( paramsloo.somedeleted) %]
366 <div class="dialog message">Warning: You could not delete all selected items from this list.</div>
368 [% IF ( paramsloo.modifyfailure) %]
369 <div class="dialog message">ERROR: List could not be modified.</div>
376 [% IF ( viewshelf ) %]
378 [% IF ( itemsloop ) %]
380 <h3>Contents of <i>[% shelfname | html %]</i></h3>
381 <div class="pages">[% pagination_bar %]</div>
382 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" id="listform" method="post" class="checkboxed">
383 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
384 <input type="hidden" name="modifyshelfcontents" value="1" />
386 [% IF direction == 'asc' %]
387 [% SET new_direction = 'desc' %]
389 [% SET direction = 'desc' %]
390 [% SET new_direction = 'asc' %]
393 <div id="searchheader" class="noprint">
394 [% IF ( itemsloop ) %]
395 <div id="selection_ops"><span class="checkall"></span> |
396 <span class="clearall"></span>
398 <span class="addto">| </span>
400 [% IF ( CAN_user_reserveforothers && DisplayMultiPlaceHold ) %]
401 <div class="btn-group"><button class="btn btn-mini placehold"><i class="fa fa-sticky-note-o"></i> Place hold</button></div>
403 [% IF ( allowremovingitems ) %]
404 <div class="btn-group"><button type="submit" class="btn btn-mini list-remove"><i class="fa fa-times-circle"></i> Remove selected</button></div>
406 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<div class="btn-group"><button type="submit" class="btn btn-mini merge-items"><i class="fa fa-compress"></i> Merge selected</button></div>[% END %]
411 <table id="searchresults">
413 [% IF ( itemsloop ) %]<th class="checkall"> </th>[% END %]
415 [% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %]
417 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=title&direction=[% IF sort != 'title' %]asc[% ELSE %][% new_direction %][% END %]">Title</a>
418 [% IF sort == 'title' %]
419 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
421 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
425 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=author&direction=[% IF sort != 'author' %]asc[% ELSE %][% new_direction %][% END %]">Author</a>
426 [% IF sort == 'author' %]
427 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
429 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
434 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=itemcallnumber&direction=[% IF sort != 'itemcallnumber' %]asc[% ELSE %][% new_direction %][% END %]">Call number</a>
435 [% IF sort == 'itemcallnumber' %]
436 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
438 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
442 [% FOREACH itemsloo IN itemsloop %]
443 [% UNLESS ( loop.odd ) %]
444 <tr class="highlight">
448 [% IF ( itemsloop ) %]
450 [% IF ( itemsloo.confirm ) %]
451 <input type="hidden" name="CONFIRM-[% itemsloo.confirm %]" />
452 <input type="checkbox" class="selection" value="[% itemsloo.biblionumber %]" name="REM-[% itemsloo.biblionumber %]" checked />
454 <input type="checkbox" class="selection" value="[% itemsloo.biblionumber %]" name="REM-[% itemsloo.biblionumber %]" />
458 [% UNLESS ( item_level_itypes ) %]<td>
459 [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />[% END %][% itemsloo.description %]
462 [% IF ( itemsloo.XSLTBloc ) %]
463 [% itemsloo.XSLTBloc %]
465 [% INCLUDE 'biblio-default-view.inc' biblionumber = itemsloo.biblionumber %]
466 [% itemsloo.title |html %][% FOREACH subtitl IN itemsloo.subtitle %] [% subtitl.subfield %][% END %]</a>
469 [% IF ( itemsloo.notforloan ) %]
470 <span class="noholdstext">No holds allowed</span>
472 [% IF ( itemsloo.ITEM_RESULTS.size ) %]
473 <a id="reserve_[% itemsloo.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]">Holds</a>
474 [% 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 %]
476 <span class="noholdstext">No holds allowed</span>
479 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
480 | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber %]">Edit record</a>
482 [% IF ( CAN_user_editcatalogue_edit_items ) %]
483 | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber %]">Edit items</a>
487 <td>[% itemsloo.author %]</td>
488 <td>[% itemsloo.dateadded %]</td>
491 [% FOREACH result IN itemsloo.ITEM_RESULTS %]
492 <li>[% result.holdingbranch %] [% IF ( result.location_intranet ) %] ([% result.location_intranet %]) [% END %]
493 [% IF ( result.itemcallnumber ) %]
494 [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% result.itemcallnumber |uri %]%22">[% result.itemcallnumber %]</a>]
501 [% END %]<!-- /itemsloop -->
503 <div class="pages">[% pagination_bar %]</div>
508 [% END %]<!-- /viewshelf -->
511 [% IF ( edit ) %]<div>Edit is on ([% shelfname | html %])</div>[% END %]
512 [% IF ( seflag ) %]<div>seflag is on ([% seflag %])</div>[% END %]
517 <div class="yui-u first">
518 <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl" class="validated">
519 <fieldset class="rows">
522 <legend>Create a new list</legend>
523 <input type="hidden" name="shelves" value="1" />
525 <li><label class="required" for="addshelf">List name:</label><input id="addshelf" type="text" name="addshelf" size="25" required="required" class="required" />
526 <span class="required">Required</span>
528 <li><span class="label">Owner: </span><input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />[% loggedinusername %]</li>
529 <li><label for="sortfield" >Sort this list by: </label>
530 <select name="sortfield" id="sortfield">
531 <option value="title">Title</option>
532 <option value="author">Author</option>
533 <option value="copyrightdate">Copyrightdate</option>
534 <option value="itemcallnumber">Call number</option>
536 <li><label for="category">Category: </label>
537 <select name="category" id="category">
538 <option value="1">Private</option>
539 <option value="2">Public</option>
541 [% INCLUDE list_permissions %]
546 <legend>Edit list <i>[% shelfname | html %]</i></legend>
547 <input type="hidden" name="display" value="[% display %]" />
548 <input type="hidden" name="op" value="modifsave" />
549 [% IF ( showprivateshelves ) %]<input type="hidden" name="display" value="privateshelves" />[% END %]
550 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
552 <li><label for="shelfname" class="required">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="[% shelfname |html %]" required="required" class="required" />
553 <span class="required">Required</span>
555 <li><label for="owner">Owner: </label><input type="hidden" id="owner" name="owner" value="[% IF ( owner ) %][% ownername %][% ELSE %][% loggedinusername %][% END %]" />[% IF ( owner ) %][% ownername %][% ELSE %][% loggedinusername %][% END %]</li>
556 <li><label for="sortfield" >Sort this list by: </label>
557 <select name="sortfield">
558 [% IF ( sortfield == "title" ) %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %]
559 [% IF ( sortfield == "author" ) %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %]
560 [% IF ( sortfield == "copyrightdate" ) %]<option value="copyrightdate" selected="selected">Copyrightdate</option>[% ELSE %]<option value="copyrightdate">Copyrightdate</option>[% END %]
561 [% IF ( sortfield == "itemcallnumber" ) %]<option value="itemcallnumber" selected="selected">Call number</option>[% ELSE %]<option value="itemcallnumber">Call number</option>[% END %]
563 <li><label for="category">Category: </label>
564 <select id="category" name="category">
565 [% IF ( category1 ) %]
566 <option value="1" selected="selected">Private</option>
568 <option value="1">Private</option>
570 [% IF ( category2 ) %]
571 <option value="2" selected="selected">Public</option>
573 <option value="2">Public</option>
576 [% INCLUDE list_permissions %]
582 <fieldset class="action"><input type="submit" value="Save" class="submit" />
583 [% IF ( showprivateshelves ) %]
584 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves" class="cancel">Cancel</a>
586 [% IF ( display == "viewshelf" ) %]
587 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]" class="cancel">Cancel</a>
589 <a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a>
596 <div class="help"><ul>
597 <li><b>Private list:</b> Is managed by you and can be seen only by you.</li>
598 <li><b>Public list:</b> Can be seen by everybody, but managed only by you.</li>
599 <li>The owner of a list is always allowed to add entries, but needs permission to remove.</li>
604 [% END %]<!-- /seflag -->
606 [% IF op == 'list' %]
608 <div id="tabs" class="toptabs">
610 <li id="privateshelves_tab" class="active"><a href="#tab_content">Your lists</a></li>
611 <li id="publicshelves_tab" class="active"><a href="#tab_content">Public lists</a></li>
614 <div id="tab_content">
615 <table id="listresultst">
618 <th class="NoVisible">Type</th>
623 <th>Creation date</th>
624 <th>Modification date</th>
627 <tr class="filters_row">
629 <th><input class="filter text_filter" id="searchshelfname_filter" placeholder="List name"></th>
631 <th><input class="filter text_filter" id="searchowner_filter" placeholder="Owner"></th>
633 <select class="filter text_filter" id="searchsortby_filter">
634 <option value=""></option>
635 <option value="title">Title</option>
636 <option value="author">Author</option>
637 <option value="copyrightdate">Copyrightdate</option>
638 <option value="itemcallnumber">Call number</option>
652 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
653 <!-- Value will be set here by placeHold() -->
654 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
655 <input type="hidden" name="multi_hold" value="1"/>
661 [% IF ( allowaddingitem ) %]
663 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
664 <fieldset class="brief">
665 <legend>Add an item</legend>
668 <label for="addbarcode">Barcode:</label>
669 <input name="addbarcode" type="text" id="addbarcode" class="focus" />
670 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
671 <input type="hidden" name="modifyshelfcontents" value="1" />
674 <fieldset class="action">
675 <input type="submit" value="Add" />
680 [% END %]<!-- /allowaddingitem -->
683 [% INCLUDE 'intranet-bottom.inc' %]