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