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