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