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