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