Bug Fix : When Patron had overdues, it was possible to checkout
[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.pack.js"></script>
10 <script type="text/JavaScript" language="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          $(document).ready(function() {
19                 $('#patronlists > ul').tabs();
20                 $.tablesorter.defaults.widgets = ['zebra']; 
21                 $("#issuest").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
22                 dateFormat: 'uk',<!-- /TMPL_IF -->
23                 headers: { 1: { sorter: 'articles' },4:{sorter:false},5: { sorter: false },6:{sorter:false}}
24                 });
25                 $("#issuest").bind("sortEnd",function() {
26                 $("#previous").parents("tr").remove();  // 'previous checkouts' header chokes table sorter
27             }); 
28                 $("#holdst").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
29                 dateFormat: 'uk',<!-- /TMPL_IF -->
30                         sortList: [[0,0]],
31                         headers: { 1: { sorter: 'articles' }}
32                 });
33
34         <!-- TMPL_IF NAME="AllowRenewalLimitOverride" -->
35         $( '#override_limit' ).click( function () {
36             if ( this.checked ) {
37                 $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
38             } else {
39                 $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
40             }
41         } ).attr( 'checked', false );
42         <!-- /TMPL_IF -->
43                 $("td").click(function(e){
44                         if(e.target.tagName.toLowerCase() == 'td'){
45             $(this).find("input:checkbox").each( function() {
46                 $(this).attr('checked', !$(this).attr('checked'));
47             });
48                         }
49                 });
50          });
51 //]]>
52 </script>
53 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
54 </head>
55 <body>
56
57 <!-- TMPL_INCLUDE NAME="header.inc" -->
58 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
59
60 <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>
61
62 <!-- TMPL_IF NAME="CGIselectborrower" -->
63 <div id="doc" class="yui-t7">
64    
65    <div id="bd">
66         <div id="yui-main">
67         <div class="yui-g">
68 <!-- TMPL_ELSE -->
69 <div id="doc3" class="yui-t2">
70    
71    <div id="bd">
72         <div id="yui-main">
73         <div class="yui-b">
74 <!-- /TMPL_IF -->
75
76 <!-- TMPL_IF NAME="borrowernumber" -->
77 <!-- TMPL_INCLUDE NAME="circ-toolbar.inc" -->
78 <!-- /TMPL_IF -->
79
80 <!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
81 <!-- TMPL_IF NAME="dateexpiry" --><div class="dialog message">Patron's account has been renewed until <!-- TMPL_VAR NAME="dateexpiry" --></div><!-- /TMPL_IF -->
82 <!-- TMPL_IF NAME="NEEDSCONFIRMATION" -->
83 <div class="yui-g">
84
85 <div id="circ_needsconfirmation" class="dialog alert">
86 <h3>Please Confirm Checkout</h3>
87
88 <ul>
89 <!-- TMPL_IF NAME="DEBT" -->
90     <li>The patron has a debt of $<!-- TMPL_VAR name="DEBT" --></li>
91 <!-- /TMPL_IF -->
92
93 <!-- TMPL_IF NAME="RENEW_ISSUE" -->
94     <li>Item is currently checked out to this patron.  Renew?</li>
95 <!-- /TMPL_IF -->
96
97 <!-- TMPL_IF NAME="RESERVE_WAITING" -->
98     <li>Item is consigned for <!-- TMPL_VAR NAME="RESERVE_WAITING" --></li>
99 <!-- /TMPL_IF -->
100
101 <!-- TMPL_IF NAME="RESERVED" -->
102     <li>Item is on reserve for <!-- TMPL_VAR NAME="RESERVED" --></li>
103 <!-- /TMPL_IF -->
104
105 <!-- TMPL_IF NAME="ISSUED_TO_ANOTHER" -->
106     <li>Item ( <!-- TMPL_VAR NAME="getTitleMessageIteminfo" --> ) checked out to <!-- TMPL_VAR NAME="ISSUED_TO_ANOTHER" -->. Check in and check out?</li>
107 <!-- /TMPL_IF -->
108
109 <!-- TMPL_IF NAME="TOO_MANY" -->
110     <li>Too many checked out (already checked out / max : <!-- TMPL_VAR name="TOO_MANY" -->)</li>
111 <!-- /TMPL_IF -->
112 <!-- TMPL_IF NAME="OVERDUES" -->
113     <li><!--TMPL_VAR Name="OVERDUES"--> Overdues</li>
114 <!-- /TMPL_IF -->
115 </ul>
116
117 <form method="post" action="/cgi-bin/koha/circ/circulation.pl">
118     
119 <!-- TMPL_IF NAME="RESERVED" -->
120     <p>
121     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
122     <label for="cancelreserve">Cancel Reserve</label>
123     </p>
124 <!-- /TMPL_IF -->
125
126 <!-- TMPL_IF NAME="RESERVE_WAITING" -->
127     <p>
128     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="1" />
129     <label for="cancelreserve">Cancel Reserve</label>
130     </p>
131 <!-- /TMPL_IF -->
132
133     <input type="hidden" name="barcode" value="<!-- TMPL_VAR NAME="barcode" -->" />
134     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
135     <input type="hidden" name="issueconfirmed" value="1" />
136     <!-- TMPL_IF NAME="DEBT" --><input type="hidden" name="debt_confirmed" value="1" /><!-- /TMPL_IF -->
137     <input type="hidden" name="duedatespec" value="<!-- TMPL_VAR NAME="duedatespec" -->" />
138     <input type="hidden" name="stickyduedate" value="<!-- TMPL_VAR NAME="stickyduedate" -->" />
139     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
140     <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
141 </form>
142
143 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
144     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
145     <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
146 </form>
147
148 </div></div>
149 <!-- /TMPL_IF --> <!-- NEEDSCONFIRMATION -->
150
151         <!-- TMPL_IF NAME="IMPOSSIBLE" -->
152 <div class="yui-g">
153 <div id="circ_impossible" class="dialog alert">
154 <!-- RESULT OF ISSUING REQUEST -->
155         <ul>
156         <!-- TMPL_IF NAME="STATS" -->
157             <li>Local Use Recorded</li>
158         <!-- /TMPL_IF -->
159
160         <!-- TMPL_IF NAME="INVALID_DATE" -->
161             <li>The due date is invalid</li>
162         <!-- /TMPL_IF -->  
163         <!-- TMPL_IF NAME="UNKNOWN_BARCODE" -->
164             <li>The barcode was not found</li>
165         <!-- /TMPL_IF -->
166
167         <!-- TMPL_IF NAME="NOT_FOR_LOAN" -->
168             <li>Item not for loan</li>
169         <!-- /TMPL_IF -->
170
171         <!-- TMPL_IF NAME="WTHDRAWN" -->
172             <li>Item has been withdrawn</li>
173         <!-- /TMPL_IF -->
174
175         <!-- TMPL_IF NAME="RESTRICTED" -->
176             <li>Item is restricted</li>
177         <!-- /TMPL_IF -->
178
179         <!-- TMPL_IF NAME="GNA" -->
180             <li>Patron's address is in doubt</li>
181         <!-- /TMPL_IF -->
182
183         <!-- TMPL_IF NAME="CARD_LOST" -->
184             <li>Patron's card is lost</li>
185         <!-- /TMPL_IF -->
186
187         <!-- TMPL_IF NAME="DEBARRED" -->
188             <li>Patron is restricted</li>
189         <!-- /TMPL_IF -->
190
191         <!-- TMPL_IF NAME="NO_MORE_RENEWALS" -->
192             <li>No more renewals possible</li>
193         <!-- /TMPL_IF -->
194
195         <!-- TMPL_IF NAME="EXPIRED" -->
196             <li>Patron's card is expired</li>
197         <!-- /TMPL_IF -->
198
199         <!-- TMPL_IF NAME="NOTSAMEBRANCH" -->
200             <li>This item belongs to <!-- TMPL_VAR NAME="itemhomebranch" --> and cannot be issued from this location.</li>
201         <!-- /TMPL_IF --> 
202         </ul>
203
204     <!-- TMPL_IF NAME="memberofinstution" -->
205     <p><!-- TMPL_VAR NAME="CGIorganisations" --></p>
206     <!-- /TMPL_IF -->
207
208 </div></div>
209     <!--/TMPL_IF --> <!-- /impossible -->
210
211 <!-- TMPL_IF NAME="issued" -->
212 <p>Item Checked out</p>
213 <!-- /TMPL_IF -->
214
215 <!-- TMPL_IF NAME="message" -->
216 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
217 <h4>
218 No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
219 </h4>
220 <!-- /TMPL_IF -->
221
222
223 <!-- TMPL_IF NAME="CGIselectborrower" -->
224 <!-- TMPL_INCLUDE NAME="patron-toolbar.inc" -->
225
226 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform">
227 <fieldset id="circ_circulation_selectborrower" class="brief">
228     <legend>Patron selection</legend>
229
230     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
231     <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
232
233 <ol>    <li>
234     <label for="borrowernumber">Select a patron: </label>
235     <!-- TMPL_VAR name="CGIselectborrower" -->
236     </li>
237 </ol>
238 <p><input type="submit" value="Select" /></p>
239 </fieldset>
240 </form>
241 <!-- TMPL_ELSE --> <!-- CGIselectborrower -->
242
243 <!-- BARCODE ENTRY -->
244
245 <!-- TMPL_IF NAME="borrowernumber" -->
246 <div class="yui-g">
247 <!-- TMPL_UNLESS NAME="noissues" -->
248 <!-- TMPL_IF NAME="flagged" -->
249 <div class="yui-u first">
250 <!-- TMPL_ELSE -->
251 <div><!-- /TMPL_IF --><form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform">
252 <fieldset id="circ_circulation_issue">
253     <label for="barcode">Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->) </label>
254         <div class="hint">Enter item barcode:</div>
255         
256         <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> <input type="submit" value="Check Out" />
257         <div class="hint">Specify Due Date:</div>
258                 <!-- TMPL_IF NAME="stickyduedate" --><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="" />
259 <!-- /TMPL_IF -->
260                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar"  border="0" id="CalendarDueDate" style="cursor: pointer;" />
261              <script language="JavaScript" type="text/javascript">
262                          //<![CDATA[ 
263                    function validate1(date) {
264                          var today = new Date();
265                          if ( date < today ) {
266                              return true;
267                           } else {
268                              return false;
269                           }
270                      };
271                      function refocus(calendar) {
272                         document.getElementById('barcode').focus();
273                         calendar.hide();
274                      };
275                                 //#TODO - ADD syspref (AllowPostDatedCheckouts).
276                      Calendar.setup(
277                           {
278                              inputField : "duedatespec",
279                              ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
280                              button : "CalendarDueDate",
281                              disableFunc : validate1,
282                              dateStatusFunc : validate1,
283                              onClose : refocus
284                            }
285                         );
286                                 //]]>
287                  </script>
288
289           <label for="stickyduedate"> Remember for Session:</label>
290 <!-- TMPL_IF NAME="stickyduedate" -->
291 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
292 <!-- TMPL_ELSE -->
293 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
294 <!-- /TMPL_IF -->
295           <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;" />
296 </div><!-- /TMPL_IF -->
297           <input type="hidden" name="borrowernumber" id="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
298           <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
299           <input type="hidden" name="printer" value="<!-- TMPL_VAR NAME="printer" -->" />
300           <input type="hidden" name="print" value="maybe" />
301           <input type="hidden" name="debt_confirmed" value="<!-- TMPL_VAR NAME="debt_confirmed" -->" />
302                 <!-- TMPL_IF NAME="CHARGES" -->
303                         <input type="hidden" name="charges" value="yes" />
304                         <input type="hidden" name="oldamount" value="<!-- TMPL_VAR NAME="amountold" -->" />
305                 <!-- /TMPL_IF -->
306 </fieldset> 
307 </form></div><!-- /TMPL_UNLESS --><!-- /unless noissues -->
308
309 <!-- TMPL_IF NAME="noissues" --><div><!-- TMPL_ELSE --><div class="yui-u"><!-- /TMPL_IF -->
310         
311     <!-- TMPL_IF NAME="flagged" -->
312                 <!-- TMPL_IF NAME="noissues" -->
313                  <h4>Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</h4>
314         <div id="circmessages" class="circmessage warning">
315                 <!-- TMPL_ELSE -->
316         <div id="circmessages" class="circmessage attention">
317                 <!-- /TMPL_IF -->
318                 
319                 <h3><!-- TMPL_IF NAME="noissues" -->Cannot Check Out!<!-- TMPL_ELSE -->Attention:<!-- /TMPL_IF --></h3>
320                 <ul>
321                 
322                         <!-- TMPL_IF NAME = "warndeparture" -->
323                         <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
324                         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>
325                         
326                         </li>
327                         <!-- /TMPL_IF -->
328                         
329                         <!-- TMPL_IF NAME="returnbeforeexpiry" -->
330                          <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
331                          expiry date is before the date due, the date due will be set to the expiry date
332                          </li>
333                         <!-- /TMPL_IF -->
334
335                         <!-- TMPL_IF NAME = "expired" -->
336                         <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
337                         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>
338                         
339                         </li>
340                         <!-- /TMPL_IF -->
341
342             <!-- TMPL_IF NAME="gna" -->
343                         <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
344                         <!-- /TMPL_IF -->
345                         
346             <!-- TMPL_IF NAME="lost" -->
347                         <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
348                         <!-- /TMPL_IF -->
349                         
350             <!-- TMPL_IF NAME="dbarred" --><li class="blocker">
351                <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>
352 </li><!-- /TMPL_IF -->
353
354                 <!-- 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>
355             <!-- /TMPL_IF -->
356                         
357                 <!-- TMPL_IF NAME="charges" -->
358                 <!-- TMPL_IF NAME="charges_is_blocker" -->
359                                 <li class="blocker">
360                 <!-- TMPL_ELSE -->
361                                 <li>
362                 <!-- /TMPL_IF -->
363             <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>.
364                 <!-- TMPL_IF NAME="charges_is_blocker" -->
365                     Checkouts are blocked because fine balance is over the limit.
366                 <!-- /TMPL_IF -->
367             Make <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber" -->">Payment</a></li>
368                         <!-- /TMPL_IF -->
369
370                 <!-- TMPL_IF NAME="credits" -->
371                         <li><span class="circ-hlt">Credits:</span> Patron has a credit</li>
372                         <!-- /TMPL_IF -->
373
374                         
375
376                         </ul>
377         </div>
378
379                         <!-- TMPL_IF NAME="WaitingReserveLoop" -->      
380                         <div id="holdswaiting" class="circmessage">
381                     <h4>Holds waiting:</h4>
382                                 <!-- TMPL_LOOP NAME="WaitingReserveLoop" -->
383                                     <ul> 
384                                         <li> <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title"--></a> (<!-- TMPL_VAR NAME="itemtype"-->), <!-- TMPL_IF NAME="author" -->by <!-- TMPL_VAR NAME="author"--><!-- /TMPL_IF --> Hold placed on <!-- TMPL_VAR NAME="reservedate"-->.
385                                     <!-- TMPL_IF NAME="waitingat" -->
386                                         <br /><!-- TMPL_IF NAME="waitinghere" --><strong class="waitinghere"><!-- TMPL_ELSE --><strong><!-- /TMPL_IF -->Waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>  
387                                     <!-- /TMPL_IF -->
388                                         </li>
389                                     </ul>
390                             <!-- /TMPL_LOOP -->
391                         </div>
392                         <!-- /If WaitingReserveLoop --><!-- /TMPL_IF -->
393         <!-- TMPL_IF name="notes" -->
394                         <div id="circnotes" class="circmessage">
395                         <h4>Notes:</h4>
396             <p><span class="circ-hlt"><!-- TMPL_VAR name="notesmsg" --></span></p>
397                         </div>
398     <!-- /If notes --><!-- /TMPL_IF --> 
399      <!-- /If flagged --><!-- /TMPL_IF -->
400
401
402 </div>
403 </div>
404
405 <div class="yui-g"><div id="patronlists" class="toptabs">
406
407 <ul>   
408 <li>    <!--TMPL_IF NAME="issuecount"-->
409             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts"><!-- TMPL_VAR NAME="issuecount"--> Checkout(s)</a>
410     <!-- TMPL_ELSE -->
411             <a href="/cgi-bin/koha/circ/circulation.pl#checkouts">0 Checkouts</a>
412     <!-- /TMPL_IF --></li>
413 <li><!-- TMPL_IF NAME="countreserv"-->
414             <a href="/cgi-bin/koha/circ/circulation.pl#reserves"><!--TMPL_VAR NAME="countreserv"--> Holds(s)</a>
415     <!-- TMPL_ELSE -->
416             <a href="/cgi-bin/koha/circ/circulation.pl#reserves">0 Holds</a>
417     <!-- /TMPL_IF --></li>
418  
419 </ul>
420
421 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
422 <div id="checkouts">
423 <!--TMPL_IF NAME="issuecount"-->
424     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post">
425     <input type="hidden" value="circ" name="destination" />
426     <input type="hidden" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
427     <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
428     <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />       
429         <table id="issuest">
430     <thead><tr>
431         <th>Due date</th>
432         <th>Title</th>
433         <th>Item Type</th>
434         <th>Call no</th>
435         <th>Barcode</th>
436         <th>Renew?</th>
437                 <th>Check In?</th>
438     </tr>
439 <!-- TMPL_IF NAME="todayissues" --></thead>
440         <tbody>
441
442     <!-- TMPL_LOOP NAME="todayissues" -->
443     <!-- TMPL_IF NAME="__odd__" -->
444     <tr>
445     <!-- TMPL_ELSE -->
446     <tr class="highlight">
447     <!-- /TMPL_IF -->
448         <td><!-- TMPL_VAR NAME="dd" --></td>
449         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra"><!-- TMPL_VAR NAME="title" --></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 --></td>
450         <td>
451             <!-- TMPL_VAR NAME="itemtype" -->
452            <!-- TMPL_UNLESS NAME="noItemTypeImages" --> <!-- TMPL_IF NAME="itemtype_image" -->
453             <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
454             <!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
455         </td>
456         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
457         <td><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>
458         <td>
459                 <!-- TMPL_IF NAME="can_renew" -->
460         <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
461         <!-- TMPL_IF NAME="od" -->
462             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
463         <!-- TMPL_ELSE -->
464             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
465         <!-- /TMPL_IF -->
466                 <!-- TMPL_ELSE -->
467                     <!-- TMPL_IF NAME="renew_error_on_reserve" -->
468                             On Hold
469                         <!-- /TMPL_IF -->
470                         <!-- TMPL_IF NAME="renew_error_too_many" -->
471                             Too Many Renewals
472                         <!-- /TMPL_IF -->
473                 <!-- /TMPL_IF -->
474         </td>
475                 <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
476                 <!-- TMPL_IF NAME="renew_failed" -->
477                 <td>Renewal Failed</td>
478                 <!-- /TMPL_IF -->
479     </tr>
480     <!-- /TMPL_LOOP --> <!-- /loop todayissues -->
481     <!-- /if todayissues --><!-- /TMPL_IF --> 
482 <!-- TMPL_IF NAME="previssues" -->
483 <!-- TMPL_IF NAME="todayissues" --><tr><th colspan="7"><a name="previous" id="previous"></a>Previous checkouts</th></tr><!-- TMPL_ELSE -->
484 <tr><th class="{sorter: false}" colspan="7"><a name="previous" id="previous"></a>Previous checkouts</th></tr></thead>
485         <tbody>
486 <!-- /TMPL_IF -->
487     <!-- TMPL_LOOP NAME="previssues" -->
488     <!-- TMPL_IF NAME="__odd__" -->
489         <tr>
490     <!-- TMPL_ELSE -->
491         <tr class="highlight">
492     <!-- /TMPL_IF -->
493         <!-- TMPL_IF NAME="od" --><td class="od"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
494         <!-- TMPL_VAR NAME="dd" -->
495         </td>
496         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;type=intra"><!-- TMPL_VAR NAME="title" --></a><br /><!-- TMPL_IF NAME="author" --><!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --> <!-- TMPL_IF NAME="itemnotes" -->- <!-- TMPL_VAR name="itemnotes" --><!-- /TMPL_IF --></td>
497         <td>
498             <!-- TMPL_VAR NAME="itemtype" -->
499             <!-- TMPL_IF NAME="itemtype_image" -->
500             <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
501             <!-- /TMPL_IF -->
502         </td>
503         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
504         <td><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>
505         <td>
506                 <!-- TMPL_IF NAME="can_renew" -->
507             <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
508         <!-- TMPL_IF NAME="od" -->
509             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
510         <!-- TMPL_ELSE -->
511             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
512         <!-- /TMPL_IF -->
513                 <!-- TMPL_ELSE -->
514                     <!-- TMPL_IF NAME="renew_error_on_reserve" -->
515                             On Hold
516                         <!-- /TMPL_IF -->
517                         <!-- TMPL_IF NAME="renew_error_too_many" -->
518                             Too Many Renewals
519                         <!-- /TMPL_IF -->
520                         
521                 <!-- /TMPL_IF -->
522         </td>
523                 <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
524                 <!-- TMPL_IF NAME="renew_failed" -->
525                 <td>Renewal Failed</td>
526                 <!-- /TMPL_IF -->
527
528     </tr>
529     <!-- /loop previssues --><!-- /TMPL_LOOP --> 
530 <!--/if previssues --><!-- /TMPL_IF --> 
531         </tbody>
532     </table>
533         <!--TMPL_IF NAME="issuecount"-->
534     <fieldset class="action">
535     <input type="submit" name="renew_checked" value="Renew Checked Items" />
536     <input type="submit" name="renew_all" value="Renew All" />
537     </fieldset>
538         <!-- /TMPL_IF -->
539 </form>
540 <!-- TMPL_ELSE -->
541 <p>Patron has nothing checked out.</p>
542 <!-- /TMPL_IF -->
543 </div>
544
545
546 <div id="reserves">
547 <!-- TMPL_IF NAME="reservloop" -->
548     <table id="holdst">
549         <thead><tr>
550             <th>Hold date</th>
551             <th>Title</th>
552             <th>Item Type</th>
553             <th>Call Number</th>
554                         <th>Barcode</th>
555             <th>Priority</th>
556         </tr></thead>
557                 <tbody>
558         <!-- TMPL_LOOP NAME="reservloop" -->
559         <tr class="<!-- TMPL_VAR NAME="color" -->">
560                     <td><!-- TMPL_VAR NAME="reservedate" --></td>
561                     <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --></td>
562                                         <td><!-- TMPL_VAR NAME="itemtype" --></td>
563                     <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
564                                         <td><em><!-- TMPL_IF name="barcodereserv" -->Item <!-- TMPL_VAR NAME="barcodereserv" -->
565                         <!-- /TMPL_IF --><!-- TMPL_IF name="waiting" --> <strong>waiting at <!-- TMPL_VAR NAME="waitingat" --></strong>
566                         <!-- /TMPL_IF -->
567                         <!-- TMPL_IF name="transfered" --> <strong>in transit</strong> from
568                         <!-- TMPL_VAR NAME="frombranch" --> since <!-- TMPL_VAR NAME="datesent" -->
569                         <!-- /TMPL_IF -->
570                         <!-- TMPL_IF name="nottransfered" --> hasn't been transfered yet from <!-- TMPL_VAR NAME="nottransferedby" --></i>
571                         <!-- /TMPL_IF --></em></td>
572                     <td>                    
573                         <!-- TMPL_IF NAME="waitingposition" -->
574                         Hold priority
575                         <b> <!-- TMPL_VAR NAME="waitingposition" --> </b><!-- /TMPL_IF -->
576                     </td>
577             </tr>
578         <!-- /TMPL_LOOP --></tbody>
579     </table>
580         <!-- TMPL_ELSE -->
581         <p>Patron has no pending holds.</p>
582 <!-- /TMPL_IF -->
583 </div> <!-- reservesloop -->
584
585 <!-- /TMPL_IF --> <!-- borrowernumber -->
586 </div></div>
587 <!--/TMPL_IF -->
588
589
590
591 </div>
592 </div>
593 <!-- TMPL_UNLESS NAME="CGIselectborrower" --><!-- TMPL_IF NAME="borrowernumber" --><div class="yui-b">
594 <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
595 </div><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
596 </div>
597 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->