Bug 12000: ensure that hold resumption dates can be set only to future dates
[koha.git] / 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 [% IF ( UseTablesortForCirc ) %]<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
17 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
18 [% INCLUDE 'datatables-strings.inc' %]
19 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>[% END %]
20 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
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="[% themelang %]/js/pages/circulation.js"></script>
24 <script type="text/javascript">
25 //<![CDATA[
26 var MSG_ADD_MESSAGE = _("Add a new message");
27 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
28 [% IF ( UseTablesortForCirc && dateformat == 'metric' ) %]dt_add_type_uk_date();[% END %]
29 [% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %]
30 [% UNLESS ( borrowernumber ) %][% UNLESS ( CGIselectborrower ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
31          $(document).ready(function() {
32         $('#patronlists').tabs([% IF ( UseTablesortForCirc ) %]{
33             // Correct table sizing for tables hidden in tabs
34             // http://www.datatables.net/examples/api/tabs_and_scrolling.html
35             "show": function(event, ui) {
36                 var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
37                 if ( oTable.length > 0 ) {
38                     oTable.fnAdjustColumnSizing();
39                 }
40             }
41         }[% END %]);
42         [% IF ( UseTablesortForCirc ) %]
43         $("#issuest").dataTable($.extend(true, {}, dataTablesDefaults, {
44             "sDom": 't',
45             "aaSorting": [],
46             "aoColumnDefs": [
47                 { "aTargets": [ -1, -2[% IF ( exports_enabled ) %], -3[% END %] ], "bSortable": false, "bSearchable": false }
48             ],
49             "aoColumns": [
50                 { "sType": "title-string" },{ "sType": "html" },null,{ "sType": "title-string" },null,null,null,null,null,null[% IF ( exports_enabled ) %],null[% END %]
51             ],
52             "bPaginate": false
53         }));
54
55         $("#relissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
56             "sDom": 't',
57             "aaSorting": [],
58             "aoColumns": [
59                 { "sType": "title-string" },{ "sType": "html" },null,{ "sType": "title-string" },null,null,null,null,{ "sType": "html" }
60             ],
61             "bPaginate": false
62         }));
63
64         $("#issuest").on("sort",function() {
65             $("#previous").hide();  // Don't want to see "previous checkouts" header sorted with other rows
66         });
67         $("#relissuest").on("sort",function() {
68             $("#relprevious").hide();  // Don't want to see "previous checkouts" header sorted with other rows
69         });
70         [% END %]
71         [% IF ( AllowRenewalLimitOverride ) %]
72         $( '#override_limit' ).click( function () {
73             if ( this.checked ) {
74                 $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
75             } else {
76                 $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
77             }
78         } ).attr( 'checked', false );
79         [% END %][% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
80         // listen submit to trigger qslip on empty checkout
81         $('#mainform').bind('submit',function() {
82           if ($('#barcode').val() == '') {
83             return printx_window( '[% CircAutoPrintQuickSlip %]' ); }
84         });[% END %]
85
86     [% IF ( CAN_user_circulate_override_renewals ) %]
87     [% IF ( AllowRenewalLimitOverride ) %]
88     $( '#override_limit' ).click( function () {
89         if ( this.checked ) {
90            $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
91         } else {
92            $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
93         }
94     } ).attr( 'checked', false );
95     [% END %]
96     [% END %]
97     [% IF AutoResumeSuspendedHolds %]
98         $("#suspend_until").datepicker("option", "minDate", 1); // require that hold suspended until date is after today
99     [% END %]
100  });
101 //]]>
102 </script>
103 </head>
104 <body id="circ_circulation" class="circ">
105
106 [% INCLUDE 'header.inc' %]
107 [% INCLUDE 'circ-search.inc' %]
108
109 <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;
110 [% IF ( borrowernumber ) %]
111     <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> &rsaquo; [% INCLUDE 'patron-title.inc' %]
112 [% ELSE %]
113     <strong>Checkouts</strong>
114 [% END %]
115 </div>
116 [% IF ( CGIselectborrower ) %]
117 <div id="doc" class="yui-t7">
118
119    <div id="bd">
120         <div id="yui-main">
121         <div class="yui-g">
122 [% ELSE %]
123 <div id="doc3" class="yui-t2">
124
125    <div id="bd">
126         <div id="yui-main">
127         <div class="yui-b">
128 [% END %]
129
130 [% IF ( borrowernumber ) %]
131 [% INCLUDE 'members-toolbar.inc' %]
132 [% END %]
133
134 <!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
135 <div style="display: none;" id="add_message_form">
136 <form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f">
137 <fieldset id="borrower_messages" class="brief">
138 <legend>Leave a message</legend>
139         <ol>
140     <li>
141             <label for="message_type">Add a message for:</label>
142           <select name="message_type" id="message_type">
143             <option value="L">Other librarians</option>
144             <option value="B">[% firstname %]</option>
145         </select>
146     </li>
147     [% IF ( canned_bor_notes_loop ) %]
148         <li>
149                 <label for="type">Predefined notes: </label>
150                 <select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;">
151                     <option value="">Select note</option>
152                     [% FOREACH canned_bor_notes_loo IN canned_bor_notes_loop %]
153                     <option value="[% canned_bor_notes_loo.lib %]">[% canned_bor_notes_loo.lib %]</option>
154                     [% END %]
155                 </select>
156         </li>
157     [% END %]
158     <li>
159         <textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea>
160     </li>
161         </ol>
162     <fieldset class="action">
163         <input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a>
164     </fieldset>
165
166         <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
167         <input type="hidden" name="branchcode" value="[% branch %]" />
168 </fieldset>
169 </form>
170 </div>
171
172 [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry %]</div>[% END %]
173
174 [% IF additional_materials %]
175     <div id="materials" class="dialog message">Note about the accompanying materials: <br />
176     [% additional_materials %]
177     </div>
178 [% END %]
179
180 [% IF ( alert.ITEM_LOST ) %]
181     <div class="dialog message">This item has been lost with a status of "[% alert.ITEM_LOST %]".</div>
182 [% END %]
183
184 [% IF ( alert.OTHER_CHARGES ) %]
185     <div class="dialog message">The patron has unpaid charges for reserves, rentals etc of [% alert.OTHER_CHARGES %]</div>
186 [% END %]
187
188 [% IF ( NEEDSCONFIRMATION ) %]
189 <div class="yui-g">
190
191 <div id="circ_needsconfirmation" class="dialog alert">
192 [% IF CAN_user_circulate_force_checkout %]
193   <h3>Please confirm checkout</h3>
194 [% ELSE %]
195   <h3>Cannot check out</h3>
196 [% END %]
197
198 <ul>
199 [%IF ( AGE_RESTRICTION ) %]
200     <li>Age restriction [% AGE_RESTRICTION %].
201       [% IF CAN_user_circulate_force_checkout %]
202         Check out anyway?
203       [% END %]
204     </li>
205 [% END %]
206
207 [% IF ( DEBT ) %]
208     <li>The patron has a debt of [% DEBT %]</li>
209 [% END %]
210
211 [% IF ( RENEW_ISSUE ) %]
212     <li>Item <i>[% getTitleMessageIteminfo %]</i> ([% getBarcodeMessageIteminfo %]) is currently checked out to this patron.  Renew?</li>
213 [% END %]
214
215 [% IF ( RESERVE_WAITING ) %]
216     <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>
217 [% END %]
218
219 [% IF ( RESERVED ) %]
220     <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>
221 [% END %]
222
223 [% IF ( ISSUED_TO_ANOTHER ) %]
224     <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 %]).
225       [% IF CAN_user_circulate_force_checkout %]
226         Check in and check out?
227       [% END %]
228     </li>
229 [% END %]
230
231 [% IF ( TOO_MANY ) %]
232     <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
233 [% END %]
234
235 [% IF ( BORRNOTSAMEBRANCH ) %]
236     <li>This patrons is from a different library ([% BORRNOTSAMEBRANCH %])</li>
237 [% END %]
238
239 [% IF ( PATRON_CANT ) %]
240     <li>This patron can't check out this item per library circulation policy</li>
241 [% END %]
242
243 [% IF ( NOT_FOR_LOAN_FORCING ) %]
244     <li>
245     [% IF ( itemtype_notforloan ) %]
246         Item type is normally not for loan.
247     [% ELSIF ( item_notforloan ) %]
248         [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
249         Item is normally not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
250     [% END %]
251       [% IF CAN_user_circulate_force_checkout %]
252         Check out anyway?
253       [% END %]
254     </li>
255 [% END %]
256
257 [% IF ( USERBLOCKEDOVERDUE ) %]
258     <li>Patron has [% USERBLOCKEDOVERDUE %] overdue item(s).
259       [% IF CAN_user_circulate_force_checkout %]
260        Check out anyway?
261       [% END %]
262     </li>
263 [% END %]
264
265 [% IF ( ITEM_LOST ) %]
266     <li>This item has been lost with a status of "[% ITEM_LOST %]".
267       [% IF CAN_user_circulate_force_checkout %]
268         Check out anyway?
269       [% END %]
270     </li>
271 [% END %]
272
273 [% IF  HIGHHOLDS %]
274     <li>High demand item. Loan period shortened to [% HIGHHOLDS.duration %] days (due [% HIGHHOLDS.returndate %]). Check out anyway?</li>
275 [% END %]
276 </ul>
277
278 [% IF HIGHHOLDS %]
279         <script language="JavaScript" type="text/javascript">
280         $(document).ready(function() {
281                 $("input[name=duedatespec]:hidden").val('[% HIGHHOLDS.returndate %]');
282         });
283         </script>
284 [% END %]
285
286 [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
287 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
288
289 [% IF ( RESERVED ) %]
290     <p>
291     <input type="checkbox" id="cancelreserve" name="cancelreserve" value="cancel" />
292     <label for="cancelreserve">Cancel hold</label>
293     </p>
294 [% END %]
295
296 [% IF ( RESERVE_WAITING ) %]
297 <p>
298     <label for="cancelreserve">Cancel hold</label>
299     <input type="radio" value="cancel" name="cancelreserve" id="cancelreserve" /><br />
300     <label for="revertreserve">Revert waiting status</label>
301     <input type="radio" value="revert" name="cancelreserve" id="revertreserve" checked="checked"/>
302 </p>
303 [% END %]
304
305     <input type="hidden" name="barcode" value="[% barcode |html %]" />
306     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
307     <input type="hidden" name="issueconfirmed" value="1" />
308     [% IF ( DEBT ) %]<input type="hidden" name="debt_confirmed" value="1" />[% END %]
309     [% IF ( INVALID_DATE ) %]
310     <p>
311     <input type="text" size="13" id="duedatespec" name="duedatespec" readonly="readonly" value="[% duedatespec %]" />
312     <label for="duedatespec">Due date</label>
313     </p>
314     [% ELSE %]
315     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
316     [% END %]
317     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
318     <input type="hidden" name="branch" value="[% branch %]" />
319     [% IF ( RENEW_ISSUE ) %]
320     <input type="submit" class="approve" value="Yes, Renew (Y)" accesskey="y" />
321     [% ELSE %]
322     <input type="submit" class="approve" value="Yes, Check Out (Y)" accesskey="y" />
323     [% END %]
324 </form>
325 [% END %]
326
327 <form method="get" action="/cgi-bin/koha/circ/circulation.pl">
328     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
329     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
330     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
331     [% IF CAN_user_circulate_force_checkout or HIGHHOLDS %]
332         [% IF ( RENEW_ISSUE ) %]
333         <input type="submit" class="deny" value="No, Don't Renew (N)" accesskey="n" />
334         [% ELSE %]
335         <input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
336         [% END %]
337     [% ELSE %]
338         <input type="submit" class="deny" value="Continue" />
339     [% END %]
340 </form>
341
342 </div></div>
343 [% END %] <!-- NEEDSCONFIRMATION -->
344
345         [% IF ( IMPOSSIBLE ) %]
346
347 [% IF ( soundon ) %]
348 <audio src="[% interface %]/[% theme %]/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
349 [% END %]        
350
351 <div class="yui-g">
352 <div id="circ_impossible" class="dialog alert">
353 <!-- RESULT OF ISSUING REQUEST -->
354         <ul>
355         [% IF ( STATS ) %]
356             <li>Local use recorded</li>
357         [% END %]
358
359         [% IF ( INVALID_DATE ) %]
360             <li>The due date &quot;[% INVALID_DATE %]&quot; is invalid</li>
361         [% END %]
362
363         [% IF ( UNKNOWN_BARCODE ) %]
364             <li>The barcode was not found [% barcode |html %]
365             [% IF ( fast_cataloging ) %]
366                 [% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
367             <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>
368                 [% END %]
369             [% END %]
370
371         [% IF ( FALLBACK ) %]
372             [% IF options %]
373                 <br />The following items were found by searching:
374                 [% FOREACH book IN options %]
375                     <br />
376                     <form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
377                         <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
378                         <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
379                         <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
380                         <input type="hidden" name="branch" value="[% branch %]" />
381                         <input type="hidden" name="barcode" value="[% book.barcode %]" />
382                         <input type="submit" name="x" value="Check out [% book.barcode %]: [% book.title %]" />
383                     </form>
384                 [% END %]
385             [% ELSE %]
386                 <br />No items were found by searching.
387             [% END %]
388         [% END %]
389
390      </li>
391         [% END %]
392
393         [% IF ( NOT_FOR_LOAN ) %]
394             <li>
395             [% IF ( itemtype_notforloan ) %]
396                 Item type not for loan.
397             [% ELSIF ( item_notforloan ) %]
398                 [% item_notforloan_lib = AuthorisedValues.GetByCode( authvalcode_notforloan, item_notforloan, 0 ) %]
399                 Item not for loan [% IF (item_notforloan_lib) %]([% item_notforloan_lib %])[% END %].
400             [% END %]
401             </li>
402         [% END %]
403
404         [% IF ( WTHDRAWN ) %]
405             <li>Item has been withdrawn</li>
406         [% END %]
407
408         [% IF ( RESTRICTED ) %]
409             <li>Item is restricted</li>
410         [% END %]
411
412         [% IF ( GNA ) %]
413             <li>Patron's address is in doubt</li>
414         [% END %]
415
416         [% IF ( CARD_LOST ) %]
417             <li>Patron's card is lost</li>
418         [% END %]
419
420         [% IF ( DEBARRED ) %]
421             <li>Patron is restricted</li>
422         [% END %]
423
424         [% IF ( NO_MORE_RENEWALS ) %]
425             <li>No more renewals possible</li>
426         [% END %]
427
428         [%IF ( AGE_RESTRICTION ) %]
429             <li>Age restriction [% AGE_RESTRICTION %].</li>
430         [% END %]
431
432         [% IF ( EXPIRED ) %]
433             <li>Patron's card is expired</li>
434         [% END %]
435
436         [% IF ( TOO_MANY ) %]
437             <li>Too many checked out. [% current_loan_count %] checked out, only [% max_loans_allowed %] are allowed.</li>
438         [% END %]
439
440         [% IF ( ITEMNOTSAMEBRANCH ) %]
441             <li>This item belongs to [% Branches.GetName( itemhomebranch ) %] and cannot be checked out from this location.</li>
442         [% END %]
443
444         [% IF ( USERBLOCKEDREMAINING ) %]
445             <li>Patron has had overdue items and is blocked for [% USERBLOCKEDREMAINING %] day(s).</li>
446         [% END %]
447         
448             [% IF ( USERBLOCKEDOVERDUE ) %]
449             <li>Checkouts are BLOCKED because patron has overdue items</li>
450         [% END %]
451         </ul>
452
453 </div></div>
454 [% ELSE %]
455 [% IF ( soundon ) %]
456 <audio src="[% interface %]/[% theme %]/sound/beep.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
457 [% END %]
458     [% END %] <!-- /impossible -->
459
460 [% IF ( issued ) %]
461 <p>Item checked out</p>
462 [% END %]
463
464 [% IF ( message ) %]
465 [% INCLUDE 'patron-toolbar.inc' %]
466 <h4>
467 No patron matched <span class="ex">[% message %]</span>
468 </h4>
469 [% END %]
470
471
472 [% IF ( CGIselectborrower ) %]
473 [% INCLUDE 'patron-toolbar.inc' %]
474
475 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
476 <fieldset id="circ_circulation_selectborrower" class="brief">
477     <legend>Patron selection</legend>
478
479     <input type="hidden" name="branch" value="[% branch %]" />
480     <input type="hidden" name="printer" value="[% printer %]" />
481     <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
482     <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
483
484 <ol>    <li>
485     <label for="borrowernumber">Select a patron: </label>
486     [% CGIselectborrower %]
487     </li>
488 </ol>
489 <p><input type="submit" value="Select" /></p>
490 </fieldset>
491 </form>
492 [% ELSE %] <!-- CGIselectborrower -->
493
494 <!-- BARCODE ENTRY -->
495
496 [% IF ( borrowernumber ) %]
497 <div class="yui-g">
498 [% UNLESS ( noissues ) %]
499 [% IF ( flagged ) %]
500 <div class="yui-u first">
501 [% ELSE %]
502 <div>
503
504 [% END %]
505
506
507 <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
508 <fieldset id="circ_circulation_issue">
509     [% IF ( DisplayClearScreenButton ) %]
510         <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
511     [% END %]
512
513     <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
514
515         <div class="hint">Enter item barcode:</div>
516
517     [% IF NEEDSCONFIRMATION %]
518             <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
519     [% ELSE %]
520             <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
521     [% END %]
522     <input type="submit" value="Check Out" />
523
524     [% IF ( SpecifyDueDate ) %]<div class="date-select">
525         <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
526         [% 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" />
527 [% END %]
528           <label for="stickyduedate"> Remember for session:</label>
529 [% IF ( stickyduedate ) %]
530 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
531 [% ELSE %]
532 <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
533 [% END %]
534           <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;" />
535 </div>[% END %]
536           <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
537           <input type="hidden" name="branch" value="[% branch %]" />
538           <input type="hidden" name="printer" value="[% printer %]" />
539           <input type="hidden" name="print" value="maybe" />
540           <input type="hidden" name="debt_confirmed" value="[% debt_confirmed %]" />
541                 [% IF ( CHARGES ) %]
542                         <input type="hidden" name="charges" value="yes" />
543                         <input type="hidden" name="oldamount" value="[% amountold %]" />
544                 [% END %]
545 </fieldset>
546 </form></div>[% END %]<!-- /unless noissues -->
547
548 [% IF ( noissues ) %]<div>[% ELSE %]<div class="yui-u">[% END %]
549
550     [% IF ( flagged ) %]
551                 [% IF ( noissues ) %]
552                 <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
553         <div id="circmessages" class="circmessage warning">
554                 [% ELSE %]
555         <div id="circmessages" class="circmessage attention">
556                 [% END %]
557
558                 <h3>[% IF ( noissues ) %]
559                         Cannot check out!
560                 [% ELSE %]Attention:[% END %]</h3>
561                 <ul>
562
563                         [% IF ( warndeparture ) %]
564                         <li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
565                         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>
566
567                         </li>
568                         [% END %]
569
570                         [% IF ( returnbeforeexpiry ) %]
571                          <li><span class="circ-hlt">Set due date to expiry:</span> You have the ReturnBeforeExpiry system preference enabled this means if the
572                          expiry date is before the date due, the date due will be set to the expiry date
573                          </li>
574                         [% END %]
575
576                         [% IF ( expired ) %]
577                         <li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
578                         [% 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>
579
580                         </li>
581                         [% END %]
582
583             [% IF ( gna ) %]
584                         <li class="blocker"><span class="circ-hlt">Address:</span> Patron's address in doubt</li>
585                         [% END %]
586
587             [% IF ( lost ) %]
588                         <li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
589                         [% END %]
590
591             [% IF ( userdebarred ) %]
592                <li class="blocker">
593                    <span class="circ-hlt"> Restricted:</span> Patron's account is restricted
594
595                    [% IF ( userdebarreddate ) %]
596                        until [% userdebarreddate %]
597                    [% END %]
598
599                    [% IF ( debarredcomment ) %]
600                        with the explanation: <br/><i>[% debarredcomment | html_line_break %]</i>
601                    [% END %]
602
603                    <br/>
604                    <a class="btn btn-small" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="icon-ban-circle"></i> View restrictions</a>
605                </li>
606             [% END %]
607
608                 [% 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>
609             [% END %]
610
611                 [% IF ( charges ) %]
612                             <li>
613             <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>.
614                 [% IF ( charges_is_blocker ) %]
615                     Checkouts are <span class="circ-hlt">BLOCKED</span> because fine balance is <span class="circ-hlt">OVER THE LIMIT</span>.
616                 [% END %]
617             <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Make payment</a></li>
618                         [% END %]
619
620                 [% IF ( credits ) %]
621                         <li>
622                 <span class="circ-hlt">Credits:</span> Patron has a credit[% IF ( creditsamount ) %] of [% creditsamount %][% END %]
623             </li>
624                         [% END %]
625
626
627
628                         </ul>
629         </div>
630
631                         [% IF ( WaitingReserveLoop ) %]
632                         <div id="holdswaiting" class="circmessage">
633                     <h4>Holds waiting:</h4>
634                                 [% FOREACH WaitingReserveLoo IN WaitingReserveLoop %]
635                                     <ul>
636                                         <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 %].
637                                     [% IF ( WaitingReserveLoo.waitingat ) %]
638                                         <br />[% IF ( WaitingReserveLoo.waitinghere ) %]<strong class="waitinghere">[% ELSE %]<strong>[% END %]Waiting at [% WaitingReserveLoo.waitingat %]</strong>
639                                     [% END %]
640                                         </li>
641                                     </ul>
642                             [% END %]
643                         </div>
644                         <!-- /If WaitingReserveLoop -->[% END %]
645         [% IF ( notes ) %]
646                         <div id="circnotes" class="circmessage">
647                         <h4>Notes:</h4>
648             <p><span class="circ-hlt">[% notesmsg %]</span></p>
649                         </div>
650
651
652     <!-- /If notes -->[% END %]
653
654         <div id="messages" class="circmessage">
655                 <h4>Messages:</h4>
656                 <ul>
657                         [% FOREACH lib_messages_loo IN lib_messages_loop %]
658                                 <li>
659                                         <span class="circ-hlt">
660                                                 [% lib_messages_loo.message_date_formatted %]
661                                                 [% lib_messages_loo.branchcode %]
662                                                 <i>"[% lib_messages_loo.message %]"</i>
663                                         </span>
664                                         [% IF ( lib_messages_loo.can_delete ) %]
665                                                 <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&amp;borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
666                                         [% ELSE %]
667                                                 [% IF ( all_messages_del ) %]
668                                                         <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% lib_messages_loo.message_id %]&amp;borrowernumber=[% lib_messages_loo.borrowernumber %]">[Delete]</a>
669                                                 [% END %]
670                                         [% END %]
671                                 </li>
672                         [% END %]
673                         [% FOREACH bor_messages_loo IN bor_messages_loop %]
674                                 <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>
675                 [% ELSIF ( all_messages_del ) %]
676                     <a href="/cgi-bin/koha/circ/del_message.pl?message_id=[% bor_messages_loo.message_id %]&amp;borrowernumber=[% bor_messages_loo.borrowernumber %]">[Delete]</a>
677                 [% END %]</li>
678                         [% END %]
679
680                 </ul>
681         </div>  
682         
683      <!-- /If flagged -->[% END %]
684
685         
686
687 </div>
688 </div>
689
690 <div class="yui-g"><div id="patronlists" class="toptabs">
691
692 <ul>
693 <li>    [% IF ( issuecount ) %]
694             <a href="#checkouts">[% issuecount %] Checkout(s)</a>
695     [% ELSE %]
696             <a href="#checkouts">0 Checkouts</a>
697     [% END %]</li>
698 [% IF ( displayrelissues ) %]
699 <li><a href="#relissues">Relatives' checkouts</a></li>
700 [% END %]
701 <li>[% IF ( countreserv ) %]
702             <a href="#reserves">[% countreserv %] Hold(s)</a>
703     [% ELSE %]
704             <a href="#reserves">0 Holds</a>
705     [% END %]</li>
706     <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
707
708 </ul>
709
710 <!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
711 <div id="checkouts">
712 [% IF ( issuecount ) %]
713     <form name="issues" action="/cgi-bin/koha/reserve/renewscript.pl" method="post" class="checkboxed">
714     <input type="hidden" value="circ" name="destination" />
715     <input type="hidden" name="cardnumber" value="[% cardnumber %]" />
716     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
717     <input type="hidden" name="branch" value="[% branch %]" />
718         <table id="issuest">
719     <thead><tr>
720         <th scope="col">Due date</th>
721         <th scope="col">Title</th>
722         <th scope="col">Item type</th>
723         <th scope="col">Checked out on</th>
724         <th scope="col">Checked out from</th>
725         <th scope="col">Call no</th>
726         <th scope="col">Charge</th>
727         <th scope="col">Price</th>
728         <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th>
729         <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
730         [% IF ( exports_enabled ) %]
731           <th scope="col">Export <p class="column-tool"><a href="#" id="CheckAllexports">select all</a> | <a href="#" id="CheckNoexports">none</a></p></th>
732         [% END %]
733     </tr></thead>
734 [% IF ( todayissues ) %]
735 [% INCLUDE 'checkouts-table-footer.inc' %]
736         <tbody>
737
738     [% FOREACH todayissue IN todayissues %]
739     [% IF ( loop.odd ) %]
740     <tr>
741     [% ELSE %]
742     <tr class="highlight">
743     [% END %]
744         [% IF ( todayissue.od ) %]<td class="od">[% ELSE %]<td>[% END %]
745         <span title="[% todayissue.dd_sort %]">[% todayissue.dd %]</span>
746
747             [% IF ( todayissue.itemlost ) %]
748                 <span class="lost">[% AuthorisedValues.GetByCode( 'LOST', todayissue.itemlost ) %]</span>
749             [% END %]
750             [% IF ( todayissue.damaged ) %]
751                 <span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', todayissue.damaged ) %]</span>
752             [% END %]
753         </td>
754         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% todayissue.biblionumber %]&amp;type=intra"><strong>[% todayissue.title |html %][% FOREACH subtitl IN todayissue.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( todayissue.author ) %], by [% todayissue.author %][% END %][% IF ( todayissue.itemnotes ) %]- <span class="circ-hlt">[% todayissue.itemnotes %]</span>[% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% todayissue.biblionumber %]&amp;itemnumber=[% todayissue.itemnumber %]#item[% todayissue.itemnumber %]">[% todayissue.barcode %]</a></td>
755         <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( todayissue.itemtype_image ) %]<img src="[% todayissue.itemtype_image %]" alt="" />[% END %][% END %][% todayissue.itemtype %]</td>
756         <td><span title="[% todayissue.displaydate_sort %]">[% todayissue.checkoutdate %]</span></td>
757         [% IF ( todayissue.multiple_borrowers ) %]<td>[% todayissue.firstname %] [% todayissue.surname %]</td>[% END %]
758         <td>[% todayissue.issuingbranchname %]</td>
759         <td>[% todayissue.itemcallnumber %]</td>
760             <td>[% todayissue.charge %]</td>
761             <td>[% todayissue.replacementprice %]</td>
762       [% IF ( todayissue.renew_failed ) %]
763             <td class="problem">Renewal failed</td>
764       [% ELSE %]
765         <td><span style="padding: 0 1em;">[% IF ( todayissue.renewals ) %][% todayissue.renewals %][% ELSE %]0[% END %]</span>
766         [% IF ( todayissue.can_renew ) %]
767         <input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" />
768         [% IF ( todayissue.od ) %]
769             <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" />
770         [% ELSE %]
771             <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" />
772         [% END %]
773             [% IF todayissue.renewsallowed && todayissue.renewsleft %]
774                 <span class="renewals">([% todayissue.renewsleft %] of [% todayissue.renewsallowed %] renewals remaining)</span>
775             [% END %]
776         [% ELSE %]
777             [% IF ( todayissue.can_confirm ) %]<span class="renewals-allowed" style="display: none">
778                 <input type="checkbox" name="all_items[]" value="[% todayissue.itemnumber %]" checked="checked" style="display: none;" />
779                 [% IF ( todayissue.od ) %]
780                     <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" checked="checked" />
781                 [% ELSE %]
782                     <input type="checkbox" class="radio" name="items[]" value="[% todayissue.itemnumber %]" />
783                 [% END %]
784                 </span>
785                 [% IF todayissue.renewsallowed && todayissue.renewsleft %]
786                     <span class="renewals">([% todayissue.renewsleft %] of [% todayissue.renewsallowed %] renewals remaining)</span>
787                 [% END %]
788                 <span class="renewals-disabled">
789             [% END %]
790                 [% IF ( todayissue.renew_error_on_reserve ) %]
791             <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a>
792                 [% END %]
793                 [% IF ( todayissue.renew_error_too_many ) %]
794             Not renewable
795                 [% END %]
796             [% IF ( todayissue.can_confirm ) %]
797                 </span>
798             [% END %]
799         [% END %]
800         </td>
801         [% END %]
802         [% IF ( todayissue.return_failed ) %]
803             <td class="problem">Checkin failed</td>
804         [% ELSE %]
805             [% IF ( todayissue.renew_error_on_reserve ) %]
806                <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% todayissue.biblionumber %]">On hold</a>
807                 <input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" />
808                 </td>
809             [% ELSE %]
810             <td><input type="checkbox" class="radio" name="barcodes[]"  value="[% todayissue.barcode %]" />
811                 <input type="checkbox" name="all_barcodes[]" value="[% todayissue.barcode %]" checked="checked" style="display: none;" />
812             </td>
813             [% END %]
814         [% END %]
815         [% IF ( exports_enabled ) %]
816           <td style="text-align:center;">
817             <input type="checkbox" id="export_[% todayissue.biblionumber %]" name="biblionumbers" value="[% todayissue.biblionumber %]" />
818             <input type="checkbox" name="itemnumbers" value="[% todayissue.itemnumber %]" style="visibility:hidden;" />
819           </td>
820         [% END %]
821     </tr>
822     [% END %] <!-- /loop todayissues -->
823     <!-- /if todayissues -->[% END %]
824
825 [% IF ( previssues ) %]
826     [% UNLESS ( todayissues ) %]
827     [% INCLUDE 'checkouts-table-footer.inc' %]
828         <tbody>
829     [% END %]
830     [% IF ( UseTablesortForCirc ) %]<tr id="previous"><th><span title="">Previous checkouts</span></th><th></th><th></th><th><span title=""></span></th><th></th><th></th><th></th><th></th><th></th><th></th>[% IF ( exports_enabled ) %]<th></th>[% END %]</tr>[% ELSE %]<tr id="previous">[% IF ( exports_enabled ) %]<th colspan="11">[% ELSE %]<th colspan="10">[% END %]Previous checkouts</th></tr>[% END %]
831     [% FOREACH previssue IN previssues %]
832     [% IF ( loop.odd ) %]
833         <tr>
834     [% ELSE %]
835         <tr class="highlight">
836     [% END %]
837         [% IF ( previssue.od ) %]<td class="od">[% ELSE %]<td>[% END %]
838         <span title="[% previssue.dd_sort %]">[% previssue.dd %]</span>
839
840             [% IF ( previssue.itemlost ) %]
841                 <span class="lost">[% AuthorisedValues.GetByCode( 'LOST', previssue.itemlost ) %]</span>
842             [% END %]
843             [% IF ( previssue.damaged ) %]
844                 <span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', previssue.damaged ) %]</span>
845             [% END %]
846         </td>
847         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% previssue.biblionumber %]&amp;type=intra"><strong>[% previssue.title |html %][% FOREACH subtitl IN previssue.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( previssue.author ) %], by [% previssue.author %][% END %] [% IF ( previssue.itemnotes ) %]- [% previssue.itemnotes %][% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% previssue.biblionumber %]&amp;itemnumber=[% previssue.itemnumber %]#item[% previssue.itemnumber %]">[% previssue.barcode %]</a></td>
848         <td>
849             [% previssue.itemtype %]
850         </td>
851         <td><span title="[% previssue.displaydate_sort %]">[% previssue.displaydate %]</span></td>
852         [% IF ( previssue.multiple_borrowers ) %]<td>[% previssue.firstname %] [% previssue.surname %]</td>[% END %]
853         <td>[% previssue.issuingbranchname %]</td>
854         <td>[% previssue.itemcallnumber %]</td>
855         <td>[% previssue.charge %]</td>
856         <td>[% previssue.replacementprice %]</td>
857       [% IF ( previssue.renew_failed ) %]
858             <td class="problem">Renewal failed</td>
859       [% ELSE %]
860         <td><span style="padding: 0 1em;">[% IF ( previssue.renewals ) %][% previssue.renewals %][% ELSE %]0[% END %]</span>
861         [% IF ( previssue.can_renew ) %]
862         <input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" />
863         [% IF ( previssue.od ) %]
864             <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" />
865         [% ELSE %]
866             <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" />
867         [% END %]
868             [% IF previssue.renewsallowed && previssue.renewsleft %]
869                 <span class="renewals">([% previssue.renewsleft %] of [% previssue.renewsallowed %] renewals remaining)</span>
870             [% END %]
871         [% ELSE %]
872             [% IF ( previssue.can_confirm ) %]<span class="renewals-allowed" style="display: none">
873                 <input type="checkbox" name="all_items[]" value="[% previssue.itemnumber %]" checked="checked" style="display: none;" />
874                 [% IF ( previssue.od ) %]
875                     <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" checked="checked" />
876                 [% ELSE %]
877                     <input type="checkbox" class="radio" name="items[]" value="[% previssue.itemnumber %]" />
878                 [% END %]
879                 </span>
880                 [% IF previssue.renewsallowed && previssue.renewsleft %]
881                     <span class="renewals">([% previssue.renewsleft %] of [% previssue.renewsallowed %] renewals remaining)</span>
882                 [% END %]
883                 <span class="renewals-disabled">
884             [% END %]
885                 [% IF ( previssue.renew_error_on_reserve ) %]
886             <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a>
887                 [% END %]
888                 [% IF ( previssue.renew_error_too_many ) %]
889             Not renewable
890                 [% END %]
891             [% IF ( previssue.can_confirm ) %]
892                 </span>
893             [% END %]
894         [% END %]
895         </td>
896         [% END %]
897                   [% IF ( previssue.return_failed ) %]
898             <td class="problem">Check-in failed</td>
899         [% ELSE %]
900             [% IF ( previssue.renew_error_on_reserve ) %]
901                <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% previssue.biblionumber %]">On hold</a>
902                 <input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" />
903                 </td>
904             [% ELSE %]
905             <td><input type="checkbox" class="radio" name="barcodes[]"  value="[% previssue.barcode %]" />
906                 <input type="checkbox" name="all_barcodes[]" value="[% previssue.barcode %]" checked="checked" style="display: none;" />
907             </td>
908             [% END %]
909         [% END %]
910         [% IF ( exports_enabled ) %]
911           <td style="text-align:center;">
912             <input type="checkbox" id="export_[% previssue.biblionumber %]" name="biblionumbers" value="[% previssue.biblionumber %]" />
913             <input type="checkbox" name="itemnumbers" value="[% previssue.itemnumber %]" style="visibility:hidden;" />
914           </td>
915         [% END %]
916     </tr>
917     <!-- /loop previssues -->[% END %]
918 <!--/if previssues -->[% END %]
919       </tbody>
920     </table>
921     [% IF ( issuecount ) %]
922     <fieldset class="action">
923         [% IF ( CAN_user_circulate_override_renewals ) %]
924         [% IF ( AllowRenewalLimitOverride ) %]
925         <label for="override_limit">Override renewal limit:</label>
926         <input type="checkbox" name="override_limit" id="override_limit" value="1" />
927         [% END %]
928         [% END %]
929         <input type="submit" name="renew_checked" value="Renew or Return checked items" />
930         <input type="submit" id="renew_all" name="renew_all" value="Renew all" />
931     </fieldset>
932         [% IF ( exports_enabled ) %]
933             <fieldset>
934             <label for="export_formats"><b>Export checkouts using format:</b></label>
935             <select name="export_formats" id="export_formats">
936                 <option value="iso2709_995">ISO2709 with items</option>
937                 <option value="iso2709">ISO2709 without items</option>
938                 [% IF ( export_with_csv_profile ) %]
939                     <option value="csv">CSV</option>
940                 [% END %]
941
942             </select>
943            <label for="export_remove_fields">Don't export fields:</label> <input type="text" id="export_remove_fields" name="export_remove_fields" value="[% export_remove_fields %]" title="Use for iso2709 exports" />
944             <input type="hidden" name="op" value="export" />
945             <input type="hidden" id="export_format" name="format" value="iso2709" />
946             <input type="hidden" id="dont_export_item" name="dont_export_item" value="0" />
947             <input type="hidden" id="record_type" name="record_type" value="bibs" />
948             <input type="button" id="export_submit" value="Export" />
949             </fieldset>
950         [% END %]
951     [% END %]
952     </form>
953 [% ELSE %]
954 <p>Patron has nothing checked out.</p>
955 [% END %]
956
957 </div>
958
959
960 [% IF ( displayrelissues ) %]
961 <div id="relissues">
962     <table id="relissuest">
963     <thead>
964     <tr>
965         <th scope="col">Due date</th>
966         <th scope="col">Title</th>
967         <th scope="col">Item type</th>
968         <th scope="col">Checked out on</th>
969         <th scope="col">Checked out from</th>
970         <th scope="col">Call no</th>
971         <th scope="col">Charge</th>
972         <th scope="col">Price</th>
973         <th scope="col">Patron</th>
974     </tr>
975     </thead>
976 [% IF ( relissues ) %]  <tbody>
977
978     [% FOREACH relissue IN relissues %]
979     [% IF ( loop.odd ) %]
980     <tr>
981     [% ELSE %]
982     <tr class="highlight">
983     [% END %]
984         [% IF ( relissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %]
985             <span title="[% relissue.dd_sort %]">[% relissue.dd %]</span></td>
986
987             [% IF ( relissue.itemlost ) %]
988                 <span class="lost">[% AuthorisedValues.GetByCode( 'LOST', relissue.itemlost ) %]</span>
989             [% END %]
990             [% IF ( relissue.damaged ) %]
991                 <span class="dmg">[% AuthorisedValues.GetByCode( 'DAMAGED', relissue.damaged ) %]</span>
992             [% END %]
993         </td>
994         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% relissue.biblionumber %]&amp;type=intra"><strong>[% relissue.title |html %][% FOREACH subtitl IN relissue.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( relissue.author ) %], by [% relissue.author %][% END %][% IF ( relissue.itemnotes ) %]- <span class="circ-hlt">[% relissue.itemnotes %]</span>[% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% relissue.biblionumber %]&amp;itemnumber=[% relissue.itemnumber %]#item[% relissue.itemnumber %]">[% relissue.barcode %]</a></td>
995         <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( relissue.itemtype_image ) %]<img src="[% relissue.itemtype_image %]" alt="" />[% END %][% END %][% relissue.itemtype %]</td>
996         <td><span title="[% relissue.displaydate_sort %]">[% relissue.displaydate %]</span></td>
997         <td>[% relissue.issuingbranchname %]</td>
998         <td>[% relissue.itemcallnumber %]</td>
999         <td>[% relissue.charge %]</td>
1000         <td>[% relissue.replacementprice %]</td><td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relissue.borrowernumber %]">[% relissue.firstname %] [% relissue.surname %] ([% relissue.cardnumber %])</a></td>
1001      </tr>
1002     [% END %] <!-- /loop relissues -->
1003     <!-- /if relissues -->[% END %]
1004 [% IF ( relprevissues ) %]
1005     [% IF ( UseTablesortForCirc ) %]<tr id="relprevious"><th><span title="">Previous checkouts</span></th><th></th><th></th><th><span title=""></span></th><th></th><th></th><th></th><th></th><th></th></tr>[% ELSE %]<tr id="relprevious"><th colspan="9">Previous checkouts</th></tr>[% END %]
1006     [% FOREACH relprevissue IN relprevissues %]
1007     [% IF ( loop.odd ) %]
1008         <tr>
1009     [% ELSE %]
1010         <tr class="highlight">
1011     [% END %]
1012         [% IF ( relprevissue.overdue ) %]<td class="od">[% ELSE %]<td>[% END %]
1013         <span title="[% relprevissue.dd_sort %]">[% relprevissue.dd %]</span>
1014         </td>
1015         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% relprevissue.biblionumber %]&amp;type=intra"><strong>[% relprevissue.title |html %][% FOREACH subtitl IN relprevissue.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( relprevissue.author ) %], by [% relprevissue.author %][% END %] [% IF ( relprevissue.itemnotes ) %]- [% relprevissue.itemnotes %][% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% relprevissue.biblionumber %]&amp;itemnumber=[% relprevissue.itemnumber %]#item[% relprevissue.itemnumber %]">[% relprevissue.barcode %]</a></td>
1016         <td>[% UNLESS noItemTypeImages %][% IF relprevissue.itemtype_image %]<img src="[% relprevissue.itemtype_image %]" alt="" />[% END %][% END %][% relprevissue.itemtype %]</td>
1017         <td><span title="[% relprevissue.displaydate_sort %]">[% relprevissue.displaydate %]</span></td>
1018         <td>[% relprevissue.issuingbranchname %]</td>
1019         <td>[% relprevissue.itemcallnumber %]</td>
1020         [% IF ( relprevissue.multiple_borrowers ) %]<td>[% relprevissue.firstname %] [% relprevissue.surname %]</td>[% END %]
1021         <td>[% relprevissue.charge %]</td>
1022         <td>[% relprevissue.replacementprice %]</td>
1023         <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relprevissue.borrowernumber %]">[% relprevissue.firstname %] [% relprevissue.surname %] ([% relprevissue.cardnumber %])</a></td>
1024
1025     </tr>
1026     <!-- /loop relprevissue -->[% END %]
1027 <!--/if relprevissues -->[% END %]
1028       </tbody>
1029     </table>
1030
1031 </div>
1032 [% END %]<!-- end displayrelissues -->
1033
1034 [% INCLUDE borrower_debarments.inc %]
1035
1036 <div id="reserves">
1037 [% IF ( reservloop ) %]
1038     <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
1039         <input type="hidden" name="from" value="circ" />
1040     <table id="holdst">
1041         <thead><tr>
1042             <th>Hold date</th>
1043             <th>Title</th>
1044             <th>Call number</th>
1045             <th>Barcode</th>
1046             <th>Expiration</th>
1047             <th>Priority</th>
1048             <th>Delete?</th>
1049             <th>&nbsp;</th>
1050         </tr></thead>
1051                 <tbody>
1052         [% FOREACH reservloo IN reservloop %]
1053         <tr class="[% reservloo.color %]">
1054                     <td>[% reservloo.reservedate %]</td>
1055                     <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% reservloo.biblionumber %]"><strong>[% reservloo.title |html %][% FOREACH subtitl IN reservloo.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( reservloo.author ) %], by [% reservloo.author %][% END %]</td>
1056                     <td>[% reservloo.itemcallnumber %]</td>
1057                                         <td><em>[% IF ( reservloo.barcodereserv ) %]Item [% reservloo.barcodereserv %]
1058                         [% END %][% IF ( reservloo.waiting ) %] <strong>waiting at [% reservloo.waitingat %]</strong>
1059                         [% END %]
1060                         [% IF ( reservloo.transfered ) %] <strong>in transit</strong> from
1061                         [% reservloo.frombranch %] since [% reservloo.datesent %]
1062                         [% END %]
1063                         [% IF ( reservloo.nottransfered ) %] hasn't been transferred yet from [% reservloo.nottransferedby %]</i>
1064                         [% END %]</em></td>
1065                     <td>[% reservloo.expirationdate | $KohaDates %]</td>
1066                     <td>
1067                         [% IF ( reservloo.waitingposition ) %]<b> [% reservloo.waitingposition %] </b>[% END %]
1068                     </td>
1069                                 <td><select name="rank-request">
1070                     <option value="n">No</option>
1071                     <option value="del">Yes</option>
1072                 </select>
1073                 <input type="hidden" name="biblionumber" value="[% reservloo.biblionumber %]" />
1074                 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1075                 <input type="hidden" name="reserve_id" value="[% reservloo.reserve_id %]" />
1076             </td>
1077             <td>[% IF ( reservloo.suspend ) %]Suspended [% IF ( reservloo.suspend_until ) %] until [% reservloo.suspend_until | $KohaDates %][% END %][% END %]</td>
1078             </tr>
1079         [% END %]</tbody>
1080     </table>
1081             <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel marked holds" /></fieldset>
1082     </form>
1083
1084     [% IF SuspendHoldsIntranet %]
1085     <fieldset class="action">
1086         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1087             <input type="hidden" name="from" value="circ" />
1088             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1089             <input type="submit" value="Suspend all holds" />
1090
1091             [% IF AutoResumeSuspendedHolds %]
1092             <label for="suspend_until">until</label>
1093             <input type="text" size="10" id="suspend_until" name="suspend_until" class="datepicker" />
1094             <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
1095              [% END %]
1096         </form>
1097     </fieldset>
1098
1099     <fieldset class="action">
1100         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
1101             <input type="hidden" name="from" value="circ" />
1102             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
1103             <input type="hidden" name="suspend" value="0" />
1104             <input type="submit" value="Resume all suspended holds" />
1105         </form>
1106     </fieldset>
1107     [% END # IF SuspendHoldsIntranet %]
1108
1109 [% ELSE %]
1110         <p>Patron has nothing on hold.</p>
1111 [% END %]
1112 </div> <!-- reservesloop -->
1113
1114 [% END %] <!-- borrowernumber -->
1115 </div></div>
1116 [% END %]
1117
1118
1119
1120 </div>
1121 </div>
1122 [% UNLESS ( CGIselectborrower ) %][% IF ( borrowernumber ) %]<div class="yui-b">
1123 [% INCLUDE 'circ-menu.inc' %]
1124 </div>[% END %][% END %]
1125 </div>
1126 [% INCLUDE 'intranet-bottom.inc' %]