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