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