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