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="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
6 <script type="text/javascript" src="[% interface %]/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 items from the list?");
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();
160 var checkboxes = $("#searchresults").find(":checkbox");
161 var vshelf = vShelfAdd(checkboxes);
162 if($("#addto").find("option:selected").attr("value") == "addtolist"){
163 var shelfnumber = $("#addto").find("option:selected").attr("id").replace("s","");
165 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?shelfnumber='+shelfnumber+'&confirm=1&' + vshelf,'popup',500,500);
168 } else if($("#addto").find("option:selected").attr("value") == "newlist"){
170 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?newshelf=1&' + vshelf,'popup',500,500);
173 } else if($("#addto").find("option:selected").attr("value") == "morelists"){
175 openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?' + vshelf,'popup',500,500);
179 if($("#addto").find("option:selected").attr("value") == "addtocart"){
180 addMultiple(checkboxes);
187 <body id="lists_shelves" class="lists">
188 [% INCLUDE 'header.inc' %]
189 [% INCLUDE 'cat-search.inc' %]
191 [% BLOCK list_permissions %]
193 <label for="permissions">Permissions: </label>
194 <select name="allow_add" id="allow_add">
195 [% IF allow_add %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
196 [% IF allow_add %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
198 <span>anyone else to add entries.</span>
201 <label> </label>
202 <select name="allow_delete_own" id="allow_delete_own">
203 [% IF allow_delete_own %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
204 [% IF allow_delete_own %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
206 <span>anyone to remove his own contributed entries.</span>
209 <label> </label>
210 <select name="allow_delete_other" id="allow_delete_other">
211 [% IF allow_delete_other %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
212 [% IF allow_delete_other %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
214 <span>anyone to remove other contributed entries.</span>
217 <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 %]
219 [% 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>
221 <div id="doc2" class="yui-t7">
224 <div class="yui-g">[% INCLUDE 'virtualshelves-toolbar.inc' %]
226 [% IF ( paramsloop ) %]
227 [% FOREACH paramsloo IN paramsloop %]
229 <div class="yui-u first">
230 [% IF ( paramsloo.already ) %]<div class="dialog alert">A List named [% paramsloo.already %] already exists!</div>[% END %]
231 [% IF ( paramsloo.addshelf_failed ) %]<div class="dialog alert">List could not be created. [% IF loggedinuser==0 %](Do not use the database administrator account.)[% END %]</div>[% END %]
232 [% IF ( paramsloo.status ) %]<div class="dialog alert">[% paramsloo.string %]</div>[% END %]
233 [% IF ( paramsloo.nobarcode ) %]<div class="dialog alert">ERROR: No barcode given.</div>[% END %]
234 [% IF ( paramsloo.noshelfnumber ) %]<div class="dialog alert">ERROR: No list number given.</div>[% END %]
235 [% IF ( paramsloo.need_confirm ) %]
236 <div class="dialog alert">The list <i>[% paramsloo.need_confirm %]</i> is not empty.
237 <br />It has <b>[% paramsloo.count %]</b> entries.
238 <br />Use the "Confirm" button below to confirm deletion.
241 [% IF ( paramsloo.nopermission ) %]
242 <div class="dialog alert">ERROR: You do not have adequate permission for that action on list [% paramsloo.nopermission %].</div>
244 [% IF ( paramsloo.failgetitem ) %]
245 <div class="dialog alert">ERROR: No item found with barcode [% paramsloo.failgetitem %].</div>
247 [% IF ( paramsloo.duplicatebiblio ) %]
248 <div class="dialog alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div>
250 [% IF ( paramsloo.nothingdeleted) %]
251 <div class="dialog message">Warning: You could not delete any of the selected items from this list.</div>
253 [% IF ( paramsloo.somedeleted) %]
254 <div class="dialog message">Warning: You could not delete all selected items from this list.</div>
256 [% IF ( paramsloo.modifyfailure) %]
257 <div class="dialog message">ERROR: List could not be modified.</div>
264 [% IF ( viewshelf ) %]
266 [% IF ( itemsloop ) %]
268 <h3>Contents of <i>[% shelfname | html %]</i></h3>
269 <div class="pages">[% pagination_bar %]</div>
270 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" id="listform" method="post" class="checkboxed">
271 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
272 <input type="hidden" name="modifyshelfcontents" value="1" />
274 [% IF direction == 'asc' %]
275 [% SET new_direction = 'desc' %]
277 [% SET direction = 'desc' %]
278 [% SET new_direction = 'asc' %]
281 <div id="searchheader">
282 [% IF ( itemsloop ) %]
283 <div id="selection_ops"><span class="checkall"></span> |
284 <span class="clearall"></span>
286 <span class="addto">| </span>
288 [% IF ( CAN_user_reserveforothers && DisplayMultiPlaceHold ) %]
289 <div class="btn-group"><button class="btn btn-mini placehold"><i class="icon-hold"></i> Place hold</button></div>
291 [% IF ( allowremovingitems ) %]
292 <div class="btn-group"><button type="submit" class="btn btn-mini list-remove"><i class="icon-remove-sign"></i> Remove selected</button></div>
294 [% 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 %]
299 <table id="searchresults">
301 [% IF ( itemsloop ) %]<th class="checkall"> </th>[% END %]
303 [% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %]
305 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=title&direction=[% IF sort != 'title' %]asc[% ELSE %][% new_direction %][% END %]">Title</a>
306 [% IF sort == 'title' %]
307 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
309 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
313 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=author&direction=[% IF sort != 'author' %]asc[% ELSE %][% new_direction %][% END %]">Author</a>
314 [% IF sort == 'author' %]
315 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
317 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
322 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=itemcallnumber&direction=[% IF sort != 'itemcallnumber' %]asc[% ELSE %][% new_direction %][% END %]">Call number</a>
323 [% IF sort == 'itemcallnumber' %]
324 <img src="[% interface %]/[% theme %]/img/[% direction %].gif" alt="[% direction %] sort" />
326 <img src="[% interface %]/[% theme %]/img/ascdesc.gif" alt="" />
330 [% FOREACH itemsloo IN itemsloop %]
331 [% UNLESS ( loop.odd ) %]
332 <tr class="highlight">
336 [% IF ( itemsloop ) %]
338 [% IF ( itemsloo.confirm ) %]
339 <input type="hidden" name="CONFIRM-[% itemsloo.confirm %]" />
340 <input type="checkbox" class="selection" value="[% itemsloo.biblionumber %]" name="REM-[% itemsloo.biblionumber %]" checked />
342 <input type="checkbox" class="selection" value="[% itemsloo.biblionumber %]" name="REM-[% itemsloo.biblionumber %]" />
346 [% UNLESS ( item_level_itypes ) %]<td>
347 [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />[% END %][% itemsloo.description %]
350 [% IF ( itemsloo.XSLTBloc ) %]
351 [% itemsloo.XSLTBloc %]
353 [% INCLUDE 'biblio-default-view.inc' biblionumber = itemsloo.biblionumber %]
354 [% itemsloo.title |html %][% FOREACH subtitl IN itemsloo.subtitle %] [% subtitl.subfield %][% END %]</a>
357 [% IF ( itemsloo.notforloan ) %]
358 <span class="noholdstext">No holds allowed</span>
360 [% IF ( itemsloo.ITEM_RESULTS.size ) %]
361 <a id="reserve_[% itemsloo.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]">Holds</a>
362 [% 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 %]
364 <span class="noholdstext">No holds allowed</span>
367 [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
368 | <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% itemsloo.biblionumber %]">Edit record</a>
370 [% IF ( CAN_user_editcatalogue_edit_items ) %]
371 | <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% itemsloo.biblionumber %]">Edit items</a>
375 <td>[% itemsloo.author %]</td>
376 <td>[% itemsloo.dateadded %]</td>
379 [% FOREACH result IN itemsloo.ITEM_RESULTS %]
380 <li>[% result.holdingbranch %] [% IF ( result.location_intranet ) %] ([% result.location_intranet %]) [% END %]
381 [% IF ( result.itemcallnumber ) %]
382 [<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=[% result.itemcallnumber |url %]">[% result.itemcallnumber %]</a>]
389 [% END %]<!-- /itemsloop -->
391 <div class="pages">[% pagination_bar %]</div>
396 [% END %]<!-- /viewshelf -->
398 [% IF ( allowaddingitem ) %]
400 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
401 <fieldset class="brief">
402 <legend>Add an item to <i>[% shelfname | html %]</i></legend>
405 <label for="addbarcode">Barcode:</label>
406 <input name="addbarcode" type="text" id="addbarcode" size="14" />
407 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
408 <input type="hidden" name="modifyshelfcontents" value="1" />
409 <input type="submit" value="Add" />
415 [% END %]<!-- /allowaddingitem -->
418 [% IF ( edit ) %]<div>Edit is on ([% shelfname | html %])</div>[% END %]
419 [% IF ( seflag ) %]<div>seflag is on ([% seflag %])</div>[% END %]
424 <div class="yui-u first">
425 <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl" class="validated">
426 <fieldset class="rows">
429 <legend>Create a new list</legend>
430 <input type="hidden" name="shelves" value="1" />
432 <li><label class="required" for="addshelf">List name:</label><input id="addshelf" type="text" name="addshelf" size="25" required="required" class="required" />
433 <span class="required">Required</span>
435 <li><span class="label">Owner: </span><input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />[% loggedinusername %]</li>
436 <li><label for="sortfield" >Sort this list by: </label>
437 <select name="sortfield" id="sortfield">
438 <option value="title">Title</option>
439 <option value="author">Author</option>
440 <option value="copyrightdate">Copyrightdate</option>
441 <option value="itemcallnumber">Call number</option>
443 <li><label for="category">Category: </label>
444 <select name="category" id="category">
445 <option value="1">Private</option>
446 <option value="2">Public</option>
448 [% INCLUDE list_permissions %]
453 <legend>Edit list <i>[% shelfname | html %]</i></legend>
454 <input type="hidden" name="display" value="[% display %]" />
455 <input type="hidden" name="op" value="modifsave" />
456 [% IF ( showprivateshelves ) %]<input type="hidden" name="display" value="privateshelves" />[% END %]
457 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
459 <li><label for="shelfname" class="required">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="[% shelfname |html %]" required="required" class="required" />
460 <span class="required">Required</span>
462 <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>
463 <li><label for="sortfield" >Sort this list by: </label>
464 <select name="sortfield">
465 [% IF ( sortfield == "title" ) %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %]
466 [% IF ( sortfield == "author" ) %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %]
467 [% IF ( sortfield == "copyrightdate" ) %]<option value="copyrightdate" selected="selected">Copyrightdate</option>[% ELSE %]<option value="copyrightdate">Copyrightdate</option>[% END %]
468 [% IF ( sortfield == "itemcallnumber" ) %]<option value="itemcallnumber" selected="selected">Call number</option>[% ELSE %]<option value="itemcallnumber">Call number</option>[% END %]
470 <li><label for="category">Category: </label>
471 <select id="category" name="category">
472 [% IF ( category1 ) %]
473 <option value="1" selected="selected">Private</option>
475 <option value="1">Private</option>
477 [% IF ( category2 ) %]
478 <option value="2" selected="selected">Public</option>
480 <option value="2">Public</option>
483 [% INCLUDE list_permissions %]
489 <fieldset class="action"><input type="submit" value="Save" class="submit" />
490 [% IF ( showprivateshelves ) %]
491 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves" class="cancel">Cancel</a>
493 [% IF ( display == "viewshelf" ) %]
494 <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]" class="cancel">Cancel</a>
496 <a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a>
503 <div class="help"><ul>
504 <li>A <b>Private</b> list is managed by you and can be seen only by you.</li>
505 <li> A <b>Public</b> list can be seen by everybody, but managed only by you.</li>
506 <li>The owner of a list is always allowed to add entries, but needs permission to remove.</li>
511 [% END %]<!-- /seflag -->
513 [% UNLESS ( vseflag ) %]
515 <div class="statictabs">
517 [% IF ( showprivateshelves ) %]
518 <li id="privateshelves_tab" class="active"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a></li>
520 <li id="privateshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a></li>
522 [% IF ( showpublicshelves ) %]
523 <li id="publicshelves_tab" class="active"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a></li>
525 <li id="publicshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a></li>
528 [% IF ( showprivateshelves ) %]
529 <div id="privateshelves" class="tabs-container" style="display:block;">
531 <div id="privateshelves" class="tabs-container" style="display:none;">
533 [% IF ( shelveslooppriv ) %]
534 <div class="pages">[% pagination_bar %]</div>
536 <tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th>Options</th></tr>
537 [% FOREACH shelveslooppri IN shelveslooppriv %]
538 [% IF ( shelveslooppri.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
539 <td><a href="shelves.pl?[% IF ( shelveslooppri.showprivateshelves ) %]display=privateshelves&[% END %]viewshelf=[% shelveslooppri.shelf %]&shelfoff=[% shelfoff %]">[% shelveslooppri.shelfname |html %]</a></td>
540 <td>[% shelveslooppri.count %] item(s)</td>
541 <td>[% IF ( shelveslooppri.sortfield == "author" ) %]Author[% ELSIF ( shelveslooppri.sortfield == "copyrightdate" ) %]Year[% ELSIF (shelveslooppri.sortfield == "itemcallnumber") %]Call number[% ELSE %]Title[% END %]</td>
542 <td>[% IF ( shelveslooppri.viewcategory1 ) %][% IF !shelveslooppri.shares %]Private[% ELSE %]Shared[% END %][% END %]
543 [% IF ( shelveslooppri.viewcategory2 ) %]Public[% END %]
546 [% IF ( shelveslooppri.mine ) %]
547 <form action="merge.pl" method="get">
548 <input type="hidden" name="shelf" value="[% shelveslooppri.shelf %]" />
550 <form action="shelves.pl" method="get">
551 <input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf %]" />
552 <input type="hidden" name="op" value="modif" />
553 <input type="hidden" name="display" value="privateshelves" />
554 <input type="submit" class="editshelf" value="Edit" />
556 <form action="shelves.pl" method="post">
557 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
558 <input type="hidden" name="shelves" value="1" />
559 <input type="hidden" name="display" value="privateshelves" />
560 <input type="hidden" name="DEL-[% shelveslooppri.shelf %]" value="1" />
561 [% IF ( shelveslooppri.confirm ) %]
562 <input type="hidden" name="CONFIRM-[% shelveslooppri.confirm %]" value="1" />
563 <input type="submit" class="approve" value="Confirm" />
565 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
576 <p>No private lists.</p>
577 [% END %]<!-- /shelveslooppriv -->
578 </div><!-- /privateshelves -->
580 [% IF ( showpublicshelves ) %]
581 <div id="publicshelves" class="tabs-container" style="display:block;">
583 <div id="publicshelves" class="tabs-container" style="display:none;">
585 [% IF ( shelvesloop ) %]
586 <div class="pages">[% pagination_bar %]</div>
588 <tr><th>List Name</th><th>Created by</th><th>Contents</th><th>Sort By</th><th>Type</th><th>Options</th></tr>
589 [% FOREACH shelvesloo IN shelvesloop %]
590 [% IF ( shelvesloo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
591 <td><a href="shelves.pl?viewshelf=[% shelvesloo.shelf %]">[% shelvesloo.shelfname |html %]</a></td>
592 <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% shelvesloo.owner %]">[% shelvesloo.ownername %]</td>
593 <td>[% shelvesloo.count %] item(s)</td>
594 <td>[% IF ( shelvesloo.sortfield == "author" ) %]Author[% ELSIF ( shelvesloo.sortfield == "copyrightdate" ) %]Year[% ELSIF (shelvesloo.sortfield == "itemcallnumber") %]Call number[% ELSE %]Title[% END %]</td>
595 <td>[% IF ( shelvesloo.viewcategory1 ) %]Private[% END %]
596 [% IF ( shelvesloo.viewcategory2 ) %]Public[% END %]
599 [% IF ( shelvesloo.manageshelf ) %]
600 <form action="shelves.pl" method="get">
601 <input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" />
602 <input type="hidden" name="op" value="modif" />
603 <input type="submit" class="editshelf" value="Edit" />
605 <form action="shelves.pl" method="post">
606 <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
607 <input type="hidden" name="shelves" value="1" />
608 <input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" />
609 [% IF ( shelvesloo.confirm ) %]
610 <input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" />
611 <input type="submit" class="approve" value="Confirm" />
613 <input type="submit" class="deleteshelf" onclick="return confirmDelete(MSG_CONFIRM_DELETE_LIST);" value="Delete" />
624 [% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %]
625 [% END %]<!-- /shelvesloop -->
626 </div><!-- /publicshelves -->
630 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
631 <!-- Value will be set here by placeHold() -->
632 <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
633 <input type="hidden" name="multi_hold" value="1"/>
638 [% INCLUDE 'intranet-bottom.inc' %]