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