Fix for Bug 4532, Use include file for bibliodefaultview logic
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / virtualshelves / shelves.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; <!-- TMPL_IF NAME="viewshelf" -->Lists &rsaquo; Contents of <!-- TMPL_VAR NAME="shelfname" --><!-- TMPL_ELSE -->Lists<!-- /TMPL_IF --><!-- TMPL_IF NAME="shelves" --> &rsaquo; Create New List<!-- /TMPL_IF --><!-- TMPL_IF NAME="edit" --> &rsaquo; Edit List <!-- TMPL_VAR name="shelfname"--><!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="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?<!-- TMPL_IF NAME="showprivateshelves" -->display=privateshelves&<!-- /TMPL_IF -->shelves=1&DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1";
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(f.addshelf.value.length ==0){
99                         _alertString += _("- You must enter a List Name") + "\n";
100                 }
101
102                 if (_alertString.length==0) {
103                         document.Aform.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>
115 <!-- TMPL_INCLUDE NAME="header.inc" -->
116 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
117
118 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a>
119 <!-- TMPL_IF NAME="viewshelf" -->&rsaquo; Contents of <i><!-- TMPL_VAR NAME="shelfname" --></i><!-- /TMPL_IF --><!-- TMPL_IF NAME="shelves" --> &rsaquo; Create New List<!-- /TMPL_IF --><!-- TMPL_IF NAME="edit" --> &rsaquo; Edit List <i><!-- TMPL_VAR name="shelfname"--></i><!-- /TMPL_IF --></div>
120
121 <div id="doc" class="yui-t7">
122  <div id="bd">
123   <div id="yui-main">
124    <div class="yui-g"><!-- TMPL_INCLUDE NAME="virtualshelves-toolbar.inc" -->
125    </div>
126 <!-- TMPL_IF NAME="paramsloop" -->
127 <!-- TMPL_LOOP NAME="paramsloop" -->
128 <div class="yui-ge">
129     <div class="yui-u first">
130         <!-- TMPL_IF NAME="already" --><div class="dialog alert">A List named <!-- TMPL_VAR NAME="already" --> already exists!</div><!-- /TMPL_IF -->
131                 <!-- TMPL_IF NAME="status" --><div class="dialog alert"><!-- TMPL_VAR NAME="string" --></div><!-- /TMPL_IF -->
132                 <!-- TMPL_IF NAME="nobarcode" --><div class="dialog alert">ERROR: No barcode given.</div><!-- /TMPL_IF --> 
133                 <!-- TMPL_IF NAME="noshelfnumber" --><div class="dialog alert">ERROR: No shelfnumber given.</div><!-- /TMPL_IF --> 
134                 <!-- TMPL_IF NAME="need_confirm" -->
135                 <div class="dialog alert">The list <i><!-- TMPL_VAR NAME="need_confirm" --></i> is not empty.
136                         <br />It has <b><!-- TMPL_VAR NAME="count" --></b> entries.
137                         <br />Use the "Confirm" button below to confirm deletion.
138                 </div>
139                 <!-- /TMPL_IF -->
140                 <!-- TMPL_IF NAME="nopermission" -->
141                 <div class="dialog alert">ERROR: You do not have adequate permission for that action on list <!-- TMPL_VAR NAME="nopermission" -->.</div>
142                 <!-- /TMPL_IF -->
143                 <!-- TMPL_IF NAME="failgetitem" -->
144                 <div class="dialog alert">ERROR: No item found with barcode <!-- TMPL_VAR NAME="failgetitem" -->.</div>
145                 <!-- /TMPL_IF --> 
146                 <!-- TMPL_IF NAME="duplicatebiblio" -->
147                 <div class="dialog alert">A record matching barcode <b><!-- TMPL_VAR NAME="duplicatebiblio" --></b> has already been added.</div>
148                 <!-- /TMPL_IF --> 
149         </div>
150 </div>
151 <!-- /TMPL_LOOP -->
152 <!-- /TMPL_IF --> 
153
154 <!-- TMPL_IF NAME="viewshelf" -->
155    <div class="yui-g">
156     <!-- TMPL_IF NAME="itemsloop" -->
157
158         <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post" class="checkboxed">
159         <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
160         <input type="hidden" name="modifyshelfcontents" value="1" />
161  <fieldset>
162   <legend>Contents of <i><!-- TMPL_VAR NAME="shelfname" --></i></legend>
163    
164  <!--TMPL_IF NAME="manageshelf" -->
165      <p><span class="checkall"></span> |
166      <span class="clearall"></span></p>
167  <!-- /TMPL_IF -->
168         
169  <!-- TMPL_VAR name='pagination_bar'-->
170     <table>
171             <tr>
172                 <!--TMPL_IF NAME="manageshelf" --><th class="checkall">&nbsp;</th><!-- /TMPL_IF -->
173                 <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th><!-- /TMPL_UNLESS -->
174                 <th>Title</th>
175                 <th>Author</th>
176                 <th>Date Added</th>
177                 <th>&nbsp;</th>
178             </tr>
179                 <!-- TMPL_LOOP NAME="itemsloop" -->
180                         <!-- TMPL_UNLESS NAME="__odd__" -->
181                         <tr class="highlight">
182                         <!-- TMPL_ELSE -->
183                         <tr>
184                         <!-- /TMPL_UNLESS -->
185                         <!-- TMPL_IF NAME="manageshelf" -->
186                         <td>
187                                 <!-- TMPL_IF NAME="confirm" -->
188                                 <input type="hidden"   name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" />
189                                 <input type="checkbox" class="selection" value="<!-- TMPL_VAR NAME="biblionumber" -->" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" checked />
190                                 <!-- TMPL_ELSE -->
191                                 <input type="checkbox" class="selection" value="<!-- TMPL_VAR NAME="biblionumber" -->" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
192                                 <!-- /TMPL_IF -->
193                         </td>
194                         <!-- /TMPL_IF -->
195                         <!-- TMPL_UNLESS NAME="item-level_itypes" --><td>
196                 <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" /><!-- TMPL_VAR NAME="description" -->
197                         </td><!-- /TMPL_UNLESS -->
198                         <td>
199                         <!-- TMPL_INCLUDE NAME="biblio-default-view.inc" -->
200                         <!-- TMPL_VAR NAME="title" escape="html" --><!-- TMPL_LOOP NAME="subtitle" --> <!-- TMPL_VAR NAME="subfield" --><!-- /TMPL_LOOP --></a>
201                         </td>
202                         <td><!-- TMPL_VAR NAME="author" --></td>
203                         <td><!-- TMPL_VAR NAME="dateadded" --></td>
204                         <td>
205                         <!-- TMPL_UNLESS name="notforloan" -->
206                         <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Holds</a>
207                         <!-- /TMPL_UNLESS -->
208                         </td>
209                         </tr>
210                 <!-- /TMPL_LOOP --><!-- /itemsloop -->
211     </table><fieldset class="action">
212         <!-- TMPL_IF name="manageshelf" -->
213             <input type="button" id="placehold" style="display:none" onclick="placeHold(); return false;" value="Place Holds" />
214             <input type="submit" value="Remove selected Items" onclick="return confirm(_('Are you sure you want to remove these items from the shelf?'));" />
215             <input type="submit" value="Merge selected Items" onclick="return MergeItems();" />
216         <!-- /TMPL_IF -->
217  </fieldset>
218  </fieldset>
219  
220 </form>
221         <!-- /TMPL_IF -->
222    </div>
223 <!-- /TMPL_IF --><!-- /viewshelf -->
224
225 <!-- TMPL_IF name="manageshelf" -->
226 <div class="yui-g">
227 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
228  <fieldset class="brief">
229     <legend>Add an item to <i><!-- TMPL_VAR NAME="shelfname" --></i></legend>
230         <ol>
231             <li>
232                 <label for="addbarcode">Barcode:</label>
233                 <input name="addbarcode" type="text" id="addbarcode" size="14" />
234                 <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
235                 <input type="hidden" name="modifyshelfcontents" value="1" />
236                 <input type="submit" value="Add" />
237             </li>
238         </ol>
239  </fieldset>
240 </form>
241 </div>
242 <!-- /TMPL_IF --><!-- /manageshelf -->
243
244 <!-- TMPL_IF name="debug" -->
245   <!-- TMPL_IF name="edit" --><div>Edit is on (<!-- TMPL_VAR name="shelfname" -->)</div><!-- /TMPL_IF -->
246   <!-- TMPL_IF NAME="seflag" --><div>seflag is on (<!-- TMPL_VAR name="seflag" -->)</div><!-- /TMPL_IF -->
247 <!-- /TMPL_IF -->
248
249 <!-- TMPL_IF NAME="seflag" -->
250 <div class="yui-ge">
251     <div class="yui-u first">
252     <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl">
253         <fieldset class="rows">
254
255     <!-- TMPL_IF NAME="shelves" -->
256         <input type="hidden" name="shelves" value="1" />
257         <legend>Create a new List</legend>
258         <ol>
259         <li><label class="required" for="addshelf">List Name:</label><input id="addshelf" type="text" name="addshelf" size="25" /></li>
260         <li><span class="label">Owner: </span><input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR name="loggedinuser" -->" /><!-- TMPL_VAR name="loggedinusername" --></li>
261                 <li><label for="sortfield" >Sort this list by: </label>
262                 <select name="sortfield" id="sortfield">
263                 <!-- TMPL_IF NAME="sort_title" --><option value="title" selected="selected">Title</option><!-- TMPL_ELSE --><option value="title">Title</option><!-- /TMPL_IF -->
264                 <!-- TMPL_IF NAME="sort_author" --><option value="author" selected="selected">Author</option><!-- TMPL_ELSE --><option value="author">Author</option><!-- /TMPL_IF -->
265                 <!-- TMPL_IF NAME="sort_copyrightdate" --><option value="copyrightdate" selected="selected">Copyrightdate</option><!-- TMPL_ELSE --><option value="copyrightdate">Copyrightdate</option><!-- /TMPL_IF -->
266                 </select></li>
267         <li><label for="category">Category: </label>
268                         <select name="category" id="category">
269                   <option value="1">Private</option>
270                   <option value="2">Public</option>
271                   <option value="3">Open</option>
272                         </select></li></ol>
273     <!-- /TMPL_IF -->
274
275     <!-- TMPL_IF name="edit" -->
276                 <input type="hidden" name="op" value="modifsave" />
277                 <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->" />
278                 <legend>Edit List <i><!-- TMPL_VAR name="shelfname" --></i></legend>
279                 <ol>
280                 <li><label for="shelfname">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value='<!-- TMPL_VAR name="shelfname" ESCAPE="HTML" -->' /></li>
281                 <li><label for="owner">Owner: </label><input type="hidden" id="owner" name="owner" value="<!-- TMPL_IF NAME="owner" --><!-- TMPL_VAR NAME="ownername" --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="loggedinusername" --><!-- /TMPL_IF -->" /><!-- TMPL_IF NAME="owner" --><!-- TMPL_VAR NAME="ownername" --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="loggedinusername" --><!-- /TMPL_IF --></li>
282                 <li><label for="sortfield" >Sort this list by: </label>
283                 <select name="sortfield">
284                 <!-- TMPL_IF NAME="sort_title" --><option value="title" selected="selected">Title</option><!-- TMPL_ELSE --><option value="title">Title</option><!-- /TMPL_IF -->
285                 <!-- TMPL_IF NAME="sort_author" --><option value="author" selected="selected">Author</option><!-- TMPL_ELSE --><option value="author">Author</option><!-- /TMPL_IF -->
286                 <!-- TMPL_IF NAME="sort_copyrightdate" --><option value="copyrightdate" selected="selected">Copyrightdate</option><!-- TMPL_ELSE --><option value="copyrightdate">Copyrightdate</option><!-- /TMPL_IF -->
287                 </select></li>
288                 <li><label for="category">Category: </label>
289                         <select id="category" name="category">
290                         <!-- TMPL_IF name="category1" -->
291                                 <option value="1" selected="selected">Private</option>
292                         <!-- TMPL_ELSE -->
293                                 <option value="1">Private</option>
294                         <!-- /TMPL_IF -->
295                         <!-- TMPL_IF name="category2" -->
296                                 <option value="2" selected="selected">Public</option>
297                         <!-- TMPL_ELSE -->
298                                 <option value="2">Public</option>
299                         <!-- /TMPL_IF -->
300                         <!-- TMPL_IF NAME="category3" -->
301                                 <option value="3" selected="selected">Open</option>
302                         <!-- TMPL_ELSE -->
303                                 <option value="3">Open</option>
304                         <!-- /TMPL_IF -->
305                         </select></li></ol>
306         <!-- /TMPL_IF -->
307
308                 </fieldset>
309                 <fieldset class="action"><input type="submit" onclick="Check(this.form); return false;" value="Save" class="submit" /><a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a></fieldset>
310     </form>
311     </div>
312     <div class="yui-u">
313         <div class="help"><ul>
314             <li>A <b>Private</b> List is managed by you and can be seen only by you.</li>
315             <li> A <b>Public</b> List can be seen by everybody, but managed only by you.</li>
316             <li> A <b>Open</b> List can be seen and managed by everybody.</li>
317         </ul></div>
318     </div>
319 </div>
320 <!-- /TMPL_IF --><!-- /seflag -->
321
322 <!-- TMPL_UNLESS NAME="vseflag" -->
323         <h2>Lists</h2>
324                 <div class="toptabs">
325         <ul class="ui-tabs-nav">
326         <!-- TMPL_IF NAME="showprivateshelves" -->
327             <li id="privateshelves_tab" class="ui-tabs-selected"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your Lists</a></li>
328         <!-- TMPL_ELSE -->
329             <li id="privateshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your Lists</a></li>
330         <!-- /TMPL_IF -->
331         <!-- TMPL_IF NAME="showpublicshelves" -->
332             <li id="publicshelves_tab" class="ui-tabs-selected"><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public Lists</a></li>
333         <!-- TMPL_ELSE -->
334             <li id="publicshelves_tab" class=""><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public Lists</a></li>
335         <!-- /TMPL_IF -->
336         </ul>
337         <!-- TMPL_IF NAME="showprivateshelves" -->
338                 <div id="privateshelves" class="ui-tabs-panel" style="display:block;">
339                 <!-- TMPL_ELSE -->
340                 <div id="privateshelves" class="ui-tabs-panel" style="display:none;">
341                 <!-- /TMPL_IF -->
342             <!-- TMPL_IF NAME="shelveslooppriv" -->
343                         <!-- TMPL_VAR name='pagination_bar'-->
344                         <table>
345                         <tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th>Options</th></tr>
346                 <!-- TMPL_LOOP NAME="shelveslooppriv" -->
347                     <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
348         <td><a href="shelves.pl?<!-- TMPL_IF NAME="showprivateshelves" -->display=privateshelves&amp;<!-- /TMPL_IF -->viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"  --></a></td>
349         <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
350         <td><!-- TMPL_VAR NAME="sortfield" --></td>
351         <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
352                         <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
353                         <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
354                 </td>
355         <td>
356             <!-- TMPL_IF NAME="mine" -->
357                                 <form action="merge.pl" method="get">
358                                         <input type="hidden" name="shelf" value="<!-- TMPL_VAR NAME="shelf" -->" />
359                                 </form>
360                                 <form action="shelves.pl" method="get">
361                                         <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelf" -->" />
362                                         <input type="hidden" name="op" value="modif" />
363                                         <input type="submit" class="editshelf" value="Edit" />
364                                 </form>
365                                 <form action="shelves.pl" method="post">
366                                         <input type="hidden" name="shelves" value="1" />
367                     <input type="hidden" name="display" value="privateshelves" />
368                                         <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
369                                         <!-- TMPL_IF NAME="confirm" -->
370                                         <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
371                                         <input type="submit" class="approve" value="Confirm" />
372                                         <!-- TMPL_ELSE -->
373                                         <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
374                                         <!-- /TMPL_IF -->
375                                 </form>
376                         <!-- TMPL_ELSE -->
377                                 None
378                         <!-- /TMPL_IF -->
379                 </td>
380                 </tr>
381                 <!-- /TMPL_LOOP -->
382         </table>
383             <!-- TMPL_ELSE -->
384             <p>No Private Lists.</p>
385             <!-- /TMPL_IF --><!-- /shelveslooppriv -->
386                 </div><!-- /privateshelves -->
387
388         <!-- TMPL_IF NAME="showpublicshelves" -->
389                 <div id="publicshelves" class="ui-tabs-panel" style="display:block;">
390                 <!-- TMPL_ELSE -->
391                 <div id="publicshelves" class="ui-tabs-panel" style="display:none;">
392                 <!-- /TMPL_IF -->
393         <!-- TMPL_IF NAME="shelvesloop" -->
394                 <!-- TMPL_VAR name='pagination_bar'-->
395         <table>
396         <tr><th>List Name</th><th>Contents</th><th>Sort By</th><th>Type</th><th>Options</th></tr>
397             <!-- TMPL_LOOP NAME="shelvesloop" -->
398                 <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
399                 <td><a href="shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"  --></a></td>
400                 <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
401         <td><!-- TMPL_VAR NAME="sortfield" --></td>
402         <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
403                         <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
404                         <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
405                 </td>
406         <td>
407             <!-- TMPL_IF NAME="manageshelf" -->
408                                 <form action="shelves.pl" method="get">
409                                         <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelf" -->" />
410                                         <input type="hidden" name="op" value="modif" />
411                                         <input type="submit" class="editshelf" value="Edit" />
412                                 </form>
413                                 <form action="shelves.pl" method="post">
414                                         <input type="hidden" name="shelves" value="1" />
415                                         <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
416                                         <!-- TMPL_IF NAME="confirm" -->
417                                         <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
418                                         <input type="submit" class="confirm" value="Confirm" />
419                                         <!-- TMPL_ELSE -->
420                                         <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
421                                         <!-- /TMPL_IF -->
422                                 </form>
423                         <!-- TMPL_ELSE -->
424                                 None
425                         <!-- /TMPL_IF -->
426                 </td>
427                 </tr>
428             <!-- /TMPL_LOOP -->
429         </table>
430         <!-- TMPL_ELSE -->
431                 <!-- TMPL_IF NAME="showpublicshelves" -->No Public Lists.<!-- /TMPL_IF -->
432         <!-- /TMPL_IF --><!-- /shelvesloop -->
433         </div><!-- /publicshelves -->
434                 </div>
435 <!-- /TMPL_UNLESS -->
436
437 <form id="hold_form" method="get" action="/cgi-bin/koha/reserve/request.pl">
438     <!-- Value will be set here by placeHold() -->
439     <input id="hold_form_biblios" type="hidden" name="biblionumbers" value="" />
440     <input type="hidden" name="multi_hold" value="1"/>
441 </form>
442
443 </div>
444 </div>
445 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->