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