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