Merge remote-tracking branch 'origin/new/bug_7747'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / virtualshelves / shelves.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; [% IF ( viewshelf ) %]Lists &rsaquo; Contents of [% shelfname | html %][% ELSE %]lists[% END %][% IF ( shelves ) %] &rsaquo; Create new list[% END %][% IF ( edit ) %] &rsaquo; Edit list [% shelfname | html %][% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
5 <script type="text/javascript">
6 //<![CDATA[ 
7
8 var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
9
10 $(document).ready(function(){
11         $("#addbarcode").focus();
12     $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\">"+_('Clear all')+"<\/a>");
13     $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/shelves.pl\">"+_('Select all')+"<\/a>");
14     $("#CheckAll").click(function(){
15         $(".checkboxed").checkCheckboxes();
16         return false;
17     });
18     $("#CheckNone").click(function(){
19         $(".checkboxed").unCheckCheckboxes();
20         return false;
21     });
22     $("#placehold").show();
23 });
24
25         function confirmDelete(message){
26                 if (window.confirm(message)) {
27                     location.href="/cgi-bin/koha/virtualshelves/shelves.pl?[% IF ( showprivateshelves ) %]display=privateshelves&[% END %]shelves=1&DEL-[% shelfnumber %]=1&shelfoff=[% shelfoff %]";
28                 } else { 
29                         return false;
30                 }
31         }
32
33     /**
34      * This function checks if the adequate number of records are checked for merging
35      */
36     function MergeItems() {
37         var checkboxes = $("input:checkbox:checked");
38         var nbCheckbox = checkboxes.length;
39         if (nbCheckbox != 2) {
40             alert(_('Two records must be selected for merging.'));
41         } else {
42             location.href='/cgi-bin/koha/cataloguing/merge.pl?biblionumber=' + checkboxes[0].value + '&amp;biblionumber=' + checkboxes[1].value;
43         }
44         return false;
45     }
46
47     /**
48      * This function checks all checkboxes if all are empty,
49      * or unchecks all if any already checked.
50      */
51     function CheckAll(){
52         var checkboxes = document.getElementsByTagName('input');
53         var nbCheckbox = checkboxes.length;
54         var check = areAllChecked();
55         for(var i=0;i<nbCheckbox;i++){
56             if(checkboxes[i].getAttribute('type') == "checkbox" ){
57                 checkboxes[i].checked = (check) ? 0 : 1;
58             }
59         }
60     }
61     /**
62      * This function returns true if ALL checkboxes are checked
63      */
64     function areAllChecked(){
65         var checkboxes = document.getElementsByTagName('input');
66         var nbCheckbox = checkboxes.length;
67         for(var i=0;i<nbCheckbox;i++){
68             if(checkboxes[i].getAttribute('type') == "checkbox" ){
69                 if(checkboxes[i].checked == 0){
70                     return false;
71                 }
72             }
73         }
74         return true;
75     }
76     
77 function placeHold () {
78     var checkedItems = $(".selection:checked");
79     if ($(checkedItems).size() == 0) {
80         alert(MSG_NO_ITEM_SELECTED);
81         return false;
82     }
83     var bibs = "";
84     $(checkedItems).each(function() {
85         bibs += $(this).val() + "/";
86     });
87     $("#hold_form_biblios").val(bibs);
88     $("#hold_form").submit();
89     return false;
90 }
91     /**
92      * This function checks to make sure a list title is assigned
93      */
94       function Check(f) {
95                 var _alertString="";
96                 var alertString2;
97
98             if($("#shelfname").val() == ""){
99                         _alertString += _("- You must enter a List Name") + "\n";
100                 }
101
102                 if (_alertString.length==0) {
103             f.submit();
104                 } else {
105                         alertString2 = _("Form not submitted because of the following problem(s)");
106                         alertString2 += "\n------------------------------------------------------------------------------------\n\n";
107                         alertString2 += _alertString;
108                         alert(alertString2);
109                 }
110         }
111 //]]>
112 </script>
113 </head>
114 <body id="lists_shelves" class="lists">
115 [% INCLUDE 'header.inc' %]
116 [% INCLUDE 'cat-search.inc' %]
117
118 [% BLOCK list_permissions %]
119     <li>
120         <label for="permissions">Permissions: </label>
121         <select name="allow_add" id="allow_add">
122             [% IF allow_add %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
123             [% IF allow_add %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
124         </select>
125         &nbsp;<span>anyone else to add entries.</span>
126     </li>
127     <li>
128         <label>&nbsp;</label>
129         <select name="allow_delete_own" id="allow_delete_own">
130             [% IF allow_delete_own %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
131             [% IF allow_delete_own %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
132         </select>
133         &nbsp;<span>anyone to remove his own contributed entries.</span>
134     </li>
135     <li>
136         <label>&nbsp;</label>
137         <select name="allow_delete_other" id="allow_delete_other">
138             [% IF allow_delete_other %]<option value="0">Do not allow</option>[% ELSE %]<option value="0" selected="selected">Do not allow</option>[% END %]
139             [% IF allow_delete_other %]<option value="1" selected="selected">Allow</option>[% ELSE %]<option value="1">Allow</option>[% END %]
140         </select>
141         &nbsp;<span>anyone to remove other contributed entries.</span>
142     </li>
143 [% END %]
144 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a> [% IF ( category1 ) %] &rsaquo; [% IF ( viewshelf || edit ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a> [% ELSE %] Your lists [% END %] [% ELSIF ( category2 ) %] &rsaquo; [% IF ( viewshelf ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a> [% ELSE %] Public lists [% END %] [% ELSIF ( showprivateshelves ) %] &rsaquo; [% IF ( viewshelf || edit ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a> [% ELSE %] Your lists [% END %] [% ELSIF ( showpublicshelves ) %] &rsaquo; [% IF ( viewshelf || edit ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a> [% ELSE %] Public lists [% END %] [% END %]
145
146 [% IF ( viewshelf ) %]&rsaquo; Contents of <i>[% shelfname | html %]</i>[% END %][% IF ( shelves ) %] &rsaquo; Create new list[% END %][% IF ( edit ) %] &rsaquo; Edit list <i>[% shelfname | html %]</i>[% END %]</div>
147
148 <div id="doc" class="yui-t7">
149  <div id="bd">
150   <div id="yui-main">
151    <div class="yui-g">[% INCLUDE 'virtualshelves-toolbar.inc' %]
152    </div>
153 [% IF ( paramsloop ) %]
154 [% FOREACH paramsloo IN paramsloop %]
155 <div class="yui-ge">
156     <div class="yui-u first">
157         [% IF ( paramsloo.already ) %]<div class="dialog alert">A List named [% paramsloo.already %] already exists!</div>[% END %]
158                 [% IF ( paramsloo.status ) %]<div class="dialog alert">[% paramsloo.string %]</div>[% END %]
159                 [% IF ( paramsloo.nobarcode ) %]<div class="dialog alert">ERROR: No barcode given.</div>[% END %] 
160                 [% IF ( paramsloo.noshelfnumber ) %]<div class="dialog alert">ERROR: No shelfnumber given.</div>[% END %] 
161                 [% IF ( paramsloo.need_confirm ) %]
162                 <div class="dialog alert">The list <i>[% paramsloo.need_confirm %]</i> is not empty.
163                         <br />It has <b>[% paramsloo.count %]</b> entries.
164                         <br />Use the "Confirm" button below to confirm deletion.
165                 </div>
166                 [% END %]
167                 [% IF ( paramsloo.nopermission ) %]
168                 <div class="dialog alert">ERROR: You do not have adequate permission for that action on list [% paramsloo.nopermission %].</div>
169                 [% END %]
170                 [% IF ( paramsloo.failgetitem ) %]
171                 <div class="dialog alert">ERROR: No item found with barcode [% paramsloo.failgetitem %].</div>
172                 [% END %] 
173                 [% IF ( paramsloo.duplicatebiblio ) %]
174                 <div class="dialog alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div>
175                 [% END %]
176                 [% IF ( paramsloo.nothingdeleted) %]
177                       <div class="dialog message">Warning: You could not delete any selected items from this shelf.</div>
178                 [% END %]
179                 [% IF ( paramsloo.somedeleted) %]
180                       <div class="dialog message">Warning: You could not delete all selected items from this shelf.</div>
181                 [% END %]
182                 [% IF ( paramsloo.modifyfailure) %]
183                       <div class="dialog message">ERROR: List could not be modified.</div>
184                 [% END %]
185         </div>
186 </div>
187 [% END %]
188 [% END %] 
189
190 [% IF ( viewshelf ) %]
191    <div class="yui-g">
192     [% IF ( itemsloop ) %]
193
194         <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post" class="checkboxed">
195         <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
196         <input type="hidden" name="modifyshelfcontents" value="1" />
197  <fieldset>
198   <legend>Contents of <i>[% shelfname | html %]</i></legend>
199    
200  [% IF ( itemsloop ) %]
201      <p><span class="checkall"></span> |
202      <span class="clearall"></span></p>
203  [% END %]
204         
205  <div class="pages">[% pagination_bar %]</div>
206     <table>
207             <tr>
208                 [% IF ( itemsloop ) %]<th class="checkall">&nbsp;</th>[% END %]
209                 [% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %]
210                 <th>Title</th>
211                 <th>Author</th>
212                 <th>Date added</th>
213                 <th>&nbsp;</th>
214             </tr>
215                 [% FOREACH itemsloo IN itemsloop %]
216                         [% UNLESS ( loop.odd ) %]
217                         <tr class="highlight">
218                         [% ELSE %]
219                         <tr>
220                         [% END %]
221                         [% IF ( itemsloop ) %]
222                         <td>
223                                 [% IF ( itemsloo.confirm ) %]
224                                 <input type="hidden"   name="CONFIRM-[% itemsloo.confirm %]" />
225                                 <input type="checkbox" class="selection" value="[% itemsloo.biblionumber %]" name="REM-[% itemsloo.biblionumber %]" checked />
226                                 [% ELSE %]
227                                 <input type="checkbox" class="selection" value="[% itemsloo.biblionumber %]" name="REM-[% itemsloo.biblionumber %]" />
228                                 [% END %]
229                         </td>
230                         [% END %]
231                         [% UNLESS ( item_level_itypes ) %]<td>
232                 [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />[% END %][% itemsloo.description %]
233                         </td>[% END %]
234                         <td>
235                         [% INCLUDE 'biblio-default-view.inc' biblionumber = itemsloo.biblionumber %]
236                         [% itemsloo.title |html %][% FOREACH subtitl IN itemsloo.subtitle %] [% subtitl.subfield %][% END %]</a>
237                         </td>
238                         <td>[% itemsloo.author %]</td>
239                         <td>[% itemsloo.dateadded %]</td>
240                         <td>
241                         [% UNLESS ( itemsloo.notforloan ) %]
242                         <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% itemsloo.biblionumber %]">Holds</a>
243                         [% END %]
244                         </td>
245                         </tr>
246                 [% END %]<!-- /itemsloop -->
247     </table><fieldset class="action">
248         [% IF ( itemsloop ) %]
249             <input type="button" id="placehold" style="display:none" onclick="placeHold(); return false;" value="Place holds" />
250             [% IF ( allowremovingitems ) %]<input type="submit" value="Remove selected records" onclick="return confirm(_('Are you sure you want to remove these records from the shelf?'));" />[% END %]
251             <input type="submit" value="Merge selected records" onclick="return MergeItems();" />
252         [% END %]
253  </fieldset>
254  </fieldset>
255  
256 </form>
257         [% END %]
258    </div>
259 [% END %]<!-- /viewshelf -->
260
261 [% IF ( allowaddingitem ) %]
262 <div class="yui-g">
263 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
264  <fieldset class="brief">
265     <legend>Add an item to <i>[% shelfname | html %]</i></legend>
266         <ol>
267             <li>
268                 <label for="addbarcode">Barcode:</label>
269                 <input name="addbarcode" type="text" id="addbarcode" size="14" />
270                 <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
271                 <input type="hidden" name="modifyshelfcontents" value="1" />
272                 <input type="submit" value="Add" />
273             </li>
274         </ol>
275  </fieldset>
276 </form>
277 </div>
278 [% END %]<!-- /allowaddingitem -->
279
280 [% IF ( debug ) %]
281   [% IF ( edit ) %]<div>Edit is on ([% shelfname | html %])</div>[% END %]
282   [% IF ( seflag ) %]<div>seflag is on ([% seflag %])</div>[% END %]
283 [% END %]
284
285 [% IF ( seflag ) %]
286 <div class="yui-ge">
287     <div class="yui-u first">
288     <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl">
289         <fieldset class="rows">
290
291     [% IF ( shelves ) %]
292         <input type="hidden" name="shelves" value="1" />
293         <legend>Create a new list</legend>
294         <ol>
295         <li><label class="required" for="addshelf">List name:</label><input id="addshelf" type="text" name="addshelf" size="25" /></li>
296         <li><span class="label">Owner: </span><input type="hidden" name="owner" id="owner" value="[% loggedinuser %]" />[% loggedinusername %]</li>
297                 <li><label for="sortfield" >Sort this list by: </label>
298                 <select name="sortfield" id="sortfield">
299                 [% IF ( sort_title ) %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %]
300                 [% IF ( sort_author ) %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %]
301                 [% IF ( sort_copyrightdate ) %]<option value="copyrightdate" selected="selected">Copyrightdate</option>[% ELSE %]<option value="copyrightdate">Copyrightdate</option>[% END %]
302                 </select></li>
303         <li><label for="category">Category: </label>
304                         <select name="category" id="category">
305                   <option value="1">Private</option>
306                   <option value="2">Public</option>
307                      </select></li>
308             [% INCLUDE list_permissions %]
309         </ol>
310     [% END %]
311
312     [% IF ( edit ) %]
313                 <input type="hidden" name="op" value="modifsave" />
314         [% IF ( showprivateshelves ) %]<input type="hidden" name="display" value="privateshelves" />[% END %]
315                 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
316         <legend>Edit list <i>[% shelfname | html %]</i></legend>
317                 <ol>
318                 <li><label for="shelfname">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="[% shelfname |html %]" /></li>
319                 <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>
320                 <li><label for="sortfield" >Sort this list by: </label>
321                 <select name="sortfield">
322                 [% IF ( sort_title ) %]<option value="title" selected="selected">Title</option>[% ELSE %]<option value="title">Title</option>[% END %]
323                 [% IF ( sort_author ) %]<option value="author" selected="selected">Author</option>[% ELSE %]<option value="author">Author</option>[% END %]
324                 [% IF ( sort_copyrightdate ) %]<option value="copyrightdate" selected="selected">Copyrightdate</option>[% ELSE %]<option value="copyrightdate">Copyrightdate</option>[% END %]
325                 </select></li>
326                 <li><label for="category">Category: </label>
327                         <select id="category" name="category">
328                         [% IF ( category1 ) %]
329                                 <option value="1" selected="selected">Private</option>
330                         [% ELSE %]
331                                 <option value="1">Private</option>
332                         [% END %]
333                         [% IF ( category2 ) %]
334                                 <option value="2" selected="selected">Public</option>
335                         [% ELSE %]
336                                 <option value="2">Public</option>
337                         [% END %]
338                        </select></li>
339             [% INCLUDE list_permissions %]
340             </ol>
341         [% END %]
342
343                 </fieldset>
344                 <fieldset class="action"><input type="submit" onclick="Check(this.form); return false;" value="Save" class="submit" />
345         [% IF ( showprivateshelves ) %]<a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves" class="cancel">Cancel</a>[% ELSE %]<a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a>[% END %]
346     </fieldset>
347     </form>
348     </div>
349     <div class="yui-u">
350         <div class="help"><ul>
351             <li>A <b>Private</b> list is managed by you and can be seen only by you.</li>
352             <li> A <b>Public</b> list can be seen by everybody, but managed only by you.</li>
353             <br/>
354             <li>The owner of a list is always allowed to add entries, but needs permission to remove.</li>
355         </ul>
356         </div>
357     </div>
358 </div>
359 [% END %]<!-- /seflag -->
360
361 [% UNLESS ( vseflag ) %]
362         <h2>Lists</h2>
363                 <div class="toptabs">
364         <ul class="ui-tabs-nav">
365         [% IF ( showprivateshelves ) %]
366             <li id="privateshelves_tab" class="ui-tabs-selected"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a></li>
367         [% ELSE %]
368             <li id="privateshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your lists</a></li>
369         [% END %]
370         [% IF ( showpublicshelves ) %]
371             <li id="publicshelves_tab" class="ui-tabs-selected"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a></li>
372         [% ELSE %]
373             <li id="publicshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public lists</a></li>
374         [% END %]
375         </ul>
376         [% IF ( showprivateshelves ) %]
377                 <div id="privateshelves" class="ui-tabs-panel" style="display:block;">
378                 [% ELSE %]
379                 <div id="privateshelves" class="ui-tabs-panel" style="display:none;">
380                 [% END %]
381             [% IF ( shelveslooppriv ) %]
382                         <div class="pages">[% pagination_bar %]</div>
383                         <table>
384                         <tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th>Options</th></tr>
385                 [% FOREACH shelveslooppri IN shelveslooppriv %]
386                     [% IF ( shelveslooppri.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
387         <td><a href="shelves.pl?[% IF ( shelveslooppri.showprivateshelves ) %]display=privateshelves&amp;[% END %]viewshelf=[% shelveslooppri.shelf %]&amp;shelfoff=[% shelfoff %]">[% shelveslooppri.shelfname |html %]</a></td>
388         <td>[% shelveslooppri.count %] item(s)</td>
389         <td>[% IF ( shelveslooppri.authorsort ) %]Author[% ELSIF ( shelveslooppri.yearsort ) %]Year[% ELSE %]Title[% END %]</td>
390         <td>[% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %]
391                         [% IF ( shelveslooppri.viewcategory2 ) %]Public[% END %]
392                 </td>
393         <td>
394             [% IF ( shelveslooppri.mine ) %]
395                                 <form action="merge.pl" method="get">
396                                         <input type="hidden" name="shelf" value="[% shelveslooppri.shelf %]" />
397                                 </form>
398                                 <form action="shelves.pl" method="get">
399                                         <input type="hidden" name="shelfnumber" value="[% shelveslooppri.shelf %]" />
400                                         <input type="hidden" name="op" value="modif" />
401                     <input type="hidden" name="display" value="privateshelves" />
402                                         <input type="submit" class="editshelf" value="Edit" />
403                                 </form>
404                                 <form action="shelves.pl" method="post">
405                                     <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
406                                         <input type="hidden" name="shelves" value="1" />
407                     <input type="hidden" name="display" value="privateshelves" />
408                                         <input type="hidden" name="DEL-[% shelveslooppri.shelf %]" value="1" />
409                                         [% IF ( shelveslooppri.confirm ) %]
410                                         <input type="hidden" name="CONFIRM-[% shelveslooppri.confirm %]" value="1" />
411                                         <input type="submit" class="approve" value="Confirm" />
412                                         [% ELSE %]
413                     <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this list?'));" value="Delete" />
414                                         [% END %]
415                                 </form>
416                         [% ELSE %]
417                                 None
418                         [% END %]
419                 </td>
420                 </tr>
421                 [% END %]
422         </table>
423             [% ELSE %]
424             <p>No private lists.</p>
425             [% END %]<!-- /shelveslooppriv -->
426                 </div><!-- /privateshelves -->
427
428         [% IF ( showpublicshelves ) %]
429                 <div id="publicshelves" class="ui-tabs-panel" style="display:block;">
430                 [% ELSE %]
431                 <div id="publicshelves" class="ui-tabs-panel" style="display:none;">
432                 [% END %]
433         [% IF ( shelvesloop ) %]
434                 <div class="pages">[% pagination_bar %]</div>
435         <table>
436         <tr><th>List Name</th><th>Created by</th><th>Contents</th><th>Sort By</th><th>Type</th><th>Options</th></tr>
437             [% FOREACH shelvesloo IN shelvesloop %]
438                 [% IF ( shelvesloo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
439                 <td><a href="shelves.pl?viewshelf=[% shelvesloo.shelf %]">[% shelvesloo.shelfname |html %]</a></td>
440         <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% shelvesloo.owner %]">[% shelvesloo.ownername %]</td>
441                 <td>[% shelvesloo.count %] item(s)</td>
442         <td>[% IF ( shelvesloo.authorsort ) %]Author[% ELSIF ( shelvesloo.yearsort ) %]Year[% ELSE %]Title[% END %]</td>
443         <td>[% IF ( shelvesloo.viewcategory1 ) %]Private[% END %]
444                         [% IF ( shelvesloo.viewcategory2 ) %]Public[% END %]
445                 </td>
446         <td>
447             [% IF ( shelvesloo.manageshelf ) %]
448                                 <form action="shelves.pl" method="get">
449                                         <input type="hidden" name="shelfnumber" value="[% shelvesloo.shelf %]" />
450                                         <input type="hidden" name="op" value="modif" />
451                                         <input type="submit" class="editshelf" value="Edit" />
452                                 </form>
453                                 <form action="shelves.pl" method="post">
454                                         <input type="hidden" name="shelfoff" value="[% shelfoff %]" />
455                                         <input type="hidden" name="shelves" value="1" />
456                                         <input type="hidden" name="DEL-[% shelvesloo.shelf %]" value="1" />
457                                         [% IF ( shelvesloo.confirm ) %]
458                                         <input type="hidden" name="CONFIRM-[% shelvesloo.confirm %]" value="1" />
459                                         <input type="submit" class="approve" value="Confirm" />
460                                         [% ELSE %]
461                     <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this list?'));" value="Delete" />
462                                         [% END %]
463                                 </form>
464                         [% ELSE %]
465                                 None
466                         [% END %]
467                 </td>
468                 </tr>
469             [% END %]
470         </table>
471         [% ELSE %]
472             [% IF ( showpublicshelves ) %]<p>No public lists.</p>[% END %]
473         [% END %]<!-- /shelvesloop -->
474         </div><!-- /publicshelves -->
475                 </div>
476 [% END %]
477
478 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
479     <!-- Value will be set here by placeHold() -->
480     <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
481     <input type="hidden" name="multi_hold" value="1"/>
482 </form>
483
484 </div>
485 </div>
486 [% INCLUDE 'intranet-bottom.inc' %]