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