9951030b3a95bed79b8fc10c5523c15cb9c0cb2b
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / circulation.tt
1 [% USE Branches %]
2 [% USE KohaDates %]
3 [% IF ( export_remove_fields OR export_with_csv_profile ) %]
4    [% SET exports_enabled = 1 %]
5 [% END %]
6 [% USE AuthorisedValues %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 [% SET destination = "circ" %]
9 <title>Koha &rsaquo; Circulation
10 [% IF borrowernumber %]
11   &rsaquo; Checking out to [% INCLUDE 'patron-title.inc' invert_name = 1 %]
12 [% END %]
13 </title>
14 [% INCLUDE 'doc-head-close.inc' %]
15 [% INCLUDE 'calendar.inc' %]
16
17 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
18 [% INCLUDE 'datatables.inc' %]
19 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
20 [% INCLUDE 'strings.inc' %]
21 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
22 [% INCLUDE 'timepicker.inc' %]
23 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script>
24 <script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script>
25 <script type="text/javascript" src="[% themelang %]/js/checkouts.js"></script>
26 <script type="text/javascript" src="[% themelang %]/js/holds.js"></script>
27 <script type="text/javascript">
28 //<![CDATA[
29 /* Set some variable needed in circulation.js */
30 var interface = "[% interface %]";
31 var theme = "[% theme %]";
32 var borrowernumber = "[% borrowernumber %]";
33 var branchcode = "[% branch %]";
34 var exports_enabled = "[% exports_enabled %]";
35 var AllowRenewalLimitOverride = [% CAN_user_circulate_override_renewals && AllowRenewalLimitOverride %];
36 var relatives_borrowernumbers = new Array();
37 [% FOREACH b IN relatives_borrowernumbers %]
38     relatives_borrowernumbers.push("[% b %]");
39 [% END %]
40
41 var MSG_ADD_MESSAGE = _("Add a new message");
42 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
43 [% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %]
44 [% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
45
46 $(document).ready(function() {
47     [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
48         // listen submit to trigger qslip on empty checkout
49         $('#mainform').bind('submit',function() {
50             if ($('#barcode').val() == '') {
51                 return printx_window( '[% CircAutoPrintQuickSlip %]' );
52             }
53         });
54     [% END %]
55 });
56 //]]>
57 </script>
58 </head>
59 <body id="circ_circulation" class="circ">
60
61 [% INCLUDE 'header.inc' %]
62 [% INCLUDE 'circ-search.inc' %]
63
64 <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;
65 [% IF ( borrowernumber ) %]
66     <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> &rsaquo; [% INCLUDE 'patron-title.inc' %]
67 [% ELSE %]
68     <strong>Checkouts</strong>
69 [% END %]
70 </div>
71 [% IF ( CGIselectborrower ) %]
72 <div id="doc" class="yui-t7">
73
74    <div id="bd">
75         <div id="yui-main">
76         <div class="yui-g">
77 [% ELSE %]
78 <div id="doc3" class="yui-t2">
79
80    <div id="bd">
81         <div id="yui-main">
82         <div class="yui-b">
83 [% END %]
84
85 [% IF ( borrowernumber ) %]
86 [% INCLUDE 'members-toolbar.inc' %]
87 [% END %]
88
89 <!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
90 <div style="display: none;" id="add_message_form">
91 <form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f">
92 <fieldset id="borrower_messages" class="brief">
93 <legend>Leave a message</legend>
94         <ol>
95     <li>
96             <label for="message_type">Add a message for:</label>
97           <select name="message_type" id="message_type">
98             <option value="L">Other librarians</option>
99             <option value="B">[% firstname %]</option>
100         </select>
101     </li>
102     [% IF ( canned_bor_notes_loop ) %]
103         <li>
104                 <label for="type">Predefined notes: </label>
105                 <select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;">
106                     <option value="">Select note</option>
107                     [% FOREACH canned_bor_notes_loo IN canned_bor_notes_loop %]
108                     <option value="[% canned_bor_notes_loo.lib %]">[% canned_bor_notes_loo.lib %]</option>
109                     [% END %]
110                 </select>
111         </li>
112     [% END %]
113     <li>
114         <textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea>
115     </li>
116         </ol>
117     <fieldset class="action">
118         <input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a>
119     </fieldset>
120
121         <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
122         <input type="hidden" name="branchcode" value="[% branch %]" />
123 </fieldset>
124 </form>
125 </div>
126
127 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry %]</div>[% END %]
128
129 [% IF additional_materials %]
130     <div id="materials" class="dialog message">Note about the accompanying materials: <br />
131     [% additional_materials %]
132     </div>
133 [% END %]
134
135 [% IF ( alert.ITEM_LOST ) %]
136     <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST %]".</div>
137 [% END %]
138
139 [% IF ( alert.OTHER_CHARGES ) %]
140     <div class="dialog message">The patron has unpaid charges for reserves, rentals etc of [% alert.OTHER_CHARGES %]</div>
141 [% END %]
142
143 [% IF ( NEEDSCONFIRMATION ) %]
144 <div class="yui-g">
145
146 <div id="circ_needsconfirmation" class="dialog alert">
147 [% IF CAN_user_circulate_force_checkout %]
148   <h3>Please confirm checkout</h3>
149 [% ELSE %]
150   <h3>Cannot check out</h3>
151 [% END %]
152
153 <ul>
154 [%IF ( AGE_RESTRICTION ) %]
155     <li>Age restriction [% AGE_RESTRICTION %].
156       [% IF CAN_user_circulate_force_checkout %]
157         Check out anyway?
158       [% END %]
159     </li>
160 [% END %]
161
162 [% IF ( DEBT ) %]
163     <li>The patron has a debt of [% DEBT %]</li>
164 [% END %]
165
166 [% IF ( RENEW_ISSUE ) %]
167     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron.  Renew?</li>
168 [% END %]
169
170 [% IF ( RESERVE_WAITING ) %]
171     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) has been waiting for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber %]">[% resfirstname %] [% ressurname %]</a> ([% rescardnumber %]) at [% resbranchname %] since [% reswaitingdate %]</li>
172 [% END %]
173
174 [% IF ( RESERVED ) %]
175     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) has been on hold for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resborrowernumber %]">[% resfirstname %] [% ressurname %]</a> ([% rescardnumber %]) at [% resbranchname %] since [% resreservedate %]</li>
176 [% END %]
177
178 [% IF ( ISSUED_TO_ANOTHER ) %]
179     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is checked out to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% issued_borrowernumber %]">[% issued_firstname %] [% issued_surname %]</a> ([% issued_cardnumber %]).
180       [% IF CAN_user_circulate_force_checkout %]
181         Check in and check out?
182       [% END %]
183     </li>
184 [% END %]
185
186 [% IF ( TOO_MANY ) %]
187     <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
188 [% END %]
189
190 [% IF ( BORRNOTSAMEBRANCH ) %]
191     <li>This patrons is from a different library ([% BORRNOTSAMEBRANCH %])</li>
192 [% END %]
193
194 [% IF ( PATRON_CANT ) %]
195     <li>This patron can't check out this item per library circulation policy</li>
196 [% END %]
197
198 [% IF ( NOT_FOR_LOAN_FORCING ) %]
199     <li>
200     [% IF ( itemtype_notforloan ) %]
201         Item type is normally not for loan.
202     [% ELSIF ( item_notforloan ) %]
203         [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
204         Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
205     [% END %]
206       [% IF CAN_user_circulate_force_checkout %]
207         Check out anyway?
208       [% END %]
209     </li>
210 [% END %]
211
212 [% IF ( USERBLOCKEDOVERDUE ) %]
213     <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
214       [% IF CAN_user_circulate_force_checkout %]
215        Check out anyway?
216       [% END %]
217     </li>
218 [% END %]
219
220 [% IF ( ITEM_LOST ) %]
221     <li>This item has been lost with a status of "[% ITEM_LOST %]".
222       [% IF CAN_user_circulate_force_checkout %]
223         Check out anyway?
224       [% END %]
225     </li>
226 [% END %]
227
228 [% IF  HIGHHOLDS %]
229     <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li>
230 [% END %]
231
232 [% IF BIBLIO_ALREADY_ISSUED %]
233   <li>
234     Patron has already checked out another item from this record.
235     [% IF CAN_user_circulate_force_checkout %]
236       Check out anyway?
237     [% END %]
238   </li>
239 [% END %]
240 </ul>
241
242 [% IF HIGHHOLDS %]
243         <script language="JavaScript" type="text/javascript">
244         $(document).ready(function() {
245                 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]');
246         });
247         </script>
248 [% END %]
249
250 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
251 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
252
253 [% IF ( RESERVED ) %]
254     <p>
255     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
256     <label for="cancelreserve">Cancel hold</label>
257     </p>
258 [% END %]
259
260 [% IF ( RESERVE_WAITING ) %]
261 <p>
262     <label for="cancelreserve">Cancel hold</label>
263     <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
264     <label for="revertreserve">Revert waiting status</label>
265     <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
266 </p>
267 [% END %]
268
269     <input type="hidden" name="barcode" value="[% barcode |html %]" />
270     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
271     <input type="hidden" name="issueconfirmed" value="1" />
272     [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
273     [% IF ( INVALID_DATE ) %]
274     <p>
275     <input type="text" size="13" id="duedatespec" name="duedatespec" readonly="readonly" value="[% duedatespec %]" />
276     <label for="duedatespec">Due date</label>
277     </p>
278     [% ELSE %]
279     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
280     [% END %]
281     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
282     <input type="hidden" name="branch" value="[% branch %]" />
283     [% IF ( RENEW_ISSUE ) %]
284     <input type="submit" class="approve" value="Yes, Renew (Y)" accesskey="y" />
285     [% ELSE %]
286     <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
287     [% END %]
288 </form>
289 [% END %]
290
291 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
292     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
293     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
294     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
295     [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
296         [% IF ( RENEW_ISSUE ) %]
297         <input type="submit" class="deny" value="No, Don't Renew (N)" accesskey="n" />
298         [% ELSE %]
299         <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
300         [% END %]
301     [% ELSE %]
302         <input type="submit" class="deny" value="Continue" />
303     [% END %]
304 </form>
305
306 </div></div>
307 [% END %] <!-- NEEDSCONFIRMATION -->
308
309         [% IF ( IMPOSSIBLE ) %]
310
311 [% IF ( soundon ) %]
312 <audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
313 [% END %]        
314
315 <div class="yui-g">
316 <div id="circ_impossible" class="dialog alert">
317 <!-- RESULT OF ISSUING REQUEST -->
318         <ul>
319         [% IF ( STATS ) %]
320             <li>Local use recorded</li>
321         [% END %]
322
323         [% IF ( INVALID_DATE ) %]
324             <li>The due date &quot;[% INVALID_DATE %]&quot; is invalid</li>
325         [% END %]
326
327         [% IF ( UNKNOWN_BARCODE ) %]
328             <li>The barcode was not found [% barcode |html %]
329             [% IF ( fast_cataloging ) %]
330                 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
331             <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA&amp;barcode=[% barcode |uri %]&amp;circborrowernumber=[% borrowernumber %]&amp;branch=[% branch %]&amp;duedatespec=[% duedatespec %]&amp;stickyduedate=[% stickyduedate %]">Fast cataloging</a>
332                 [% END %]
333             [% END %]
334
335         [% IF ( FALLBACK ) %]
336             [% IF options %]
337                 <br />The following items were found by searching:
338                 [% FOREACH book IN options %]
339                     <br />
340                     <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
341                         <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
342                         <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
343                         <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
344                         <input type="hidden" name="branch" value="[% branch %]" />
345                         <input type="hidden" name="barcode" value="[% book.barcode %]" />
346                         <input type="submit" name="x" value="Check out [% book.barcode %]: [% book.title %]" />
347                     </form>
348                 [% END %]
349             [% ELSE %]
350                 <br />No items were found by searching.
351             [% END %]
352         [% END %]
353
354      </li>
355         [% END %]
356
357         [% IF ( NOT_FOR_LOAN ) %]
358             <li>
359             [% IF ( itemtype_notforloan ) %]
360                 Item type not for loan.
361             [% ELSIF ( item_notforloan ) %]
362                 [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
363                 Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
364             [% END %]
365             </li>
366         [% END %]
367
368         [% IF ( WTHDRAWN ) %]
369             <li>Item has been withdrawn</li>
370         [% END %]
371
372         [% IF ( RESTRICTED ) %]
373             <li>Item is restricted</li>
374         [% END %]
375
376         [% IF ( GNA ) %]
377             <li>Patron's address is in doubt</li>
378         [% END %]
379
380         [% IF ( CARD_LOST ) %]
381             <li>Patron's card is lost</li>
382         [% END %]
383
384         [% IF ( DEBARRED ) %]
385             <li>Patron is restricted</li>
386         [% END %]
387
388         [% IF ( NO_MORE_RENEWALS ) %]
389             <li>No more renewals possible</li>
390         [% END %]
391
392         [%IF ( AGE_RESTRICTION ) %]
393             <li>Age restriction [% AGE_RESTRICTION %].</li>
394         [% END %]
395
396         [% IF ( EXPIRED ) %]
397             <li>Patron's card is expired</li>
398         [% END %]
399
400         [% IF ( TOO_MANY ) %]
401             <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
402         [% END %]
403
404         [% IF ( ITEMNOTSAMEBRANCH ) %]
405             <li>This item belongs to [% Branches.GetName( itemhomebranch ) %] and cannot be checked out from this location.</li>
406         [% END %]
407
408         [% IF ( USERBLOCKEDREMAINING ) %]
409             <li>Patron has had overdue items and is blocked for [% USERBLOCKEDREMAINING %] day(s).</li>
410         [% END %]
411         
412             [% IF ( USERBLOCKEDOVERDUE ) %]
413             <li>Checkouts are BLOCKED because patron has overdue items</li>
414         [% END %]
415         </ul>
416
417 </div></div>
418 [% ELSE %]
419 [% IF ( soundon ) %]
420 <audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
421 [% END %]
422     [% END %] <!-- /impossible -->
423
424 [% IF ( issued ) %]
425 <p>Item checked out</p>
426 [% END %]
427
428 [% IF ( message ) %]
429 [% INCLUDE 'patron-toolbar.inc' %]
430 <h4>
431 No patron matched <span class="ex">[% message %]</span>
432 </h4>
433 [% END %]
434
435
436 [% IF ( CGIselectborrower ) %]
437 [% INCLUDE 'patron-toolbar.inc' %]
438
439 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
440 <fieldset id="circ_circulation_selectborrower" class="brief">
441     <legend>Patron selection</legend>
442
443     <input type="hidden" name="branch" value="[% branch %]" />
444     <input type="hidden" name="printer" value="[% printer %]" />
445     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
446     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
447
448 <ol>    <li>
449     <label for="borrowernumber">Select a patron: </label>
450     [% CGIselectborrower %]
451     </li>
452 </ol>
453 <p><input type="submit" value="Select" /></p>
454 </fieldset>
455 </form>
456 [% ELSE %] <!-- CGIselectborrower -->
457
458 <!-- BARCODE ENTRY -->
459
460 [% IF ( borrowernumber ) %]
461 <div class="yui-g">
462 [% UNLESS ( noissues ) %]
463 [% IF ( flagged ) %]
464 <div class="yui-u first">
465 [% ELSE %]
466 <div>
467
468 [% END %]
469
470
471 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
472 <fieldset id="circ_circulation_issue">
473     [% IF ( DisplayClearScreenButton ) %]
474         <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
475     [% END %]
476
477     <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
478
479         <div class="hint">Enter item barcode:</div>
480
481     [% IF NEEDSCONFIRMATION %]
482             <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
483     [% ELSE %]
484             <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
485     [% END %]
486     <button type="submit" class="btn">Check out</button>
487
488     [% IF ( SpecifyDueDate ) %]<div class="date-select">
489         <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
490         [% IF ( duedatespec ) %]<input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" readonly="readonly" />[% ELSE %]<input type="text" size="13" id="duedatespec" name="duedatespec" value="" readonly="readonly" />
491 [% END %]
492           <label for="stickyduedate"> Remember for session:</label>
493 [% IF ( stickyduedate ) %]
494 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
495 [% ELSE %]
496 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
497 [% END %]
498           <button class="btn btn-small action" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" >Clear</button>
499 </div>[% END %]
500           <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
501           <input type="hidden" name="branch" value="[% branch %]" />
502           <input type="hidden" name="printer" value="[% printer %]" />
503           <input type="hidden" name="print" value="maybe" />
504           <input type="hidden" name="debt_confirmed" value="[% debt_confirmed %]" />
505                 [% IF ( CHARGES ) %]
506                         <input type="hidden" name="charges" value="yes" />
507                         <input type="hidden" name="oldamount" value="[% amountold %]" />
508                 [% END %]
509 </fieldset>
510 </form></div>[% END %]<!-- /unless noissues -->
511
512 [% IF ( noissues ) %]<div>[% ELSE %]<div class="yui-u">[% END %]
513
514     [% IF ( flagged ) %]
515                 [% IF ( noissues ) %]
516                 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
517         <div id="circmessages" class="circmessage warning">
518                 [% ELSE %]
519         <div id="circmessages" class="circmessage attention">
520                 [% END %]
521
522                 <h3>[% IF ( noissues ) %]
523                         Cannot check out!
524                 [% ELSE %]Attention:[% END %]</h3>
525                 <ul>
526
527                         [% IF ( warndeparture ) %]
528                         <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
529                         Patron's card expires on [% expiry %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;cardnumber=[% 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=[% borrowernumber %]&amp;categorycode=[% categorycode %]">Edit Details</a>
530
531                         </li>
532                         [% END %]
533
534                         [% IF ( returnbeforeexpiry ) %]
535                          <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
536                          expiry date is before the date due, the date due will be set to the expiry date
537                          </li>
538                         [% END %]
539
540                         [% IF ( expired ) %]
541                         <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
542                         [% IF ( expiry ) %]Patron's card expired on [% expiry %][% END %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;cardnumber=[% 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=[% borrowernumber %]&amp;categorycode=[% categorycode %]">Edit Details</a>
543
544                         </li>
545                         [% END %]
546
547             [% IF ( gna ) %]
548                         <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
549                         [% END %]
550
551             [% IF ( lost ) %]
552                         <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
553                         [% END %]
554
555             [% IF ( userdebarred ) %]
556                <li class="blocker">
557                    <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
558
559                    [% IF ( userdebarreddate ) %]
560                        until [% userdebarreddate %]
561                    [% END %]
562
563                    [% IF ( debarredcomment ) %]
564                        with the explanation: <br/><i>[% debarredcomment | html_line_break %]</i>
565                    [% END %]
566
567                    <br/>
568                    <a class="btn btn-small" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="icon-ban-circle"></i> View restrictions</a>
569                </li>
570             [% END %]
571
572                 [% IF ( odues ) %]<li>[% IF ( nonreturns ) %]<span class="circ-hlt">Overdues:</span> Patron has <span class="circ-hlt">ITEMS OVERDUE</span>. See highlighted items <a href="#checkouts">below</a>[% END %]</li>
573             [% END %]
574
575                 [% IF ( charges ) %]
576                             <li>
577             <span class="circ-hlt">Fees &amp; Charges:</span> Patron has  <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Outstanding fees &amp; charges[% IF ( chargesamount ) %] of [% chargesamount %][% END %]</a>.
578                 [% IF ( charges_is_blocker ) %]
579                     Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
580                 [% END %]
581             <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Make payment</a></li>
582                         [% END %]
583
584                 [% IF ( credits ) %]
585                         <li>
586                 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
587             </li>
588                         [% END %]
589
590
591
592                         </ul>
593         </div>
594
595                         [% IF ( WaitingReserveLoop ) %]
596                         <div id="holdswaiting" class="circmessage">
597                     <h4>Holds waiting:</h4>
598                                 [% FOREACH WaitingReserveLoo IN WaitingReserveLoop %]
599                                     <ul>
600                                         <li> <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% WaitingReserveLoo.biblionumber %]">[% WaitingReserveLoo.title |html %]</a> ([% WaitingReserveLoo.itemtype %]), [% IF ( WaitingReserveLoo.author ) %]by [% WaitingReserveLoo.author %][% END %] [% IF ( WaitingReserveLoo.itemcallnumber ) %][[% WaitingReserveLoo.itemcallnumber %]] [% END %]Hold placed on [% WaitingReserveLoo.reservedate %].
601                                     [% IF ( WaitingReserveLoo.waitingat ) %]
602                                         <br />[% IF ( WaitingReserveLoo.waitinghere ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]Waiting at [% WaitingReserveLoo.waitingat %]</strong>
603                                     [% END %]
604                                         </li>
605                                     </ul>
606                             [% END %]
607                         </div>
608                         <!-- /If WaitingReserveLoop -->[% END %]
609         [% IF ( notes ) %]
610                         <div id="circnotes" class="circmessage">
611                         <h4>Notes:</h4>
612             <p><span class="circ-hlt">[% notesmsg %]</span></p>
613                         </div>
614
615
616     <!-- /If notes -->[% END %]
617
618         <div id="messages" class="circmessage">
619                 <h4>Messages:</h4>
620                 <ul>
621                         [% FOREACH lib_messages_loo IN lib_messages_loop %]
622                                 <li>
623                                         <span class="circ-hlt">
624                                                 [% lib_messages_loo.message_date_formatted %]
625                                                 [% lib_messages_loo.branchcode %]
626                                                 <i>"[% lib_messages_loo.message %]"</i>
627                                         </span>
628                                         [% IF ( lib_messages_loo.can_delete ) %]
629                                                 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&amp;borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
630                                         [% ELSE %]
631                                                 [% IF ( all_messages_del ) %]
632                                                         <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&amp;borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
633                                                 [% END %]
634                                         [% END %]
635                                 </li>
636                         [% END %]
637                         [% FOREACH bor_messages_loo IN bor_messages_loop %]
638                                 <li><span class="">[% bor_messages_loo.message_date_formatted %] [% bor_messages_loo.branchcode %] <i>"[% bor_messages_loo.message %]"</i></span> [% IF ( bor_messages_loo.can_delete ) %]<a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% bor_messages_loo.message_id %]&amp;borrowernumber=[% bor_messages_loo.borrowernumber %]">[Delete]</a>
639                 [% ELSIF ( all_messages_del ) %]
640                     <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% bor_messages_loo.message_id %]&amp;borrowernumber=[% bor_messages_loo.borrowernumber %]">[Delete]</a>
641                 [% END %]</li>
642                         [% END %]
643
644                 </ul>
645         </div>  
646         
647      <!-- /If flagged -->[% END %]
648
649         
650
651 </div>
652 </div>
653
654 <div class="yui-g"><div id="patronlists" class="toptabs">
655
656 <ul>
657     <li>
658         [% IF ( issuecount ) %]
659             <a href="#checkouts">[% issuecount %] Checkout(s)</a>
660         [% ELSE %]
661             <a href="#checkouts">0 Checkouts</a>
662         [% END %]
663     </li>
664
665     [% IF relatives_issues_count %]
666         <li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li>
667     [% END %]
668
669     <li>
670         [% IF ( holds_count ) %]
671             <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
672         [% ELSE %]
673             <a href="#reserves" id="holds-tab">0 Holds</a>
674         [% END %]
675     </li>
676
677     <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
678 </ul>
679
680 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
681 <div id="checkouts">
682     [% IF ( issuecount ) %]
683         <table id="issues-table">
684             <thead>
685                 <tr>
686                     <th scope="col">&nbsp;</th>
687                     <th scope="col">Due date</th>
688                     <th scope="col">Due date</th>
689                     <th scope="col">Title</th>
690                     <th scope="col">Item type</th>
691                     <th scope="col">Checked out on</th>
692                     <th scope="col">Checked out from</th>
693                     <th scope="col">Call no</th>
694                     <th scope="col">Charge</th>
695                     <th scope="col">Price</th>
696                     <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllRenewals">select all</a> | <a href="#" id="UncheckAllRenewals">none</a></p></th>
697                     <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllCheckins">select all</a> | <a href="#" id="UncheckAllCheckins">none</a></p></th>
698                     <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllExports">select all</a> | <a href="#" id="UncheckAllExports">none</a></p></th>
699                 </tr>
700             </thead>
701             [% INCLUDE 'checkouts-table-footer.inc' %]
702         </table>
703
704         <fieldset class="action">
705             [% IF ( CAN_user_circulate_override_renewals ) %]
706                 [% IF ( AllowRenewalLimitOverride ) %]
707                     <label for="override_limit">Override renewal limit:</label>
708                     <input type="checkbox" name="override_limit" id="override_limit" value="1" />
709                 [% END %]
710             [% END %]
711             <button class="btn" id="RenewCheckinChecked"><i class="icon-check"></i> Renew or return checked items</button>
712             <button class="btn" id="RenewAll"><i class="icon-book"></i> Renew all</button>
713         </fieldset>
714     [% ELSE %]
715         <p>Patron has nothing checked out.</p>
716     [% END %]
717 </div>
718
719 [% IF ( relatives_issues_count ) %]
720     <div id="relatives-issues">
721         <table id="relatives-issues-table">
722             <thead>
723                 <tr>
724                     <th scope="col">Due date</th>
725                     <th scope="col">Title</th>
726                     <th scope="col">Item type</th>
727                     <th scope="col">Checked out on</th>
728                     <th scope="col">Checked out from</th>
729                     <th scope="col">Call no</th>
730                     <th scope="col">Charge</th>
731                     <th scope="col">Price</th>
732                     <th scope="col">Patron</th>
733                 </tr>
734             </thead>
735         </table>
736     </div>
737 [% END %]
738
739 [% INCLUDE borrower_debarments.inc %]
740
741 <div id="reserves">
742 [% IF ( holds_count ) %]
743     <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
744         <input type="hidden" name="from" value="circ" />
745         <table id="holds-table" style="width: 100% !Important;">
746             <thead>
747                 <tr>
748                     <th>Hold date</th>
749                     <th>Title</th>
750                     <th>Call number</th>
751                     <th>Barcode</th>
752                     <th>Expiration</th>
753                     <th>Priority</th>
754                     <th>Delete?</th>
755                 </tr>
756             </thead>
757         </table>
758
759         <fieldset class="action">
760             <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
761         </fieldset>
762     </form>
763
764     [% IF SuspendHoldsIntranet %]
765     <fieldset class="action">
766         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
767             <input type="hidden" name="from" value="circ" />
768             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
769             <input type="submit" value="Suspend all holds" />
770
771             [% IF AutoResumeSuspendedHolds %]
772             <label for="suspend_until">until</label>
773             <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker" />
774             <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
775              [% END %]
776         </form>
777     </fieldset>
778
779     <fieldset class="action">
780         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
781             <input type="hidden" name="from" value="circ" />
782             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
783             <input type="hidden" name="suspend" value="0" />
784             <input type="submit" value="Resume all suspended holds" />
785         </form>
786     </fieldset>
787     [% END # IF SuspendHoldsIntranet %]
788
789 [% ELSE %]
790         <p>Patron has nothing on hold.</p>
791 [% END %]
792 </div> <!-- reservesloop -->
793
794 [% END %] <!-- borrowernumber -->
795 </div></div>
796 [% END %]
797
798
799
800 </div>
801 </div>
802 [% UNLESS ( CGIselectborrower ) %][% IF ( borrowernumber ) %]<div class="yui-b">
803 [% INCLUDE 'circ-menu.inc' %]
804 </div>[% END %][% END %]
805 </div>
806 [% INCLUDE 'intranet-bottom.inc' %]