Fix for Bug 3659, Add place hold option from patron checkout tab
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / circulation.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Circulation
3 <!-- TMPL_IF NAME="borrowernumber" -->
4 &rsaquo; Checking out to <!-- TMPL_VAR name="surname" -->, <!-- TMPL_VAR name="firstname" -->
5 (<!-- TMPL_VAR NAME="cardnumber" -->)
6 <!-- /TMPL_IF --></title>
7 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
8 <!-- TMPL_IF NAME="UseTablesortForCirc" --><script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script><!-- /TMPL_IF -->
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
10 <script type="text/javascript">
11 //<![CDATA[
12 if($.cookie("holdfor") != <!-- TMPL_VAR NAME="borrowernumber" -->){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }
13 <!-- TMPL_IF NAME="UseTablesortForCirc" -->$.tablesorter.addParser({
14     id: 'articles',
15     is: function(s) {return false;  },
16     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
17     type: 'text'
18 });<!-- /TMPL_IF -->
19 <!-- TMPL_UNLESS NAME="borrowernumber" --><!-- TMPL_UNLESS NAME="CGIselectborrower" -->window.onload=function(){ $('#findborrower').focus(); };<!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS -->
20          $(document).ready(function() {
21                 $('#patronlists > ul').tabs();
22                 <!-- TMPL_IF NAME="UseTablesortForCirc" -->$.tablesorter.defaults.widgets = ['zebra'];
23                 $("#issuest").tablesorter({<!-- TMPL_IF NAME="dateformat_metric" -->
24                 dateFormat: 'uk',<!-- /TMPL_IF -->
25                 headers: { 1: { sorter: 'articles' },5: { sorter: false },6:{sorter:false},7:{sorter:false},8:{sorter:false}}
26                 });
27                 $("#issuest").bind("sortEnd",function() {
28                 $("#previous").parents("tr").remove();  // 'previous checkouts' header chokes table sorter
29             });
30                 $("#holdst").tablesorter({<!-- TMPL_IF NAME="dateformat_metric" -->
31                 dateFormat: 'uk',<!-- /TMPL_IF -->
32                         sortList: [[0,0]],
33                         headers: { 1: { sorter: 'articles' }}
34                 });<!-- /TMPL_IF -->
35         <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
36         $( '#override_limit' ).click( function () {
37             if ( this.checked ) {
38                 $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
39             } else {
40                 $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
41             }
42         } ).attr( 'checked', false );
43         <!-- /TMPL_IF -->
44
45 var allcheckboxes = $(".checkboxed");
46         $("#renew_all").click(function(){
47                 $(allcheckboxes).checkCheckboxes(":input[name*=items]"); 
48                 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]");
49         });
50         $("#CheckAllitems").click(function(){
51                 $(allcheckboxes).checkCheckboxes(":input[name*=items]");
52                 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false;
53         });
54     $("#CheckNoitems").click(function(){
55                 $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false;
56         });
57         $("#CheckAllreturns").click(function(){
58                 $(allcheckboxes).checkCheckboxes(":input[name*=barcodes]");
59                 $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false;
60         });
61     $("#CheckNoreturns" ).click(function(){
62                 $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false;
63         });
64
65     <!-- TMPL_IF NAME="CAN_user_circulate_override_renewals" -->
66     <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
67     $( '#override_limit' ).click( function () {
68         if ( this.checked ) {
69            $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
70         } else {
71            $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
72         }
73     } ).attr( 'checked', false );
74     <!-- /TMPL_IF -->
75     <!-- /TMPL_IF -->
76     // Clicking the table cell checks the checkbox inside it
77         $("td").click(function(e){
78                 if(e.target.tagName.toLowerCase() == 'td'){
79            $(this).find("input:checkbox:visible").each( function() {
80                 if($(this).attr("checked")){
81                     $(this).attr("checked",'');
82                 } else {
83                     $(this).attr("checked","checked");
84                     radioCheckBox($(this));
85                 }
86            });
87         }
88         });
89     // prevent adjacent checkboxes from being checked simultaneously
90     function radioCheckBox(box){
91             box.parents("td").siblings().find("input:checkbox:visible").each(function(){
92                 if($(this).attr("checked")){
93                     $(this).attr("checked",'');
94                 }
95              });
96      }
97
98         $("#messages ul").after("<a href=\"#\" id=\"addmessage\">"+_("Add a new message")+"</a>");
99         $("#borrower_messages .cancel").click(function(){
100                 $("#add_message_form").hide();
101         $("#addmessage").show();
102         });
103         $("#addmessage").click(function (){
104         $(this).hide();
105                 $("#add_message_form").show();
106          });
107
108      $("input.radio").click(function(){
109         radioCheckBox($(this));
110      });
111  });
112
113 function validate1(date) {
114     var today = new Date();
115     if ( date < today ) {
116         return true;
117      } else {
118         return false;
119      }
120 };
121 function refocus(calendar) {
122    document.getElementById('barcode').focus();
123    calendar.hide();
124 };
125 //]]>
126 </script>
127
128 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
129 </head>
130 <body>
131
132 <!-- TMPL_INCLUDE NAME="header.inc" -->
133 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
134
135 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo;<!-- TMPL_IF NAME="borrowernumber" --> <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> &rsaquo; <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --><!-- TMPL_ELSE --> <strong>Checkouts</strong><!-- /TMPL_IF --></div>
136
137
138 <!-- TMPL_IF NAME="CGIselectborrower" -->
139 <div id="doc" class="yui-t7">
140
141    <div id="bd">
142         <div id="yui-main">
143         <div class="yui-g">
144 <!-- TMPL_ELSE -->
145 <div id="doc3" class="yui-t2">
146
147    <div id="bd">
148         <div id="yui-main">
149         <div class="yui-b">
150 <!-- /TMPL_IF -->
151
152 <!-- TMPL_IF NAME="borrowernumber" -->
153 <!-- TMPL_INCLUDE NAME="circ-toolbar.inc" -->
154 <!-- /TMPL_IF -->
155
156 <!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
157 <div style="display: none;" id="add_message_form">
158 <form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f">
159 <fieldset id="borrower_messages" class="brief">
160 <legend>Leave a message</legend>
161         <ol>
162     <li>
163             <label for="message_type">Add a message for:</label>
164           <select name="message_type" id="message_type">
165             <option value="L">Other Librarians</option>
166             <option value="B"><!-- TMPL_VAR name="firstname" --></option>
167         </select>
168     </li>
169     <!-- TMPL_IF NAME="canned_bor_notes_loop" -->
170         <li>
171                 <label for="type">Predefined notes: </label>
172                 <select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;">
173                     <option value="">Select Note</option>
174                     <!-- TMPL_LOOP NAME="canned_bor_notes_loop" -->
175                     <option value="<!-- TMPL_VAR NAME="lib" -->"><!--TMPL_VAR NAME="authorised_value" --></option>
176                     <!-- /TMPL_LOOP -->
177                 </select>
178         </li>
179     <!-- /TMPL_IF -->
180     <li>
181         <textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea>
182     </li>
183         </ol>
184     <fieldset class="action">
185         <input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a>
186     </fieldset>
187
188         <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
189         <input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branch" -->" />
190 </fieldset>
191 </form>
192 </div>
193
194 <!-- TMPL_IF NAME="dateexpiry" --><div class="dialog message">Patron's account has been renewed until <!-- TMPL_VAR NAME="dateexpiry" --></div><!-- /TMPL_IF -->
195 <!-- TMPL_IF NAME="NEEDSCONFIRMATION" -->
196 <div class="yui-g">
197
198 <div id="circ_needsconfirmation" class="dialog alert">
199 <h3>Please Confirm Checkout</h3>
200
201 <ul>
202 <!-- TMPL_IF NAME="DEBT" -->
203     <li>The patron has a debt of <!-- TMPL_VAR name="DEBT" --></li>
204 <!-- /TMPL_IF -->
205
206 <!-- TMPL_IF NAME="RENEW_ISSUE" -->
207     <li>Item <i><!-- TMPL_VAR NAME="getTitleMessageIteminfo" --></i> (<!-- TMPL_VAR NAME="getBarcodeMessageIteminfo" -->) is currently checked out to this patron.  Renew?</li>
208 <!-- /TMPL_IF -->
209
210 <!-- TMPL_IF NAME="RESERVE_WAITING" -->
211     <li>Item <i><!-- TMPL_VAR NAME="getTitleMessageIteminfo" --></i> (<!-- TMPL_VAR NAME="getBarcodeMessageIteminfo" -->) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="resborrowernumber" -->"><!-- TMPL_VAR NAME="resfirstname" --> <!-- TMPL_VAR NAME="ressurname" --></a> (<!-- TMPL_VAR NAME="rescardnumber" -->) at <!-- TMPL_VAR NAME="resbranchname" --> since <!-- TMPL_VAR NAME="reswaitingdate" --></li>
212 <!-- /TMPL_IF -->
213
214 <!-- TMPL_IF NAME="RESERVED" -->
215     <li>Item <i><!-- TMPL_VAR NAME="getTitleMessageIteminfo" --></i> (<!-- TMPL_VAR NAME="getBarcodeMessageIteminfo" -->) has been on hold for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="resborrowernumber" -->"><!-- TMPL_VAR NAME="resfirstname" --> <!-- TMPL_VAR NAME="ressurname" --></a> (<!-- TMPL_VAR NAME="rescardnumber" -->) at <!-- TMPL_VAR NAME="resbranchname" --> since <!-- TMPL_VAR NAME="resreservedate" --></li>
216 <!-- /TMPL_IF -->
217
218 <!-- TMPL_IF NAME="ISSUED_TO_ANOTHER" -->
219     <li>Item <i><!-- TMPL_VAR NAME="getTitleMessageIteminfo" --></i> (<!-- TMPL_VAR NAME="getBarcodeMessageIteminfo" -->) is checked out to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="issued_borrowernumber" -->"><!-- TMPL_VAR NAME="issued_firstname" --> <!-- TMPL_VAR NAME="issued_surname" --></a> (<!-- TMPL_VAR NAME="issued_cardnumber" -->). Check in and check out?</li>
220 <!-- /TMPL_IF -->
221
222 <!-- TMPL_IF NAME="TOO_MANY" -->
223     <li>Too many checked out. <!-- TMPL_VAR NAME="current_loan_count" --> checked out, only <!-- TMPL_VAR NAME="max_loans_allowed" --> are allowed.</li>
224 <!-- /TMPL_IF -->
225
226 <!-- TMPL_IF NAME="BORRNOTSAMEBRANCH" -->
227     <li>This patrons is from a different library (<!-- TMPL_VAR NAME="BORRNOTSAMEBRANCH" -->)</li>
228 <!-- /TMPL_IF -->
229
230 <!-- TMPL_IF NAME="PATRON_CANT" -->
231     <li>This patron can't check out this item per library circulation policy</i>
232 <!-- /TMPL_IF -->
233
234 <!-- TMPL_IF NAME="NOT_FOR_LOAN_FORCING" -->
235     <li>Item is normally not for loan.  Check out anyway?</li>
236 <!-- /TMPL_IF -->
237 <!-- TMPL_IF NAME="USERBLOCKEDOVERDUE" -->
238     <li>Patron has <!-- TMPL_VAR NAME="USERBLOCKEDOVERDUE" --> overdue item(s).  Check out anyway?</li>
239 <!-- /TMPL_IF -->
240 </ul>
241
242 <form method="post" action="/cgi-bin/koha/circ/circulation.pl">
243
244 <!-- TMPL_IF NAME="RESERVED" -->
245     <p>
246     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
247     <label for="cancelreserve">Cancel hold</label>
248     </p>
249 <!-- /TMPL_IF -->
250
251 <!-- TMPL_IF NAME="RESERVE_WAITING" -->
252     <p>
253     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
254     <label for="cancelreserve">Cancel hold</label>
255     </p>
256 <!-- /TMPL_IF -->
257
258     <input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" />
259     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
260     <input type="hidden" name="issueconfirmed" value="1" />
261     <!-- TMPL_IF NAME="DEBT" --><input type="hidden" name="debt_confirmed" value="1" /><!-- /TMPL_IF -->
262     <!-- TMPL_IF NAME="INVALID_DATE" -->
263     <p>
264     <input type="text" size="10" id="duedatespec" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
265     <label for="duedatespec">Due Date</label>
266     </p>
267     <!-- TMPL_ELSE -->
268     <input type="hidden" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
269     <!-- /TMPL_IF -->
270     <input type="hidden" name="stickyduedate" value="<!-- TMPL_VAR NAME="stickyduedate" -->" />
271     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
272     <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
273 </form>
274
275 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
276     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
277     <input type="hidden" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
278     <input type="hidden" name="stickyduedate" value="<!-- TMPL_VAR NAME="stickyduedate" -->" />
279     <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
280 </form>
281
282 </div></div>
283 <!-- /TMPL_IF --> <!-- NEEDSCONFIRMATION -->
284
285         <!-- TMPL_IF NAME="IMPOSSIBLE" -->
286
287 <!-- TMPL_IF NAME="soundon" -->
288 <audio src="/intranet-tmpl/prog/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
289 <!-- /TMPL_IF -->        
290
291 <div class="yui-g">
292 <div id="circ_impossible" class="dialog alert">
293 <!-- RESULT OF ISSUING REQUEST -->
294         <ul>
295         <!-- TMPL_IF NAME="STATS" -->
296             <li>Local Use Recorded</li>
297         <!-- /TMPL_IF -->
298
299         <!-- TMPL_IF NAME="INVALID_DATE" -->
300             <li>The due date &quot;<!-- TMPL_VAR NAME="INVALID_DATE" -->&quot; is invalid</li>
301         <!-- /TMPL_IF -->
302
303         <!-- TMPL_IF NAME="UNKNOWN_BARCODE" -->
304             <li>The barcode was not found <!-- TMPL_VAR NAME="barcode" --></li>
305         <!-- /TMPL_IF -->
306
307         <!-- TMPL_IF NAME="NOT_FOR_LOAN" -->
308             <li>Item not for loan</li>
309         <!-- /TMPL_IF -->
310
311         <!-- TMPL_IF NAME="WTHDRAWN" -->
312             <li>Item has been withdrawn</li>
313         <!-- /TMPL_IF -->
314
315         <!-- TMPL_IF NAME="RESTRICTED" -->
316             <li>Item is restricted</li>
317         <!-- /TMPL_IF -->
318
319         <!-- TMPL_IF NAME="GNA" -->
320             <li>Patron's address is in doubt</li>
321         <!-- /TMPL_IF -->
322
323         <!-- TMPL_IF NAME="CARD_LOST" -->
324             <li>Patron's card is lost</li>
325         <!-- /TMPL_IF -->
326
327         <!-- TMPL_IF NAME="DEBARRED" -->
328             <li>Patron is restricted</li>
329         <!-- /TMPL_IF -->
330
331         <!-- TMPL_IF NAME="NO_MORE_RENEWALS" -->
332             <li>No more renewals possible</li>
333         <!-- /TMPL_IF -->
334
335         <!-- TMPL_IF NAME="EXPIRED" -->
336             <li>Patron's card is expired</li>
337         <!-- /TMPL_IF -->
338
339         <!-- TMPL_IF NAME="ITEMNOTSAMEBRANCH" -->
340             <li>This item belongs to <!-- TMPL_VAR NAME="itemhomebranch" --> and cannot be issued from this location.</li>
341         <!-- /TMPL_IF -->
342
343         <!-- TMPL_IF NAME="USERBLOCKEDREMAINING" -->
344             <li>Patron has had overdue items and is blocked for <!-- TMPL_VAR NAME="USERBLOCKEDREMAINING" --> day(s).</li>
345         <!-- /TMPL_IF -->
346         
347             <!-- TMPL_IF NAME="USERBLOCKEDOVERDUE" -->
348             <li>Patron has <!-- TMPL_VAR NAME="USERBLOCKEDOVERDUE" --> overdue item(s).  Check out anyway?</li>
349         <!-- /TMPL_IF -->
350         </ul>
351
352     <!-- TMPL_IF NAME="memberofinstution" -->
353     <p><!-- TMPL_VAR NAME="CGIorganisations" --></p>
354     <!-- /TMPL_IF -->
355
356 </div></div>
357 <!-- TMPL_ELSE -->
358 <!-- TMPL_IF NAME="soundon" -->
359 <audio src="/intranet-tmpl/prog/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
360 <!-- /TMPL_IF -->
361     <!--/TMPL_IF --> <!-- /impossible -->
362
363 <!-- TMPL_IF NAME="issued" -->
364 <p>Item Checked out</p>
365 <!-- /TMPL_IF -->
366
367 <!-- TMPL_IF NAME="message" -->
368 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
369 <h4>
370 No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
371 </h4>
372 <!-- /TMPL_IF -->
373
374
375 <!-- TMPL_IF NAME="CGIselectborrower" -->
376 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
377
378 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform">
379 <fieldset id="circ_circulation_selectborrower" class="brief">
380     <legend>Patron selection</legend>
381
382     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
383     <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
384     <input type="hidden" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
385     <input type="hidden" name="stickyduedate" value="<!-- TMPL_VAR NAME="stickyduedate" -->" />
386
387 <ol>    <li>
388     <label for="borrowernumber">Select a patron: </label>
389     <!-- TMPL_VAR name="CGIselectborrower" -->
390     </li>
391 </ol>
392 <p><input type="submit" value="Select" /></p>
393 </fieldset>
394 </form>
395 <!-- TMPL_ELSE --> <!-- CGIselectborrower -->
396
397 <!-- BARCODE ENTRY -->
398
399 <!-- TMPL_IF NAME="borrowernumber" -->
400 <div class="yui-g">
401 <!-- TMPL_UNLESS NAME="noissues" -->
402 <!-- TMPL_IF NAME="flagged" -->
403 <div class="yui-u first">
404 <!-- TMPL_ELSE -->
405 <div>
406
407 <!-- /TMPL_IF -->
408
409
410 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform">
411 <fieldset id="circ_circulation_issue">
412     <!-- TMPL_IF NAME="DisplayClearScreenButton" -->
413             <input type=button value="Clear Screen" onClick="window.location = '/cgi-bin/koha/circ/circulation.pl'">
414     <!-- /TMPL_IF -->
415
416     <label for="barcode">Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->) </label>
417         <div class="hint">Enter item barcode:</div>
418
419     <!-- TMPL_IF NAME="NEEDSCONFIRMATION" -->
420             <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
421     <!-- TMPL_ELSE -->
422             <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
423     <!-- /TMPL_IF -->
424     <input type="submit" value="Check Out" />
425
426     <!-- TMPL_IF NAME="SpecifyDueDate" --><div class="date-select">
427         <div class="hint">Specify Due Date <!-- TMPL_INCLUDE NAME="date-format.inc" -->: </div>
428                 <!-- TMPL_IF NAME="duedatespec" --><input type="text" size="10" id="duedatespec" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" /><!-- TMPL_ELSE --><input type="text" size="10" id="duedatespec" name="duedatespec" value="" />
429 <!-- /TMPL_IF -->
430                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar"  border="0" id="CalendarDueDate" style="cursor: pointer;" />
431              <script language="JavaScript" type="text/javascript">
432                          //<![CDATA[
433                    function validate1(date) {
434                          var today = new Date();
435                          if ( date < today ) {
436                              return true;
437                           } else {
438                              return false;
439                           }
440                      };
441                      function refocus(calendar) {
442                         $('#barcode').focus();
443                         calendar.hide();
444                      };
445                                 //#TODO - ADD syspref (AllowPostDatedCheckouts).
446                      Calendar.setup(
447                           {
448                              inputField : "duedatespec",
449                              ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
450                              button : "CalendarDueDate",
451 //                           disableFunc : validate1,
452 //                           dateStatusFunc : validate1,
453                              onClose : refocus
454                            }
455                         );
456                                 //]]>
457                  </script>
458
459           <label for="stickyduedate"> Remember for Session:</label>
460 <!-- TMPL_IF NAME="stickyduedate" -->
461 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
462 <!-- TMPL_ELSE -->
463 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
464 <!-- /TMPL_IF -->
465           <input type="button" class="action" id="cleardate" value="Clear" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" />
466 </div><!-- /TMPL_IF -->
467           <input type="hidden" name="borrowernumber" id="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
468           <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
469           <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
470           <input type="hidden" name="print" value="maybe" />
471           <input type="hidden" name="debt_confirmed" value="<!-- TMPL_VAR NAME="debt_confirmed" -->" />
472                 <!-- TMPL_IF NAME="CHARGES" -->
473                         <input type="hidden" name="charges" value="yes" />
474                         <input type="hidden" name="oldamount" value="<!-- TMPL_VAR NAME="amountold" -->" />
475                 <!-- /TMPL_IF -->
476 </fieldset>
477 </form></div><!-- /TMPL_UNLESS --><!-- /unless noissues -->
478
479 <!-- TMPL_IF NAME="noissues" --><div><!-- TMPL_ELSE --><div class="yui-u"><!-- /TMPL_IF -->
480
481     <!-- TMPL_IF NAME="flagged" -->
482                 <!-- TMPL_IF NAME="noissues" -->
483                  <h4>Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</h4>
484         <div id="circmessages" class="circmessage warning">
485                 <!-- TMPL_ELSE -->
486         <div id="circmessages" class="circmessage attention">
487                 <!-- /TMPL_IF -->
488
489                 <h3><!-- TMPL_IF NAME="noissues" -->
490                         Cannot check out!
491                 <!-- TMPL_ELSE -->Attention:<!-- /TMPL_IF --></h3>
492                 <ul>
493
494                         <!-- TMPL_IF NAME = "warndeparture" -->
495                         <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
496                         Patron's card expires on <!-- TMPL_VAR NAME="expiry" --> <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;cardnumber=<!-- TMPL_VAR NAME="cardnumber" -->&amp;destination=circ&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;categorycode=<!-- TMPL_VAR NAME="categorycode" -->">Edit Details</a>
497
498                         </li>
499                         <!-- /TMPL_IF -->
500
501                         <!-- TMPL_IF NAME="returnbeforeexpiry" -->
502                          <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
503                          expiry date is before the date due, the date due will be set to the expiry date
504                          </li>
505                         <!-- /TMPL_IF -->
506
507                         <!-- TMPL_IF NAME = "expired" -->
508                         <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
509                         Patron's card expired on <!-- TMPL_VAR NAME="expiry" --> <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;cardnumber=<!-- TMPL_VAR NAME="cardnumber" -->&amp;destination=circ&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;categorycode=<!-- TMPL_VAR NAME="categorycode" -->">Edit Details</a>
510
511                         </li>
512                         <!-- /TMPL_IF -->
513
514             <!-- TMPL_IF NAME="gna" -->
515                         <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
516                         <!-- /TMPL_IF -->
517
518             <!-- TMPL_IF NAME="lost" -->
519                         <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
520                         <!-- /TMPL_IF -->
521
522             <!-- TMPL_IF NAME="dbarred" --><li class="blocker">
523                <span class="circ-hlt"> Restricted:</span> Patron's account is restricted <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;cardnumber=<!-- TMPL_VAR NAME="cardnumber" -->&amp;destination=circ&amp;status=0">Lift restriction</a>
524 </li><!-- /TMPL_IF -->
525
526                 <!-- TMPL_IF name="odues" --><li><!-- TMPL_IF name="nonreturns" --><span class="circ-hlt">Overdues:</span> Patron has <span class="circ-hlt">ITEMS OVERDUE</span>. See highlighted items <a href="#checkouts">below</a><!-- /TMPL_IF --></li>
527             <!-- /TMPL_IF -->
528
529                 <!-- TMPL_IF NAME="charges" -->
530                             <li>
531             <span class="circ-hlt">Fines:</span> Patron has  <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Outstanding fines<!-- TMPL_IF NAME="chargesamount" --> of <!-- TMPL_VAR NAME="chargesamount" --><!-- /TMPL_IF --></a>.
532                 <!-- TMPL_IF NAME="charges_is_blocker" -->
533                     Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
534                 <!-- /TMPL_IF -->
535             Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Payment</a></li>
536                         <!-- /TMPL_IF -->
537
538                 <!-- TMPL_IF NAME="credits" -->
539                         <li>
540                 <span class="circ-hlt">Credits:</span> Patron has a credit<!-- TMPL_IF NAME="creditsamount" --> of <!-- TMPL_VAR name="creditsamount" --><!-- /TMPL_IF -->
541             </li>
542                         <!-- /TMPL_IF -->
543
544
545
546                         </ul>
547         </div>
548
549                         <!-- TMPL_IF NAME="WaitingReserveLoop" -->
550                         <div id="holdswaiting" class="circmessage">
551                     <h4>Holds waiting:</h4>
552                                 <!-- TMPL_LOOP NAME="WaitingReserveLoop" -->
553                                     <ul>
554                                         <li> <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a> (<!-- TMPL_VAR NAME="itemtype"-->), <!-- TMPL_IF NAME="author" -->by <!-- TMPL_VAR NAME="author"--><!-- /TMPL_IF --> Hold placed on <!-- TMPL_VAR NAME="reservedate"-->.
555                                     <!-- TMPL_IF NAME="waitingat" -->
556                                         <br /><!-- TMPL_IF NAME="waitinghere" --><strong class="waitinghere"><!-- TMPL_ELSE --><strong><!-- /TMPL_IF -->Waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
557                                     <!-- /TMPL_IF -->
558                                         </li>
559                                     </ul>
560                             <!-- /TMPL_LOOP -->
561                         </div>
562                         <!-- /If WaitingReserveLoop --><!-- /TMPL_IF -->
563         <!-- TMPL_IF name="notes" -->
564                         <div id="circnotes" class="circmessage">
565                         <h4>Notes:</h4>
566             <p><span class="circ-hlt"><!-- TMPL_VAR name="notesmsg" --></span></p>
567                         </div>
568
569
570     <!-- /If notes --><!-- /TMPL_IF -->
571
572         <div id="messages" class="circmessage">
573                 <h4>Messages:</h4>
574                 <ul>
575                         <!--TMPL_LOOP NAME="lib_messages_loop" -->
576                                 <li>
577                                         <span class="circ-hlt">
578                                                 <!--TMPL_VAR NAME="message_date_formatted"-->
579                                                 <!--TMPL_VAR NAME="branchcode"-->
580                                                 <i>"<!--TMPL_VAR NAME="message"-->"</i>
581                                         </span>
582                                         <!-- TMPL_IF NAME="can_delete" -->
583                                                 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=<!--TMPL_VAR NAME="message_id" -->&amp;borrowernumber=<!--TMPL_VAR NAME="borrowernumber" -->">[Delete]</a>
584                                         <!-- TMPL_ELSE -->
585                                                 <!-- TMPL_IF NAME="all_messages_del" -->
586                                                         <a href="/cgi-bin/koha/circ/del_message.pl?message_id=<!--TMPL_VAR NAME="message_id" -->&amp;borrowernumber=<!--TMPL_VAR NAME="borrowernumber" -->">[Delete]</a>
587                                                 <!-- /TMPL_IF -->
588                                         <!-- /TMPL_IF -->
589                                 </li>
590                         <!-- /TMPL_LOOP -->
591                         <!--TMPL_LOOP NAME="bor_messages_loop" -->
592                                 <li><span class=""><!--TMPL_VAR NAME="message_date_formatted"--> <!--TMPL_VAR NAME="branchcode"--> <i>"<!--TMPL_VAR NAME="message"-->"</i></span> <!-- TMPL_IF NAME="can_delete" --><a href="/cgi-bin/koha/circ/del_message.pl?message_id=<!--TMPL_VAR NAME="message_id" -->&amp;borrowernumber=<!--TMPL_VAR NAME="borrowernumber" -->">[Delete]</a><!-- /TMPL_IF --></li>
593                         <!-- /TMPL_LOOP -->
594
595                 </ul>
596         </div>  
597         
598      <!-- /If flagged --><!-- /TMPL_IF -->
599
600         
601
602 </div>
603 </div>
604
605 <div class="yui-g"><div id="patronlists" class="toptabs">
606
607 <ul>
608 <li>    <!--TMPL_IF NAME="issuecount"-->
609             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts"><!-- TMPL_VAR NAME="issuecount"--> Checkout(s)</a>
610     <!-- TMPL_ELSE -->
611             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts">0 Checkouts</a>
612     <!-- /TMPL_IF --></li>
613 <li><!-- TMPL_IF NAME="countreserv"-->
614             <a href="/cgi-bin/koha/circ/circulation.pl#reserves"><!--TMPL_VAR NAME="countreserv"--> Hold(s)</a>
615     <!-- TMPL_ELSE -->
616             <a href="/cgi-bin/koha/circ/circulation.pl#reserves">0 Holds</a>
617     <!-- /TMPL_IF --></li>
618
619 </ul>
620
621 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
622 <div id="checkouts">
623 <!--TMPL_IF NAME="issuecount"-->
624     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post" class="checkboxed">
625     <input type="hidden" value="circ" name="destination" />
626     <input type="hidden" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
627     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
628     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
629         <table id="issuest">
630     <thead><tr>
631         <th scope="col">Due date</th>
632         <th scope="col">Title</th>
633         <th scope="col">Item Type</th>
634         <th scope="col">Checked out on</th> 
635         <th scope="col">Call no</th>
636         <th scope="col">Charge</th>
637         <th scope="col">Price</th>
638         <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th>
639         <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
640     </tr>
641 <!-- TMPL_IF NAME="todayissues" --></thead>
642 <!-- TMPL_INCLUDE NAME="checkouts-table-footer.inc" -->
643         <tbody>
644
645     <!-- TMPL_LOOP NAME="todayissues" -->
646     <!-- TMPL_IF NAME="__odd__" -->
647     <tr>
648     <!-- TMPL_ELSE -->
649     <tr class="highlight">
650     <!-- /TMPL_IF -->
651         <td><!-- TMPL_VAR NAME="dd" --></td>
652         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra"><strong><!-- TMPL_VAR NAME="title" escape="html" --></strong></a><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="itemnotes" -->- <span class="circ-hlt"><!-- TMPL_VAR name="itemnotes" --></span><!-- /TMPL_IF --> <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->#item<!-- TMPL_VAR NAME="itemnumber" -->"><!-- TMPL_VAR NAME="barcode" --></a></td>
653         <td><!-- TMPL_UNLESS NAME="noItemTypeImages" --> <!-- TMPL_IF NAME="itemtype_image" --><img src="<!-- TMPL_VAR NAME="itemtype_image" -->" alt="" /><!-- /TMPL_IF --><!-- /TMPL_UNLESS --><!-- TMPL_VAR NAME="itemtype" --></td>
654         <td><!-- TMPL_VAR NAME="checkoutdate" --></td>
655         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
656             <td><!-- TMPL_VAR NAME="charge" --></td>
657             <td><!-- TMPL_VAR NAME="replacementprice" --></td>
658       <!-- TMPL_IF NAME="renew_failed" -->
659             <td class="problem">Renewal Failed</td>
660       <!-- TMPL_ELSE -->
661         <td><span style="padding: 0 1em;"><!-- TMPL_IF NAME="renewals" --><!-- TMPL_VAR NAME="renewals" --><!-- TMPL_ELSE -->0<!-- /TMPL_IF --></span>
662         <!-- TMPL_IF NAME="can_renew" -->
663         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
664         <!-- TMPL_IF NAME="od" -->
665             <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
666         <!-- TMPL_ELSE -->
667             <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
668         <!-- /TMPL_IF -->
669         <!-- TMPL_ELSE -->
670             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
671                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
672                 <!-- TMPL_IF NAME="od" -->
673                     <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
674                 <!-- TMPL_ELSE -->
675                     <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
676                 <!-- /TMPL_IF -->
677                 </span>
678                 <span class="renewals-disabled">
679             <!-- /TMPL_IF -->
680                 <!-- TMPL_IF NAME="renew_error_on_reserve" -->
681                         On Hold
682                 <!-- /TMPL_IF -->
683                 <!-- TMPL_IF NAME="renew_error_too_many" -->
684                         Not Renewable
685                 <!-- /TMPL_IF -->
686             <!-- TMPL_IF NAME="can_confirm" -->
687                 </span>
688             <!-- /TMPL_IF -->
689         <!-- /TMPL_IF -->
690         </td>
691         <!-- /TMPL_IF -->
692   <!-- TMPL_IF NAME="return_failed" -->
693             <td class="problem">Checkin Failed</td>
694       <!--TMPL_ELSE-->
695             <td><input type="checkbox" class="radio" name="barcodes[]"  value="<!-- TMPL_VAR NAME="barcode" -->" />
696                 <input type="checkbox" name="all_barcodes[]" value="<!-- TMPL_VAR NAME="barcode" -->" checked="checked" style="display: none;" />
697             </td>
698       <!-- /TMPL_IF -->
699     </tr>
700     <!-- /TMPL_LOOP --> <!-- /loop todayissues -->
701     <!-- /if todayissues --><!-- /TMPL_IF -->
702 <!-- TMPL_IF NAME="previssues" -->
703 <!-- TMPL_IF NAME="todayissues" --><tr><th colspan="10"><a name="previous" id="previous"></a>Previous checkouts</th></tr><!-- TMPL_ELSE -->
704 <tr><th class="{sorter: false}" colspan="10"><a name="previous" id="previous"></a>Previous checkouts</th></tr></thead>
705 <!-- TMPL_INCLUDE NAME="checkouts-table-footer.inc" -->
706         <tbody>
707 <!-- /TMPL_IF -->
708     <!-- TMPL_LOOP NAME="previssues" -->
709     <!-- TMPL_IF NAME="__odd__" -->
710         <tr>
711     <!-- TMPL_ELSE -->
712         <tr class="highlight">
713     <!-- /TMPL_IF -->
714         <!-- TMPL_IF NAME="od" --><td class="od"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
715         <!-- TMPL_VAR NAME="dd" -->
716         </td>
717         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra"><strong><!-- TMPL_VAR NAME="title" escape="html" --></strong></a><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="itemnotes" -->- <!-- TMPL_VAR name="itemnotes" --><!-- /TMPL_IF --> <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->#item<!-- TMPL_VAR NAME="itemnumber" -->"><!-- TMPL_VAR NAME="barcode" --></a></td>
718         <td>
719             <!-- TMPL_VAR NAME="itemtype" -->
720         </td>
721         <td><!-- TMPL_VAR NAME="displaydate" --></td>
722         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
723         <td><!-- TMPL_VAR NAME="charge" --></td>
724         <td><!-- TMPL_VAR NAME="replacementprice" --></td>
725       <!-- TMPL_IF NAME="renew_failed" -->
726             <td class="problem">Renewal Failed</td>
727       <!-- TMPL_ELSE -->
728         <td><span style="padding: 0 1em;"><!-- TMPL_IF NAME="renewals" --><!-- TMPL_VAR NAME="renewals" --><!-- TMPL_ELSE -->0<!-- /TMPL_IF --></span>
729         <!-- TMPL_IF NAME="can_renew" -->
730         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
731         <!-- TMPL_IF NAME="od" -->
732             <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
733         <!-- TMPL_ELSE -->
734             <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
735         <!-- /TMPL_IF -->
736         <!-- TMPL_ELSE -->
737             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
738                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
739                 <!-- TMPL_IF NAME="od" -->
740                     <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
741                 <!-- TMPL_ELSE -->
742                     <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
743                 <!-- /TMPL_IF -->
744                 </span>
745                 <span class="renewals-disabled">
746             <!-- /TMPL_IF -->
747                 <!-- TMPL_IF NAME="renew_error_on_reserve" -->
748                         On Hold
749                 <!-- /TMPL_IF -->
750                 <!-- TMPL_IF NAME="renew_error_too_many" -->
751                         Not Renewable
752                 <!-- /TMPL_IF -->
753             <!-- TMPL_IF NAME="can_confirm" -->
754                 </span>
755             <!-- /TMPL_IF -->
756         <!-- /TMPL_IF -->
757         </td>
758         <!-- /TMPL_IF -->
759                   <!-- TMPL_IF NAME="return_failed" -->
760             <td class="problem">Checkin Failed</td>
761         <!--TMPL_ELSE-->
762             <td><input type="checkbox" class="radio" name="barcodes[]"  value="<!-- TMPL_VAR NAME="barcode" -->" />
763                 <input type="checkbox" name="all_barcodes[]" value="<!-- TMPL_VAR NAME="barcode" -->" checked="checked" style="display: none;" />
764             </td>
765       <!-- /TMPL_IF -->
766     </tr>
767     <!-- /loop previssues --><!-- /TMPL_LOOP -->
768 <!--/if previssues --><!-- /TMPL_IF -->
769       </tbody>
770     </table>
771     <!--TMPL_IF NAME="issuecount"-->
772     <fieldset class="action">
773         <!-- TMPL_IF NAME="CAN_user_circulate_override_renewals" -->
774         <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
775         <label for="override_limit">Override Renewal Limit:</label>
776         <input type="checkbox" name="override_limit" id="override_limit" value="1" />
777         <!-- /TMPL_IF -->
778         <!-- /TMPL_IF -->
779         <input type="submit" name="renew_checked" value="Renew or Return checked items" />
780         <input type="submit" id="renew_all" name="renew_all" value="Renew all" />
781         </fieldset>
782     <!-- /TMPL_IF -->
783 </form>
784 <!-- TMPL_ELSE -->
785 <p>Patron has nothing checked out.</p>
786 <!-- /TMPL_IF -->
787 </div>
788
789
790 <div id="reserves">
791 <!-- TMPL_IF NAME="reservloop" -->
792 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
793         <input type="hidden" name="from" value="circ" />
794     <table id="holdst">
795         <thead><tr>
796             <th>Hold date</th>
797             <th>Title</th>
798             <th>Call Number</th>
799                         <th>Barcode</th>
800             <th>Priority</th>
801                         <th>Delete?</th>
802         </tr></thead>
803                 <tbody>
804         <!-- TMPL_LOOP NAME="reservloop" -->
805         <tr class="<!-- TMPL_VAR NAME="color" -->">
806                     <td><!-- TMPL_VAR NAME="reservedate" --></td>
807                     <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><strong><!-- TMPL_VAR NAME="title" escape="html" --></strong></a><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --></td>
808                     <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
809                                         <td><em><!-- TMPL_IF name="barcodereserv" -->Item <!-- TMPL_VAR NAME="barcodereserv" -->
810                         <!-- /TMPL_IF --><!-- TMPL_IF name="waiting" --> <strong>waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
811                         <!-- /TMPL_IF -->
812                         <!-- TMPL_IF name="transfered" --> <strong>in transit</strong> from
813                         <!-- TMPL_VAR NAME="frombranch" --> since <!-- TMPL_VAR NAME="datesent" -->
814                         <!-- /TMPL_IF -->
815                         <!-- TMPL_IF name="nottransfered" --> hasn't been transferred yet from <!-- TMPL_VAR NAME="nottransferedby" --></i>
816                         <!-- /TMPL_IF --></em></td>
817                     <td>
818                         <!-- TMPL_IF NAME="waitingposition" --><b> <!-- TMPL_VAR NAME="waitingposition" --> </b><!-- /TMPL_IF -->
819                     </td>
820                                 <td><select name="rank-request">
821                     <option value="n">No</option>
822                     <option value="del">Yes</option>
823                 </select>
824                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" />
825                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR name="borrowernumber" -->" />
826                 <input type="hidden" name="reservenumber" value="<!-- TMPL_VAR name="reservenumber" -->" />
827             </td>
828             </tr>
829         <!-- /TMPL_LOOP --></tbody>
830     </table>
831                 <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel Marked Requests" /></fieldset>
832     </form>
833         <!-- TMPL_ELSE -->
834         <p>Patron has nothing on hold.</p>
835 <!-- /TMPL_IF -->
836 </div> <!-- reservesloop -->
837
838 <!-- /TMPL_IF --> <!-- borrowernumber -->
839 </div></div>
840 <!--/TMPL_IF -->
841
842
843
844 </div>
845 </div>
846 <!-- TMPL_UNLESS NAME="CGIselectborrower" --><!-- TMPL_IF NAME="borrowernumber" --><div class="yui-b">
847 <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
848 </div><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
849 </div>
850 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->