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