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