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