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