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