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