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' %]
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
8 <script type="text/javascript">
11 var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
12 var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these records from the shelf?");
13 var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to remove this list?");
14 [% IF ( viewshelf ) %]
15 $(document).ready(function(){
16 [% IF ( itemsloop ) %]$('#searchheader').fixFloat();[% END %]
17 $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\">"+_("Clear all")+"<\/a>");
18 $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/shelves.pl\">"+_("Select all")+"<\/a>");
19 $("#CheckAll").click(function(){
20 $(".checkboxed").checkCheckboxes();
23 $("#CheckNone").click(function(){
24 $(".checkboxed").unCheckCheckboxes();
27 $(".placehold").on("click",function(e){
31 $(".addtocart").show();
32 var param1 = "| <label for=\"addto\">"+_("Add to:")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>";
33 [% IF ( intranetbookbag ) %]
34 param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
36 [% IF ( virtualshelves ) %]
37 [% IF ( addbarshelves ) %]
38 param1 += "<optgroup label=\""+_("Your lists:")+"\">";
39 [% FOREACH addbarshelvesloo IN addbarshelvesloop %]
40 [% IF ( shelfnumber != addbarshelvesloo.shelfnumber ) %]
41 param1 += "<option id=\"s[% addbarshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addbarshelvesloo.shelfname |html %]<\/option>";
44 param1 += "<\/optgroup>";
46 [% IF ( addpubshelves ) %]
47 param1 += "<optgroup label=\""+_("Public lists:")+"\">";
48 [% FOREACH addpubshelvesloo IN addpubshelvesloop %]
49 [% IF ( shelfnumber != addpubshelvesloo.shelfnumber ) %]
50 param1 += "<option id=\"s[% addpubshelvesloo.shelfnumber %]\" value=\"addtolist\">[% addpubshelvesloo.shelfname |html %]<\/option>";
53 param1 += "<\/optgroup>";
55 [% IF ( ( addbarshelvesloop && addbarshelvesloop.size > 9 ) || (addpubshelvesloop && addpubshelvesloop.size > 9 )) %]
56 param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
58 param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
60 param1 += "<\/select> <button id=\"cartsubmit\" type=\"submit\" class=\"btn btn-mini\">"+_("Save")+"</button>";
61 $("span.addto").html(param1);
62 $("#cartsubmit").on("click",function(e){
66 $("#addto").change(function(){
69 $(".addto").find("input:submit").click(function(e){
73 $("#selection_ops").show();
74 $(".merge-items").on("click",function(e){
78 $("#listform").on("submit",function(e){
81 $(".list-remove").on("click",function(e){
82 if($(".selection").filter(":checked").length > 0){
83 return confirm(MSG_REMOVE_FROM_LIST);
85 alert(MSG_NO_ITEM_SELECTED);
92 function confirmDelete(message){
93 if (window.confirm(message)) {
94 location.href="/cgi-bin/koha/virtualshelves/shelves.pl?[% IF ( showprivateshelves ) %]display=privateshelves&[% END %]shelves=1&DEL-[% shelfnumber %]=1&shelfoff=[% shelfoff %]";
101 * This function checks if the adequate number of records are checked for merging
103 function MergeItems() {
104 var checkboxes = $("input:checkbox:checked");
105 var nbCheckbox = checkboxes.length;
106 if (nbCheckbox != 2) {
107 alert(_("Two records must be selected for merging."));
109 location.href='/cgi-bin/koha/cataloguing/merge.pl?biblionumber=' + checkboxes[0].value + '&biblionumber=' + checkboxes[1].value;
115 * This function checks all checkboxes if all are empty,
116 * or unchecks all if any already checked.
119 var checkboxes = document.getElementsByTagName('input');
120 var nbCheckbox = checkboxes.length;
121 var check = areAllChecked();
122 for(var i=0;i<nbCheckbox;i++){
123 if(checkboxes[i].getAttribute('type') == "checkbox" ){
124 checkboxes[i].checked = (check) ? 0 : 1;
129 * This function returns true if ALL checkboxes are checked
131 function areAllChecked(){
132 var checkboxes = document.getElementsByTagName('input');
133 var nbCheckbox = checkboxes.length;
134 for(var i=0;i<nbCheckbox;i++){
135 if(checkboxes[i].getAttribute('type') == "checkbox" ){
136 if(checkboxes[i].checked == 0){
144 function placeHold () {
145 var checkedItems = $(".selection:checked");
146 if ($(checkedItems).size() == 0) {
147 alert(MSG_NO_ITEM_SELECTED);
151 $(checkedItems).each(function() {
152 bibs += $(this).val() + "/";
154 $("#hold_form_biblios").val(bibs);
155 $("#hold_form").submit();
159 * This function checks to make sure a list title is assigned
165 if($("#shelfname").val() == ""){
166 _alertString += "- "+_("You must enter a List Name") + "\n";
169 if (_alertString.length==0) {
172 alertString2 = _("Form not submitted because of the following problem(s)");
173 alertString2 += "\n------------------------------------------------------------------------------------\n\n";
174 alertString2 += _alertString;
179 var checkboxes = $("#searchresults").find(":checkbox");
180 var vshelf = vShelfAdd(checkboxes);
181 if($("#addto").find("option:selected").attr("value") == "addtolist"){
182 var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
184 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vshelf,'popup',500,500);
187 } else if($("#addto").find("option:selected").attr("value") == "newlist"){
189 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vshelf,'popup',500,500);
192 } else if($("#addto").find("option:selected").attr("value") == "morelists"){
194 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?' + vshelf,'popup',500,500);
198 if($("#addto").find("option:selected").attr("value") == "addtocart"){
199 addMultiple(checkboxes);
206 <body id="lists_shelves" class="lists">
207 [% INCLUDE 'header.inc' %]
208 [% INCLUDE 'cat-search.inc' %]
210 [% BLOCK list_permissions %]
212 <label for="permissions">Permissions: </label>
213 <select name="allow_add" id="allow_add">
214 [% IF allow_add %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
215 [% IF allow_add %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
217 <span>anyone else to add entries.</span>
220 <label> </label>
221 <select name="allow_delete_own" id="allow_delete_own">
222 [% IF allow_delete_own %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
223 [% IF allow_delete_own %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
225 <span>anyone to remove his own contributed entries.</span>
228 <label> </label>
229 <select name="allow_delete_other" id="allow_delete_other">
230 [% IF allow_delete_other %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
231 [% IF allow_delete_other %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
233 <span>anyone to remove other contributed entries.</span>
236 <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 %]
238 [% 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>
240 <div id="doc2" class="yui-t7">
243 <div class="yui-g">[% INCLUDE 'virtualshelves-toolbar.inc' %]
245 [% IF ( paramsloop ) %]
246 [% FOREACH paramsloo IN paramsloop %]
248 <div class="yui-u first">
249 [% IF ( paramsloo.already ) %]<div class="dialog alert">A List named [% paramsloo.already %] already exists!</div>[% END %]
250 [% IF ( paramsloo.status ) %]<div class="dialog alert">[% paramsloo.string %]</div>[% END %]
251 [% IF ( paramsloo.nobarcode ) %]<div class="dialog alert">ERROR: No barcode given.</div>[% END %]
252 [% IF ( paramsloo.noshelfnumber ) %]<div class="dialog alert">ERROR: No shelfnumber given.</div>[% END %]
253 [% IF ( paramsloo.need_confirm ) %]
254 <div class="dialog alert">The list <i>[% paramsloo.need_confirm %]</i> is not empty.
255 <br />It has <b>[% paramsloo.count %]</b> entries.
256 <br />Use the "Confirm" button below to confirm deletion.
259 [% IF ( paramsloo.nopermission ) %]
260 <div class="dialog alert">ERROR: You do not have adequate permission for that action on list [% paramsloo.nopermission %].</div>
262 [% IF ( paramsloo.failgetitem ) %]
263 <div class="dialog alert">ERROR: No item found with barcode [% paramsloo.failgetitem %].</div>
265 [% IF ( paramsloo.duplicatebiblio ) %]
266 <div class="dialog alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div>
268 [% IF ( paramsloo.nothingdeleted) %]
269 <div class="dialog message">Warning: You could not delete any selected items from this shelf.</div>
271 [% IF ( paramsloo.somedeleted) %]
272 <div class="dialog message">Warning: You could not delete all selected items from this shelf.</div>
274 [% IF ( paramsloo.modifyfailure) %]
275 <div class="dialog message">ERROR: List could not be modified.</div>
282 [% IF ( viewshelf ) %]
284 [% IF ( itemsloop ) %]
286 <h3>Contents of <i>[% shelfname | html %]</i></h3>
287 <div class="pages">[% pagination_bar %]</div>
288 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" id="listform" method="post" class="checkboxed">
289 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
290 <input type="hidden" name="modifyshelfcontents" value="1" />
292 [% IF direction == 'asc' %]
293 [% SET new_direction = 'desc' %]
295 [% SET direction = 'desc' %]
296 [% SET new_direction = 'asc' %]
299 <div id="searchheader">
300 [% IF ( itemsloop ) %]
301 <div id="selection_ops"><span class="checkall"></span> |
302 <span class="clearall"></span>
304 <span class="addto">| </span>
306 [% IF ( CAN_user_reserveforothers && DisplayMultiPlaceHold ) %]
307 <div class="btn-group"><button class="btn btn-mini placehold"><i class="icon-hold"></i> Place hold</button></div>
309 [% IF ( allowremovingitems ) %]
310 <div class="btn-group"><button type="submit" class="btn btn-mini list-remove"><i class="icon-remove-sign"></i> Remove selected</button></div>
312 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<div class="btn-group"><button type="submit" class="btn btn-mini merge-items"><i class="icon-merge"></i> Merge selected</button></div>[% END %]
317 <table id="searchresults">
319 [% IF ( itemsloop ) %]<th class="checkall"> </th>[% END %]
321 [% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %]
323 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=title&direction=[% IF sort != 'title' %]asc[% ELSE %][% new_direction %][% END %]">Title</a>
324 [% IF sort == 'title' %]
325 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
327 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
331 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=author&direction=[% IF sort != 'author' %]asc[% ELSE %][% new_direction %][% END %]">Author</a>
332 [% IF sort == 'author' %]
333 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
335 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
340 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=itemcallnumber&direction=[% IF sort != 'itemcallnumber' %]asc[% ELSE %][% new_direction %][% END %]">Call number</a>
341 [% IF sort == 'itemcallnumber' %]
342 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
344 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
348 [% FOREACH itemsloo IN itemsloop %]
349 [% UNLESS ( loop.odd ) %]
350 <tr class="highlight">
354 [% IF ( itemsloop ) %]
356 [% IF ( itemsloo.confirm ) %]
357 <input type="hidden" name="CONFIRM-[% itemsloo.confirm %]" />
358 <input type="checkbox" class="selection" value="[% itemsloo.biblionumber %]" name="REM-[% itemsloo.biblionumber %]" checked />
360 <input type="checkbox" class="selection" value="[% itemsloo.biblionumber %]" name="REM-[% itemsloo.biblionumber %]" />
364 [% UNLESS ( item_level_itypes ) %]<td>
365 [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />[% END %][% itemsloo.description %]
368 [% IF ( itemsloo.XSLTBloc ) %]
369 [% itemsloo.XSLTBloc %]
371 [% INCLUDE 'biblio-default-view.inc' biblionumber = itemsloo.biblionumber %]
372 [% itemsloo.title |html %][% FOREACH subtitl IN itemsloo.subtitle %] [% subtitl.subfield %][% END %]</a>
375 [% IF ( itemsloo.notforloan ) %]
376 <span class="noholdstext">No holds allowed</span>
378 [% IF ( itemsloo.ITEM_RESULTS.size ) %]
379 <a id="reserve_[% itemsloo.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]">Holds</a>
380 [% 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 %]
382 <span class="noholdstext">No holds allowed</span>
385 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
386 | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber %]">Edit record</a>
388 [% IF ( CAN_user_editcatalogue_edit_items ) %]
389 | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber %]">Edit items</a>
393 <td>[% itemsloo.author %]</td>
394 <td>[% itemsloo.dateadded %]</td>
397 [% FOREACH result IN itemsloo.ITEM_RESULTS %]
398 <li>[% result.holdingbranch %] [% IF ( result.location_intranet ) %] ([% result.location_intranet %]) [% END %]
399 [% IF ( result.itemcallnumber ) %]
400 [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=[% result.itemcallnumber |url %]">[% result.itemcallnumber %]</a>]
407 [% END %]<!-- /itemsloop -->
409 <div class="pages">[% pagination_bar %]</div>
414 [% END %]<!-- /viewshelf -->
416 [% IF ( allowaddingitem ) %]
418 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
419 <fieldset class="brief">
420 <legend>Add an item to <i>[% shelfname | html %]</i></legend>
423 <label for="addbarcode">Barcode:</label>
424 <input name="addbarcode" type="text" id="addbarcode" size="14" />
425 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
426 <input type="hidden" name="modifyshelfcontents" value="1" />
427 <input type="submit" value="Add" />
433 [% END %]<!-- /allowaddingitem -->
436 [% IF ( edit ) %]<div>Edit is on ([% shelfname | html %])</div>[% END %]
437 [% IF ( seflag ) %]<div>seflag is on ([% seflag %])</div>[% END %]
442 <div class="yui-u first">
443 <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl">
444 <fieldset class="rows">
447 <input type="hidden" name="shelves" value="1" />
448 <legend>Create a new list</legend>
450 <li><label class="required" for="addshelf">List name:</label><input id="addshelf" type="text" name="addshelf" size="25" /></li>
451 <li><span class="label">Owner: </span><input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />[% loggedinusername %]</li>
452 <li><label for="sortfield" >Sort this list by: </label>
453 <select name="sortfield" id="sortfield">
454 <option value="title">Title</option>
455 <option value="author">Author</option>
456 <option value="copyrightdate">Copyrightdate</option>
457 <option value="itemcallnumber">Call number</option>
459 <li><label for="category">Category: </label>
460 <select name="category" id="category">
461 <option value="1">Private</option>
462 <option value="2">Public</option>
464 [% INCLUDE list_permissions %]
469 <input type="hidden" name="op" value="modifsave" />
470 <input type="hidden" name="display" value="[% display %]" />
471 [% IF ( showprivateshelves ) %]<input type="hidden" name="display" value="privateshelves" />[% END %]
472 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
473 <legend>Edit list <i>[% shelfname | html %]</i></legend>
475 <li><label for="shelfname">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="[% shelfname |html %]" /></li>
476 <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>
477 <li><label for="sortfield" >Sort this list by: </label>
478 <select name="sortfield">
479 [% IF ( sortfield == "title" ) %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %]
480 [% IF ( sortfield == "author" ) %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %]
481 [% IF ( sortfield == "copyrightdate" ) %]<option value="copyrightdate" selected="selected">Copyrightdate</option>[% ELSE %]<option value="copyrightdate">Copyrightdate</option>[% END %]
482 [% IF ( sortfield == "itemcallnumber" ) %]<option value="itemcallnumber" selected="selected">Call number</option>[% ELSE %]<option value="itemcallnumber">Call number</option>[% END %]
484 <li><label for="category">Category: </label>
485 <select id="category" name="category">
486 [% IF ( category1 ) %]
487 <option value="1" selected="selected">Private</option>
489 <option value="1">Private</option>
491 [% IF ( category2 ) %]
492 <option value="2" selected="selected">Public</option>
494 <option value="2">Public</option>
497 [% INCLUDE list_permissions %]
502 <fieldset class="action"><input type="submit" onclick="Check(this.form); return false;" value="Save" class="submit" />
503 [% IF ( showprivateshelves ) %]
504 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves" class="cancel">Cancel</a>
506 [% IF ( display == "viewshelf" ) %]
507 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]" class="cancel">Cancel</a>
509 <a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a>
516 <div class="help"><ul>
517 <li>A <b>Private</b> list is managed by you and can be seen only by you.</li>
518 <li> A <b>Public</b> list can be seen by everybody, but managed only by you.</li>
520 <li>The owner of a list is always allowed to add entries, but needs permission to remove.</li>
525 [% END %]<!-- /seflag -->
527 [% UNLESS ( vseflag ) %]
529 <div class="statictabs">
531 [% IF ( showprivateshelves ) %]
532 <li id="privateshelves_tab" class="active"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a></li>
534 <li id="privateshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a></li>
536 [% IF ( showpublicshelves ) %]
537 <li id="publicshelves_tab" class="active"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a></li>
539 <li id="publicshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a></li>
542 [% IF ( showprivateshelves ) %]
543 <div id="privateshelves" class="tabs-container" style="display:block;">
545 <div id="privateshelves" class="tabs-container" style="display:none;">
547 [% IF ( shelveslooppriv ) %]
548 <div class="pages">[% pagination_bar %]</div>
550 <tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th>Options</th></tr>
551 [% FOREACH shelveslooppri IN shelveslooppriv %]
552 [% IF ( shelveslooppri.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
553 <td><a href="shelves.pl?[% IF ( shelveslooppri.showprivateshelves ) %]display=privateshelves&[% END %]viewshelf=[% shelveslooppri.shelf %]&shelfoff=[% shelfoff %]">[% shelveslooppri.shelfname |html %]</a></td>
554 <td>[% shelveslooppri.count %] item(s)</td>
555 <td>[% IF ( shelveslooppri.sortfield == "author" ) %]Author[% ELSIF ( shelveslooppri.sortfield == "copyrightdate" ) %]Year[% ELSIF (shelveslooppri.sortfield == "itemcallnumber") %]Call number[% ELSE %]Title[% END %]</td>
556 <td>[% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %]
557 [% IF ( shelveslooppri.viewcategory2 ) %]Public[% END %]
560 [% IF ( shelveslooppri.mine ) %]
561 <form action="merge.pl" method="get">
562 <input type="hidden" name="shelf" value="[% shelveslooppri.shelf %]" />
564 <form action="shelves.pl" method="get">
565 <input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf %]" />
566 <input type="hidden" name="op" value="modif" />
567 <input type="hidden" name="display" value="privateshelves" />
568 <input type="submit" class="editshelf" value="Edit" />
570 <form action="shelves.pl" method="post">
571 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
572 <input type="hidden" name="shelves" value="1" />
573 <input type="hidden" name="display" value="privateshelves" />
574 <input type="hidden" name="DEL-[% shelveslooppri.shelf %]" value="1" />
575 [% IF ( shelveslooppri.confirm ) %]
576 <input type="hidden" name="CONFIRM-[% shelveslooppri.confirm %]" value="1" />
577 <input type="submit" class="approve" value="Confirm" />
579 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
590 <p>No private lists.</p>
591 [% END %]<!-- /shelveslooppriv -->
592 </div><!-- /privateshelves -->
594 [% IF ( showpublicshelves ) %]
595 <div id="publicshelves" class="tabs-container" style="display:block;">
597 <div id="publicshelves" class="tabs-container" style="display:none;">
599 [% IF ( shelvesloop ) %]
600 <div class="pages">[% pagination_bar %]</div>
602 <tr><th>List Name</th><th>Created by</th><th>Contents</th><th>Sort By</th><th>Type</th><th>Options</th></tr>
603 [% FOREACH shelvesloo IN shelvesloop %]
604 [% IF ( shelvesloo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
605 <td><a href="shelves.pl?viewshelf=[% shelvesloo.shelf %]">[% shelvesloo.shelfname |html %]</a></td>
606 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% shelvesloo.owner %]">[% shelvesloo.ownername %]</td>
607 <td>[% shelvesloo.count %] item(s)</td>
608 <td>[% IF ( shelvesloo.sortfield == "author" ) %]Author[% ELSIF ( shelvesloo.sortfield == "copyrightdate" ) %]Year[% ELSIF (shelvesloo.sortfield == "itemcallnumber") %]Call number[% ELSE %]Title[% END %]</td>
609 <td>[% IF ( shelvesloo.viewcategory1 ) %]Private[% END %]
610 [% IF ( shelvesloo.viewcategory2 ) %]Public[% END %]
613 [% IF ( shelvesloo.manageshelf ) %]
614 <form action="shelves.pl" method="get">
615 <input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" />
616 <input type="hidden" name="op" value="modif" />
617 <input type="submit" class="editshelf" value="Edit" />
619 <form action="shelves.pl" method="post">
620 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
621 <input type="hidden" name="shelves" value="1" />
622 <input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" />
623 [% IF ( shelvesloo.confirm ) %]
624 <input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" />
625 <input type="submit" class="approve" value="Confirm" />
627 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
638 [% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %]
639 [% END %]<!-- /shelvesloop -->
640 </div><!-- /publicshelves -->
644 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
645 <!-- Value will be set here by placeHold() -->
646 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
647 <input type="hidden" name="multi_hold" value="1"/>
652 [% INCLUDE 'intranet-bottom.inc' %]