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