Merge remote branch 'kc/new/enh/bug_3659' into kcmaster
[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 NAME="fast_cataloging" -->
306                 <!-- TMPL_IF NAME="CAN_user_editcatalogue_fast_cataloging" -->
307                     <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA">Fast cataloging</a></li>
308                 <!-- /TMPL_IF -->
309             <!-- /TMPL_IF -->
310         <!-- /TMPL_IF -->
311
312         <!-- TMPL_IF NAME="NOT_FOR_LOAN" -->
313             <li>Item not for loan</li>
314         <!-- /TMPL_IF -->
315
316         <!-- TMPL_IF NAME="WTHDRAWN" -->
317             <li>Item has been withdrawn</li>
318         <!-- /TMPL_IF -->
319
320         <!-- TMPL_IF NAME="RESTRICTED" -->
321             <li>Item is restricted</li>
322         <!-- /TMPL_IF -->
323
324         <!-- TMPL_IF NAME="GNA" -->
325             <li>Patron's address is in doubt</li>
326         <!-- /TMPL_IF -->
327
328         <!-- TMPL_IF NAME="CARD_LOST" -->
329             <li>Patron's card is lost</li>
330         <!-- /TMPL_IF -->
331
332         <!-- TMPL_IF NAME="DEBARRED" -->
333             <li>Patron is restricted</li>
334         <!-- /TMPL_IF -->
335
336         <!-- TMPL_IF NAME="NO_MORE_RENEWALS" -->
337             <li>No more renewals possible</li>
338         <!-- /TMPL_IF -->
339
340         <!-- TMPL_IF NAME="EXPIRED" -->
341             <li>Patron's card is expired</li>
342         <!-- /TMPL_IF -->
343
344         <!-- TMPL_IF NAME="ITEMNOTSAMEBRANCH" -->
345             <li>This item belongs to <!-- TMPL_VAR NAME="itemhomebranch" --> and cannot be issued from this location.</li>
346         <!-- /TMPL_IF -->
347
348         <!-- TMPL_IF NAME="USERBLOCKEDREMAINING" -->
349             <li>Patron has had overdue items and is blocked for <!-- TMPL_VAR NAME="USERBLOCKEDREMAINING" --> day(s).</li>
350         <!-- /TMPL_IF -->
351         
352             <!-- TMPL_IF NAME="USERBLOCKEDOVERDUE" -->
353             <li>Patron has <!-- TMPL_VAR NAME="USERBLOCKEDOVERDUE" --> overdue item(s).  Check out anyway?</li>
354         <!-- /TMPL_IF -->
355         </ul>
356
357     <!-- TMPL_IF NAME="memberofinstution" -->
358     <p><!-- TMPL_VAR NAME="CGIorganisations" --></p>
359     <!-- /TMPL_IF -->
360
361 </div></div>
362 <!-- TMPL_ELSE -->
363 <!-- TMPL_IF NAME="soundon" -->
364 <audio src="/intranet-tmpl/prog/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
365 <!-- /TMPL_IF -->
366     <!--/TMPL_IF --> <!-- /impossible -->
367
368 <!-- TMPL_IF NAME="issued" -->
369 <p>Item Checked out</p>
370 <!-- /TMPL_IF -->
371
372 <!-- TMPL_IF NAME="message" -->
373 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
374 <h4>
375 No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
376 </h4>
377 <!-- /TMPL_IF -->
378
379
380 <!-- TMPL_IF NAME="CGIselectborrower" -->
381 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
382
383 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform">
384 <fieldset id="circ_circulation_selectborrower" class="brief">
385     <legend>Patron selection</legend>
386
387     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
388     <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
389     <input type="hidden" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
390     <input type="hidden" name="stickyduedate" value="<!-- TMPL_VAR NAME="stickyduedate" -->" />
391
392 <ol>    <li>
393     <label for="borrowernumber">Select a patron: </label>
394     <!-- TMPL_VAR name="CGIselectborrower" -->
395     </li>
396 </ol>
397 <p><input type="submit" value="Select" /></p>
398 </fieldset>
399 </form>
400 <!-- TMPL_ELSE --> <!-- CGIselectborrower -->
401
402 <!-- BARCODE ENTRY -->
403
404 <!-- TMPL_IF NAME="borrowernumber" -->
405 <div class="yui-g">
406 <!-- TMPL_UNLESS NAME="noissues" -->
407 <!-- TMPL_IF NAME="flagged" -->
408 <div class="yui-u first">
409 <!-- TMPL_ELSE -->
410 <div>
411
412 <!-- /TMPL_IF -->
413
414
415 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform">
416 <fieldset id="circ_circulation_issue">
417     <!-- TMPL_IF NAME="DisplayClearScreenButton" -->
418             <input type=button value="Clear Screen" onClick="window.location = '/cgi-bin/koha/circ/circulation.pl'">
419     <!-- /TMPL_IF -->
420
421     <label for="barcode">Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->) </label>
422         <div class="hint">Enter item barcode:</div>
423
424     <!-- TMPL_IF NAME="NEEDSCONFIRMATION" -->
425             <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
426     <!-- TMPL_ELSE -->
427             <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
428     <!-- /TMPL_IF -->
429     <input type="submit" value="Check Out" />
430
431     <!-- TMPL_IF NAME="SpecifyDueDate" --><div class="date-select">
432         <div class="hint">Specify Due Date <!-- TMPL_INCLUDE NAME="date-format.inc" -->: </div>
433                 <!-- 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="" />
434 <!-- /TMPL_IF -->
435                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar"  border="0" id="CalendarDueDate" style="cursor: pointer;" />
436              <script language="JavaScript" type="text/javascript">
437                          //<![CDATA[
438                    function validate1(date) {
439                          var today = new Date();
440                          if ( date < today ) {
441                              return true;
442                           } else {
443                              return false;
444                           }
445                      };
446                      function refocus(calendar) {
447                         $('#barcode').focus();
448                         calendar.hide();
449                      };
450                                 //#TODO - ADD syspref (AllowPostDatedCheckouts).
451                      Calendar.setup(
452                           {
453                              inputField : "duedatespec",
454                              ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
455                              button : "CalendarDueDate",
456 //                           disableFunc : validate1,
457 //                           dateStatusFunc : validate1,
458                              onClose : refocus
459                            }
460                         );
461                                 //]]>
462                  </script>
463
464           <label for="stickyduedate"> Remember for Session:</label>
465 <!-- TMPL_IF NAME="stickyduedate" -->
466 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
467 <!-- TMPL_ELSE -->
468 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
469 <!-- /TMPL_IF -->
470           <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;" />
471 </div><!-- /TMPL_IF -->
472           <input type="hidden" name="borrowernumber" id="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
473           <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
474           <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
475           <input type="hidden" name="print" value="maybe" />
476           <input type="hidden" name="debt_confirmed" value="<!-- TMPL_VAR NAME="debt_confirmed" -->" />
477                 <!-- TMPL_IF NAME="CHARGES" -->
478                         <input type="hidden" name="charges" value="yes" />
479                         <input type="hidden" name="oldamount" value="<!-- TMPL_VAR NAME="amountold" -->" />
480                 <!-- /TMPL_IF -->
481 </fieldset>
482 </form></div><!-- /TMPL_UNLESS --><!-- /unless noissues -->
483
484 <!-- TMPL_IF NAME="noissues" --><div><!-- TMPL_ELSE --><div class="yui-u"><!-- /TMPL_IF -->
485
486     <!-- TMPL_IF NAME="flagged" -->
487                 <!-- TMPL_IF NAME="noissues" -->
488                  <h4>Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</h4>
489         <div id="circmessages" class="circmessage warning">
490                 <!-- TMPL_ELSE -->
491         <div id="circmessages" class="circmessage attention">
492                 <!-- /TMPL_IF -->
493
494                 <h3><!-- TMPL_IF NAME="noissues" -->
495                         Cannot check out!
496                 <!-- TMPL_ELSE -->Attention:<!-- /TMPL_IF --></h3>
497                 <ul>
498
499                         <!-- TMPL_IF NAME = "warndeparture" -->
500                         <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
501                         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>
502
503                         </li>
504                         <!-- /TMPL_IF -->
505
506                         <!-- TMPL_IF NAME="returnbeforeexpiry" -->
507                          <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
508                          expiry date is before the date due, the date due will be set to the expiry date
509                          </li>
510                         <!-- /TMPL_IF -->
511
512                         <!-- TMPL_IF NAME = "expired" -->
513                         <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
514                         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>
515
516                         </li>
517                         <!-- /TMPL_IF -->
518
519             <!-- TMPL_IF NAME="gna" -->
520                         <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
521                         <!-- /TMPL_IF -->
522
523             <!-- TMPL_IF NAME="lost" -->
524                         <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
525                         <!-- /TMPL_IF -->
526
527             <!-- TMPL_IF NAME="dbarred" --><li class="blocker">
528                <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>
529 </li><!-- /TMPL_IF -->
530
531                 <!-- 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>
532             <!-- /TMPL_IF -->
533
534                 <!-- TMPL_IF NAME="charges" -->
535                             <li>
536             <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>.
537                 <!-- TMPL_IF NAME="charges_is_blocker" -->
538                     Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
539                 <!-- /TMPL_IF -->
540             Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Payment</a></li>
541                         <!-- /TMPL_IF -->
542
543                 <!-- TMPL_IF NAME="credits" -->
544                         <li>
545                 <span class="circ-hlt">Credits:</span> Patron has a credit<!-- TMPL_IF NAME="creditsamount" --> of <!-- TMPL_VAR name="creditsamount" --><!-- /TMPL_IF -->
546             </li>
547                         <!-- /TMPL_IF -->
548
549
550
551                         </ul>
552         </div>
553
554                         <!-- TMPL_IF NAME="WaitingReserveLoop" -->
555                         <div id="holdswaiting" class="circmessage">
556                     <h4>Holds waiting:</h4>
557                                 <!-- TMPL_LOOP NAME="WaitingReserveLoop" -->
558                                     <ul>
559                                         <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"-->.
560                                     <!-- TMPL_IF NAME="waitingat" -->
561                                         <br /><!-- TMPL_IF NAME="waitinghere" --><strong class="waitinghere"><!-- TMPL_ELSE --><strong><!-- /TMPL_IF -->Waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
562                                     <!-- /TMPL_IF -->
563                                         </li>
564                                     </ul>
565                             <!-- /TMPL_LOOP -->
566                         </div>
567                         <!-- /If WaitingReserveLoop --><!-- /TMPL_IF -->
568         <!-- TMPL_IF name="notes" -->
569                         <div id="circnotes" class="circmessage">
570                         <h4>Notes:</h4>
571             <p><span class="circ-hlt"><!-- TMPL_VAR name="notesmsg" --></span></p>
572                         </div>
573
574
575     <!-- /If notes --><!-- /TMPL_IF -->
576
577         <div id="messages" class="circmessage">
578                 <h4>Messages:</h4>
579                 <ul>
580                         <!--TMPL_LOOP NAME="lib_messages_loop" -->
581                                 <li>
582                                         <span class="circ-hlt">
583                                                 <!--TMPL_VAR NAME="message_date_formatted"-->
584                                                 <!--TMPL_VAR NAME="branchcode"-->
585                                                 <i>"<!--TMPL_VAR NAME="message"-->"</i>
586                                         </span>
587                                         <!-- TMPL_IF NAME="can_delete" -->
588                                                 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=<!--TMPL_VAR NAME="message_id" -->&amp;borrowernumber=<!--TMPL_VAR NAME="borrowernumber" -->">[Delete]</a>
589                                         <!-- TMPL_ELSE -->
590                                                 <!-- TMPL_IF NAME="all_messages_del" -->
591                                                         <a href="/cgi-bin/koha/circ/del_message.pl?message_id=<!--TMPL_VAR NAME="message_id" -->&amp;borrowernumber=<!--TMPL_VAR NAME="borrowernumber" -->">[Delete]</a>
592                                                 <!-- /TMPL_IF -->
593                                         <!-- /TMPL_IF -->
594                                 </li>
595                         <!-- /TMPL_LOOP -->
596                         <!--TMPL_LOOP NAME="bor_messages_loop" -->
597                                 <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>
598                         <!-- /TMPL_LOOP -->
599
600                 </ul>
601         </div>  
602         
603      <!-- /If flagged --><!-- /TMPL_IF -->
604
605         
606
607 </div>
608 </div>
609
610 <div class="yui-g"><div id="patronlists" class="toptabs">
611
612 <ul>
613 <li>    <!--TMPL_IF NAME="issuecount"-->
614             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts"><!-- TMPL_VAR NAME="issuecount"--> Checkout(s)</a>
615     <!-- TMPL_ELSE -->
616             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts">0 Checkouts</a>
617     <!-- /TMPL_IF --></li>
618 <li><!-- TMPL_IF NAME="countreserv"-->
619             <a href="/cgi-bin/koha/circ/circulation.pl#reserves"><!--TMPL_VAR NAME="countreserv"--> Hold(s)</a>
620     <!-- TMPL_ELSE -->
621             <a href="/cgi-bin/koha/circ/circulation.pl#reserves">0 Holds</a>
622     <!-- /TMPL_IF --></li>
623
624 </ul>
625
626 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
627 <div id="checkouts">
628 <!--TMPL_IF NAME="issuecount"-->
629     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post" class="checkboxed">
630     <input type="hidden" value="circ" name="destination" />
631     <input type="hidden" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
632     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
633     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
634         <table id="issuest">
635     <thead><tr>
636         <th scope="col">Due date</th>
637         <th scope="col">Title</th>
638         <th scope="col">Item Type</th>
639         <th scope="col">Checked out on</th> 
640         <th scope="col">Call no</th>
641         <th scope="col">Charge</th>
642         <th scope="col">Price</th>
643         <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th>
644         <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
645     </tr>
646 <!-- TMPL_IF NAME="todayissues" --></thead>
647 <!-- TMPL_INCLUDE NAME="checkouts-table-footer.inc" -->
648         <tbody>
649
650     <!-- TMPL_LOOP NAME="todayissues" -->
651     <!-- TMPL_IF NAME="__odd__" -->
652     <tr>
653     <!-- TMPL_ELSE -->
654     <tr class="highlight">
655     <!-- /TMPL_IF -->
656         <!-- TMPL_IF NAME="od" --><td class="od"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
657         <!-- TMPL_VAR NAME="dd" -->
658         </td>
659         <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>
660         <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>
661         <td><!-- TMPL_VAR NAME="checkoutdate" --></td>
662         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
663             <td><!-- TMPL_VAR NAME="charge" --></td>
664             <td><!-- TMPL_VAR NAME="replacementprice" --></td>
665       <!-- TMPL_IF NAME="renew_failed" -->
666             <td class="problem">Renewal Failed</td>
667       <!-- TMPL_ELSE -->
668         <td><span style="padding: 0 1em;"><!-- TMPL_IF NAME="renewals" --><!-- TMPL_VAR NAME="renewals" --><!-- TMPL_ELSE -->0<!-- /TMPL_IF --></span>
669         <!-- TMPL_IF NAME="can_renew" -->
670         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
671         <!-- TMPL_IF NAME="od" -->
672             <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
673         <!-- TMPL_ELSE -->
674             <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
675         <!-- /TMPL_IF -->
676         <!-- TMPL_ELSE -->
677             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
678                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
679                 <!-- TMPL_IF NAME="od" -->
680                     <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
681                 <!-- TMPL_ELSE -->
682                     <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
683                 <!-- /TMPL_IF -->
684                 </span>
685                 <span class="renewals-disabled">
686             <!-- /TMPL_IF -->
687                 <!-- TMPL_IF NAME="renew_error_on_reserve" -->
688                         On Hold
689                 <!-- /TMPL_IF -->
690                 <!-- TMPL_IF NAME="renew_error_too_many" -->
691                         Not Renewable
692                 <!-- /TMPL_IF -->
693             <!-- TMPL_IF NAME="can_confirm" -->
694                 </span>
695             <!-- /TMPL_IF -->
696         <!-- /TMPL_IF -->
697         </td>
698         <!-- /TMPL_IF -->
699   <!-- TMPL_IF NAME="return_failed" -->
700             <td class="problem">Checkin Failed</td>
701       <!--TMPL_ELSE-->
702             <td><input type="checkbox" class="radio" name="barcodes[]"  value="<!-- TMPL_VAR NAME="barcode" -->" />
703                 <input type="checkbox" name="all_barcodes[]" value="<!-- TMPL_VAR NAME="barcode" -->" checked="checked" style="display: none;" />
704             </td>
705       <!-- /TMPL_IF -->
706     </tr>
707     <!-- /TMPL_LOOP --> <!-- /loop todayissues -->
708     <!-- /if todayissues --><!-- /TMPL_IF -->
709 <!-- TMPL_IF NAME="previssues" -->
710 <!-- TMPL_IF NAME="todayissues" --><tr><th colspan="10"><a name="previous" id="previous"></a>Previous checkouts</th></tr><!-- TMPL_ELSE -->
711 <tr><th class="{sorter: false}" colspan="10"><a name="previous" id="previous"></a>Previous checkouts</th></tr></thead>
712 <!-- TMPL_INCLUDE NAME="checkouts-table-footer.inc" -->
713         <tbody>
714 <!-- /TMPL_IF -->
715     <!-- TMPL_LOOP NAME="previssues" -->
716     <!-- TMPL_IF NAME="__odd__" -->
717         <tr>
718     <!-- TMPL_ELSE -->
719         <tr class="highlight">
720     <!-- /TMPL_IF -->
721         <!-- TMPL_IF NAME="od" --><td class="od"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
722         <!-- TMPL_VAR NAME="dd" -->
723         </td>
724         <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>
725         <td>
726             <!-- TMPL_VAR NAME="itemtype" -->
727         </td>
728         <td><!-- TMPL_VAR NAME="displaydate" --></td>
729         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
730         <td><!-- TMPL_VAR NAME="charge" --></td>
731         <td><!-- TMPL_VAR NAME="replacementprice" --></td>
732       <!-- TMPL_IF NAME="renew_failed" -->
733             <td class="problem">Renewal Failed</td>
734       <!-- TMPL_ELSE -->
735         <td><span style="padding: 0 1em;"><!-- TMPL_IF NAME="renewals" --><!-- TMPL_VAR NAME="renewals" --><!-- TMPL_ELSE -->0<!-- /TMPL_IF --></span>
736         <!-- TMPL_IF NAME="can_renew" -->
737         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
738         <!-- TMPL_IF NAME="od" -->
739             <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
740         <!-- TMPL_ELSE -->
741             <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
742         <!-- /TMPL_IF -->
743         <!-- TMPL_ELSE -->
744             <!-- TMPL_IF NAME="can_confirm" --><span class="renewals-allowed" style="display: none">
745                 <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
746                 <!-- TMPL_IF NAME="od" -->
747                     <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
748                 <!-- TMPL_ELSE -->
749                     <input type="checkbox" class="radio" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
750                 <!-- /TMPL_IF -->
751                 </span>
752                 <span class="renewals-disabled">
753             <!-- /TMPL_IF -->
754                 <!-- TMPL_IF NAME="renew_error_on_reserve" -->
755                         On Hold
756                 <!-- /TMPL_IF -->
757                 <!-- TMPL_IF NAME="renew_error_too_many" -->
758                         Not Renewable
759                 <!-- /TMPL_IF -->
760             <!-- TMPL_IF NAME="can_confirm" -->
761                 </span>
762             <!-- /TMPL_IF -->
763         <!-- /TMPL_IF -->
764         </td>
765         <!-- /TMPL_IF -->
766                   <!-- TMPL_IF NAME="return_failed" -->
767             <td class="problem">Checkin Failed</td>
768         <!--TMPL_ELSE-->
769             <td><input type="checkbox" class="radio" name="barcodes[]"  value="<!-- TMPL_VAR NAME="barcode" -->" />
770                 <input type="checkbox" name="all_barcodes[]" value="<!-- TMPL_VAR NAME="barcode" -->" checked="checked" style="display: none;" />
771             </td>
772       <!-- /TMPL_IF -->
773     </tr>
774     <!-- /loop previssues --><!-- /TMPL_LOOP -->
775 <!--/if previssues --><!-- /TMPL_IF -->
776       </tbody>
777     </table>
778     <!--TMPL_IF NAME="issuecount"-->
779     <fieldset class="action">
780         <!-- TMPL_IF NAME="CAN_user_circulate_override_renewals" -->
781         <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
782         <label for="override_limit">Override Renewal Limit:</label>
783         <input type="checkbox" name="override_limit" id="override_limit" value="1" />
784         <!-- /TMPL_IF -->
785         <!-- /TMPL_IF -->
786         <input type="submit" name="renew_checked" value="Renew or Return checked items" />
787         <input type="submit" id="renew_all" name="renew_all" value="Renew all" />
788         </fieldset>
789     <!-- /TMPL_IF -->
790 </form>
791 <!-- TMPL_ELSE -->
792 <p>Patron has nothing checked out.</p>
793 <!-- /TMPL_IF -->
794 </div>
795
796
797 <div id="reserves">
798 <!-- TMPL_IF NAME="reservloop" -->
799 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
800         <input type="hidden" name="from" value="circ" />
801     <table id="holdst">
802         <thead><tr>
803             <th>Hold date</th>
804             <th>Title</th>
805             <th>Call Number</th>
806                         <th>Barcode</th>
807             <th>Priority</th>
808                         <th>Delete?</th>
809         </tr></thead>
810                 <tbody>
811         <!-- TMPL_LOOP NAME="reservloop" -->
812         <tr class="<!-- TMPL_VAR NAME="color" -->">
813                     <td><!-- TMPL_VAR NAME="reservedate" --></td>
814                     <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>
815                     <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
816                                         <td><em><!-- TMPL_IF name="barcodereserv" -->Item <!-- TMPL_VAR NAME="barcodereserv" -->
817                         <!-- /TMPL_IF --><!-- TMPL_IF name="waiting" --> <strong>waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
818                         <!-- /TMPL_IF -->
819                         <!-- TMPL_IF name="transfered" --> <strong>in transit</strong> from
820                         <!-- TMPL_VAR NAME="frombranch" --> since <!-- TMPL_VAR NAME="datesent" -->
821                         <!-- /TMPL_IF -->
822                         <!-- TMPL_IF name="nottransfered" --> hasn't been transferred yet from <!-- TMPL_VAR NAME="nottransferedby" --></i>
823                         <!-- /TMPL_IF --></em></td>
824                     <td>
825                         <!-- TMPL_IF NAME="waitingposition" --><b> <!-- TMPL_VAR NAME="waitingposition" --> </b><!-- /TMPL_IF -->
826                     </td>
827                                 <td><select name="rank-request">
828                     <option value="n">No</option>
829                     <option value="del">Yes</option>
830                 </select>
831                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" />
832                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR name="borrowernumber" -->" />
833                 <input type="hidden" name="reservenumber" value="<!-- TMPL_VAR name="reservenumber" -->" />
834             </td>
835             </tr>
836         <!-- /TMPL_LOOP --></tbody>
837     </table>
838                 <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel Marked Requests" /></fieldset>
839     </form>
840         <!-- TMPL_ELSE -->
841         <p>Patron has nothing on hold.</p>
842 <!-- /TMPL_IF -->
843 </div> <!-- reservesloop -->
844
845 <!-- /TMPL_IF --> <!-- borrowernumber -->
846 </div></div>
847 <!--/TMPL_IF -->
848
849
850
851 </div>
852 </div>
853 <!-- TMPL_UNLESS NAME="CGIselectborrower" --><!-- TMPL_IF NAME="borrowernumber" --><div class="yui-b">
854 <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
855 </div><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
856 </div>
857 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->