Bug 14497 - Add warning to patron details page if patron's fines exceed noissuescharge
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / moremember.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% USE AuthorisedValues %]
4 [% USE ColumnsSettings %]
5 [% IF Koha.Preference('ExportRemoveFields') OR Koha.Preference('ExportWithCsvProfile') %]
6    [% SET exports_enabled = 1 %]
7 [% END %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Koha &rsaquo; Patrons &rsaquo;
10 [% IF ( unknowuser ) %]
11     Patron does not exist
12 [% ELSE %]
13     Patron details for [% INCLUDE 'patron-title.inc' %]
14 [% END %]
15 </title>
16 [% INCLUDE 'doc-head-close.inc' %]
17 [% INCLUDE 'calendar.inc' %]
18 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/en/css/datatables.css" />
19 [% INCLUDE 'datatables.inc' %]
20 [% INCLUDE 'columns_settings.inc' %]
21 [% INCLUDE 'strings.inc' %]
22 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
23 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
24 [% INCLUDE 'timepicker.inc' %]
25 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.rowGrouping.js"></script>
26 <script type="text/javascript" src="[% themelang %]/js/pages/circulation.js"></script>
27 <script type="text/javascript" src="[% themelang %]/js/checkouts.js"></script>
28 <script type="text/javascript" src="[% themelang %]/js/holds.js"></script>
29 <script type="text/JavaScript">
30 //<![CDATA[
31 /* Set some variable needed in circulation.js */
32 var interface = "[% interface %]";
33 var theme = "[% theme %]";
34 var borrowernumber = "[% borrowernumber %]";
35 var branchcode = "[% branch %]";
36 var exports_enabled = "[% exports_enabled %]";
37 var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %]
38 var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 %];
39 var script = "moremember";
40 var relatives_borrowernumbers = new Array();
41 [% FOREACH b IN relatives_borrowernumbers %]
42     relatives_borrowernumbers.push("[% b %]");
43 [% END %]
44
45 var MSG_ADD_MESSAGE = _("Add a new message");
46 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
47
48 columns_settings = [% ColumnsSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) %]
49
50 $(document).ready(function() {
51     $('#finesholdsissues').tabs({
52         // Correct table sizing for tables hidden in tabs
53         // http://www.datatables.net/examples/api/tabs_and_scrolling.html
54         "show": function(event, ui) {
55             var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
56             if ( oTable.length > 0 ) {
57                 oTable.fnAdjustColumnSizing();
58             }
59         },
60         "activate": function( event, ui ) {
61             $('#'+ui.newTab.context.id).click();
62         }
63     } );
64     $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
65         "sDom": 't',
66         "aoColumnDefs": [
67             { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
68         ],
69         "aoColumns": [
70             { "sType": "title-string" },{ "sType": "anti-the" },null,null,null,null,null,null
71         ],
72         "bPaginate": false
73     }));
74     [% IF ( picture ) %]
75     // new YAHOO.widget.Button("delpicture");   // FIXME: formatting mismatch between YUI and normal button
76         $('#delpicture').click(function(){
77                  return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
78         });
79         $('#manage-patron-image').find("input[value*=Upload]").click(function(){
80         if($("#uploadfile").val() == ""){
81             alert(_("Please choose a file to upload"));
82             return false;
83         }
84         return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));
85         });[% END %]
86
87     $("#suspend_until").datepicker({ minDate: 1 }); // require that hold suspended until date is after today
88     $("#newduedate").datetimepicker({
89         minDate: 1, // require that renewal date is after today
90         hour: 23,
91         minute: 59
92     });
93  });
94 function uncheck_sibling(me){
95 nodename=me.getAttribute("name");
96 if (nodename =="barcodes[]"){
97     var Node=me.parentNode.previousSibling;
98     while (Node.nodeName!="TD"){Node=Node.previousSibling}
99     var Nodes=Node.childNodes;
100     for (var i=0;i < Nodes.length;i++){
101       if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
102         Nodes[i].checked=false;
103       }     
104    }   
105
106 }else {
107     var Node=me.parentNode.nextSibling;
108     while (Node.nodeName!="TD"){Node=Node.nextSibling}
109     var Nodes=Node.childNodes;
110     for (var i=0;i<Nodes.length;i++){
111       if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
112         Nodes[i].checked=false;
113       }     
114    }   
115 }
116 }
117 function validate1(date) {
118     var today = new Date();
119     if ( date < today ) {
120         return true;
121      } else {
122         return false;
123      }
124 };
125 //]]>
126 </script>
127
128 </head>
129 <body id="pat_moremember" class="pat">
130 [% INCLUDE 'header.inc' %]
131 [% INCLUDE 'patron-search.inc' %]
132
133 <div id="breadcrumbs">
134          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
135 &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
136 &rsaquo; [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Patron details for [% INCLUDE 'patron-title.inc' %][% END %]
137 </div>
138
139 <div id="doc3" class="yui-t2">
140    
141    <div id="bd">
142         <div id="yui-main">
143         <div class="yui-b">
144
145 [% UNLESS ( unknowuser ) %]
146 [% INCLUDE 'members-toolbar.inc' %]
147 [% END %]
148
149 [% IF ( error ) %]
150 <div class="dialog alert">
151     [% IF ( error == 'CANT_DELETE_STAFF' ) %]
152         <h3>Unable to delete staff user</h3>
153         <p>Insufficient privileges.</p>
154     [% END %]
155     [% IF ( error == 'CANT_DELETE_YOURSELF' ) %]
156         <h3>Not allowed to delete own account</h3>
157         <p>Deleting your own account would lock you out of Koha.</p>
158     [% END %]
159     [% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %]
160         <h3>Unable to delete patrons from other libraries with current settings</h3>
161         <p>Insufficient privileges.</p>
162     [% END %]
163     [% IF ( error == 'CANT_DELETE' ) %]
164         <h3>Unable to delete patron</h3>
165         <p>Insufficient privileges.</p>
166     [% END %]
167 </div>
168 [% END %]
169 <div class="yui-g">
170
171 [% IF ( unknowuser ) %]
172    <div class="dialog message">This patron does not exist. <a href="/cgi-bin/koha/members/members-home.pl">Find another patron?</a></div>
173 [% ELSE %]
174     [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry | $KohaDates %]</div>[% END %]
175
176     [% IF fines %]
177         [% SET NoIssuesCharge = Koha.Preference('noissuescharge') %]
178         [% IF NoIssuesCharge && fines > NoIssuesCharge %]
179             <li>
180                 <span class="circ-hlt">Fees &amp; Charges:</span>
181                 Patron has <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">
182                     Outstanding fees &amp; charges
183                     [% IF ( chargesamount ) %]
184                         of [% chargesamount %]
185                     [% END %]
186                 </a>.
187                 [% IF !Koha.Preference('AllowFineOverride') %]
188                     <span class="circ-hlt">Checkouts are BLOCKED because fine balance is OVER THE LIMIT.</span>
189                 [% END %]
190                 <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Make payment</a>
191                 or
192                 <a href="/cgi-bin/koha/members/paycollect.pl?borrowernumber=[% borrowernumber %]">Pay all fines</a></li>
193             </li>
194         [% END %]
195     [% END %]
196
197     [% IF ( flagged ) %]
198     <div id="circmessages" class="circmessage attention">
199         <ul>
200         [% IF ( userdebarred ) %]
201             <li class="blocker">Patron's account is restricted
202                [% IF ( userdebarreddate ) %]
203                    until [% userdebarreddate %]
204                [% END %]
205
206                [% IF ( debarredcomment ) %]
207                    with the explanation: <i>[% debarredcomment | html_line_break %]</i>
208                [% END %]
209                 <a href="#reldebarments" onclick="$('#debarments-tab-link').click()">View restrictions</a>
210             </li>
211         [% END %]
212         [% IF ( gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]
213         [% IF ( lost ) %]<li class="blocker">Patron's card has been reported lost.</li>[% END %]
214         </ul>
215     </div>
216     [% END %]
217
218 <h3>[% UNLESS ( I ) %]
219    [% title %] [% firstname %] [% END %] [% surname %] ([% cardnumber %])</h3>
220  <div class="yui-u first">
221 <div id="patron-information" style="padding : .5em;">
222
223      [% UNLESS ( I ) %][% IF ( othernames ) %]&ldquo;[% othernames %]&rdquo;[% END %]
224
225     <div class = "address">
226         [% IF Koha.Preference( 'AddressFormat' ) %]
227             [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
228         [% ELSE %]
229             [% INCLUDE 'member-display-address-style-us.inc' %]
230         [% END %]
231     </div>
232                     
233         <div class="rows">
234                 <ol>
235         [% IF ( I ) %]
236             [% IF ( phonepro ) %]<li><span class="label">Organization phone: </span><a href="tel:[% phonepro %]">[% phonepro %]</a></li>[% END %]
237             [% IF ( emailpro ) %]<li class="email"><span class="label">Organization email: </span>[% emailpro %]</li>[% END %]
238         [% ELSE %]
239             [% IF ( phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% phone %]">[% phone %]</a></li>[% END %]
240             [% IF ( phonepro ) %]<li><span class="label">Secondary phone: </span><a href="tel:[% phonepro %]">[% phonepro %]</a></li>[% END %]
241             [% IF ( mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% mobile %]">[% mobile %]</a></li>[% END %]
242         [% END %]
243
244     [% IF ( P ) %]
245         [% IF ( phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% phone %]">[% phone %]</a></li>[% END %]
246         [% IF ( mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% mobile %]">[% mobile %]</a></li>[% END %]
247     [% END %]           
248         [% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
249     [% UNLESS ( I ) %]
250         [% IF ( email ) %]<li class="email"><span class="label">Primary email:</span><a title="[% email %]" href="mailto:[% email %]">[% email %]</a></li>[% END %]
251         [% IF ( emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a title="[% emailpro %]" href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
252     [% END %]
253     [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
254     [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %] ([% age %] years)</li>[% END %]
255     [% IF ( sex ) %]<li><span class="label">Gender:</span>
256     [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
257     </li>[% END %][% END %]
258     [% IF guarantees %]
259         <li>
260             <span class="label">Guarantees:</span>
261             <ul>
262                 [% FOREACH guarantee IN guarantees %]
263                     <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname %] [% guarantee.surname %]</a></li>
264                 [% END %]
265             </ul>
266         </li>
267     [% ELSIF guarantor %]
268         <li>
269             <span class="label">Guarantor:</span>
270             [% IF guarantor.borrowernumber %]
271                 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname %] [% guarantor.surname %]</a>
272             [% ELSE %]
273                 [% guarantor.firstname %] [% guarantor.surname %]
274             [% END %]
275         </li>
276     [% END %]
277 </ol>
278 </div>
279       <div class="action">
280         [% IF ( guarantorborrowernumber ) %]
281         <a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=1&amp;guarantorid=[% guarantorborrowernumber %]">Edit</a>
282         [% ELSE %]
283         <a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=1">Edit</a>
284         [% END %]</div>
285
286 </div>
287
288 <!-- Begin Upload Patron Image Section -->
289
290 <div id="manage-patron-image">
291 [% IF ( patronimages ) %]
292     [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
293         <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
294             <fieldset class="brief">
295             [% IF ( picture ) %]
296                 <legend>Manage Patron Image</legend>
297                 <div class="hint">To update the image for [% title %] [% surname %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.
298             [% ELSE %]
299                 <legend>Upload Patron Image</legend>
300                 <div class="hint">[% title %] [% firstname %] [% surname %] does not currently have an image available. To import an image for [% title %] [% surname %], enter the name of an image file to upload.
301             [% END %]
302                     <br />Only PNG, GIF, JPEG, XPM formats are supported.
303                 </div>
304                 <input type="hidden" id="image" name="filetype" value="image" />
305                 <input type="hidden" id="cardnumber" name="cardnumber" value="[% cardnumber %]" />
306                 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
307                 <ol>
308                     <li>
309                        <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
310                     </li>
311                 </ol>
312                 <fieldset class="action">
313                     <input type="submit" value="Upload" class="submit" />
314                     <input name="op" type="hidden" value="Upload" />
315                     [% IF ( picture ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&amp;borrowernumber=[% borrowernumber %]" class="delete">Delete</a>[% END %]
316                 </fieldset>
317             </fieldset>
318         </form>
319     [% END %]
320 [% END %]
321 </div>
322
323 <!-- End Upload Patron Image Section -->
324
325 [% IF ( ExtendedPatronAttributes ) %]
326 [% UNLESS ( no_patron_attribute_types ) %]
327 <div id="patron-extended-attributes" style="padding-top: 1em;">
328 <h3>Additional attributes and identifiers</h3>
329 [% FOREACH attribute IN attributes_loop %]
330     [% IF attribute.class %]
331         <div id="aai_[% attribute.class %]" class="rows">
332     [% ELSE %]
333         <div id="aai" class="rows">
334     [% END %]
335         <h4>[% attribute.lib %]</h4>
336         <ol>
337         [% FOREACH item IN attribute.items %]
338             <li>
339                 <span class="label">[% item.description %]: </span>
340                 [% IF ( item.value_description ) %]
341                     [% item.value_description %]
342                 [% ELSE %]
343                     [% item.value| html_line_break %]
344                 [% END %]
345             </li>
346         [% END %]
347         </ol>
348     </div>
349 [% END %]
350 </div>
351 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=4">Edit</a></div>
352 [% END %]
353 [% END %]
354
355 [% IF ( EnhancedMessagingPreferences ) %]
356 <div id="patron-messaging-prefs" style="padding-top: 1em;">
357 <h3>Patron messaging preferences</h3>
358 [% INCLUDE 'messaging-preference-form.inc' %]
359  [% IF ( SMSSendDriver ) %]
360       <div class="rows"> <ol><li><span class="label">SMS number:</span><a href="sms:[% SMSnumber %]">[% SMSnumber %]</a>
361      </li></ol></div>
362  [% END %]
363 </div>
364 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=5">Edit</a></div>
365 [% END %]
366
367 </div>
368  <div class="yui-u"> 
369  <div id="patron-library-details">
370  <h3>Library use</h3>
371 <div class="rows"> 
372 <ol>
373     <li><span class="label">Card number: </span>[% cardnumber %]</li>
374         <li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
375     <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
376     <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
377     
378     <li><span class="label">Expiration date: </span>
379     [% IF ( was_renewed ) %]
380             <strong class="reregistrinfo">[% dateexpiry | $KohaDates %]</strong>
381     [% ELSE %]
382             [% dateexpiry | $KohaDates %]
383     [% END %]
384     </li>
385     
386     <li><span class="label">Library: </span>[% branchname %]</li>
387
388     [% IF ( OPACPrivacy ) %]<li><span class="label">Privacy Pref:</span>
389          [% IF ( privacy0 ) %]Forever[% END %]
390          [% IF ( privacy1 ) %]Default[% END %]
391          [% IF ( privacy2 ) %]Never[% END %]
392     </li>[% END %]
393
394     <li>
395         <span class="label">Show checkouts to guarantor</span>
396         [% IF privacy_guarantor_checkouts %]
397             Yes
398         [% ELSE %]
399             No
400         [% END %]
401     </li>
402
403     [% IF ( sort1 ) %]<li><span class="label">Sort field 1:</span>[% lib1 %]</li>[% END %]
404     [% IF ( sort2 ) %]<li><span class="label">Sort field 2:</span>[% lib2 %]</li>[% END %]
405     <li><span class="label">Username: </span>[% userid %]</li>
406     <li><span class="label">Password: </span>
407     [% IF ( password ) %]
408         *******
409     [% ELSE %]
410         <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Undefined</a></span>
411     [% END %] 
412     </li>
413     [% IF ( borrowernotes ) %]<li><span class="label">Circulation note: </span>[% borrowernotes %]</li>[% END %]
414     [% IF ( opacnote ) %]<li><span class="label">OPAC note:</span>[% opacnote %]</li>[% END %]
415     [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %]
416         [% IF ( sync == 1 ) %]
417             <li><span class="label">Activate sync: </span>Yes</li>
418             [% IF ( syncstatus ) %]<li><span class="label">Sync status: </span>[% syncstatus %]</li>[% END %]
419             [% IF ( lastsync ) %]<li><span class="label">Last sync: </span>[% lastsync | $KohaDates %]</li>[% END %]
420         [% ELSE %]
421             <li><span class="label">Activate sync: </span>No</li>
422         [% END %]
423     [% END %]
424         </ol>
425         </div>
426  </div>
427     <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=3">Edit</a></div>
428  
429     [% UNLESS ( I ) %]
430  <div id="patron-alternate-address" style="padding-top: 1em;">
431     <h3>Alternate address</h3>
432     <div class="rows">  <ol><li><span class="label">Address: </span>[% B_address %]</li>
433       <li><span class="label">Address 2: </span>[% B_address2 %]</li>
434       <li><span class="label">City: </span>[% B_city %]</li>
435       [% IF ( B_state ) %]<li><span class="label">State: </span>[% B_state %]</li>[% END %]
436       <li><span class="label">ZIP/Postal code: </span>[% B_zipcode %]</li>
437       [% IF ( B_country ) %]<li><span class="label">Country: </span>[% B_country %]</li>[% END %]
438       [% IF ( B_phone ) %]<li><span class="label">Phone: </span><a href="tel:[% B_phone %]">[% B_phone %]</a></li>[% END %]
439       [% IF ( B_email ) %]<li class="email"><span class="label">Email: </span><a title="[% B_email %]" href="mailto:[% B_email %]">[% B_email %]</a></li>[% END %]
440       [% IF ( contactnote ) %]<li><span class="label">Contact note: </span> [% contactnote %]</li>[% END %]
441       </ol>
442     </div>
443 </div>
444 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=6">Edit</a></div>
445     [% END %]
446
447  <div id="patron-alternative-contact" style="padding-top: 1em;">
448  <h3>Alternative contact</h3>
449    <div class="rows"> <ol><li><span class="label">Surname: </span>[% altcontactsurname %]</li>
450     <li><span class="label">First name: </span>[% altcontactfirstname %]</li>    
451     <li><span class="label">Address: </span>[% altcontactaddress1 %]</li>
452     <li><span class="label">Address 2: </span>[% altcontactaddress2 %]</li>
453         <li><span class="label">City: </span>[% altcontactaddress3 %]</li>
454     [% IF ( altcontactstate ) %]<li><span class="label">State: </span>[% altcontactstate %]</li>[% END %]
455     <li><span class="label">ZIP/Postal code: </span>[% altcontactzipcode %]</li>
456         [% IF ( altcontactcountry ) %]<li><span class="label">Country: </span>[% altcontactcountry %]</li>[% END %]
457     [% IF ( altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% altcontactphone %]">[% altcontactphone %]</a></li>[% END %]
458     </ol></div>
459 </div>
460 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=2">Edit</a></div>
461
462 </div>
463 </div>
464
465 <div id="finesholdsissues" class="toptabs">
466     <ul>
467         <li><a href="#checkouts">[% issuecount %] Checkout(s)</a></li>
468         [% IF relatives_issues_count %]
469             <li><a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts</a></li>
470         [% END %]
471         <li><a href="#finesandcharges">Fines &amp; Charges</a></li>
472         <li>
473             [% IF ( holds_count ) %]
474                 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
475             [% ELSE %]
476                 <a href="#reserves" id="holds-tab">0 Holds</a>
477             [% END %]
478         </li>
479         <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
480     </ul>
481
482 [% INCLUDE "checkouts-table.inc" %]
483
484 [% IF ( relatives_issues_count ) %]
485     <div id="relatives-issues">
486         <table id="relatives-issues-table" style="width: 100% !Important;">
487             <thead>
488                 <tr>
489                     <th scope="col">Due date hidden not formatted</th>
490                     <th scope="col">Due date</th>
491                     <th scope="col">Title</th>
492                     <th scope="col">Item type</th>
493                     <th scope="col">Location</th>
494                     <th scope="col">Checked out on</th>
495                     <th scope="col">Checked out from</th>
496                     <th scope="col">Call no</th>
497                     <th scope="col">Charge</th>
498                     <th scope="col">Fine</th>
499                     <th scope="col">Price</th>
500                     <th scope="col">Patron</th>
501                 </tr>
502             </thead>
503         </table>
504     </div>
505 [% END %]
506
507 <div id="finesandcharges">
508     [% IF ( totaldue_raw ) %]
509         <p>Total due: [% totaldue %]</p>
510     [% ELSE %]
511         <p>No outstanding charges</p>
512     [% END %]
513 </div>
514
515 [% INCLUDE borrower_debarments.inc %]
516
517 <div id="reserves">
518 [% IF ( holds_count ) %]
519     <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
520         <input type="hidden" name="from" value="circ" />
521         <table id="holds-table" style="width: 100% !Important;">
522             <thead>
523                 <tr>
524                     <th>Hold date</th>
525                     <th>Title</th>
526                     <th>Call number</th>
527                     <th>Barcode</th>
528                     <th>Pickup at</th>
529                     <th>Expiration</th>
530                     <th>Priority</th>
531                     <th>Delete?</th>
532                     <th>Suspend?</th>
533                 </tr>
534             </thead>
535         </table>
536
537         <fieldset class="action">
538             <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
539         </fieldset>
540     </form>
541
542     [% IF SuspendHoldsIntranet %]
543     <fieldset class="action">
544         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
545             <input type="hidden" name="from" value="borrower" />
546             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
547             <input type="submit" value="Suspend all holds" />
548
549             [% IF AutoResumeSuspendedHolds %]
550             <label for="suspend_until">until</label>
551             <input type="text" size="10" id="suspend_until" name="suspend_until"/>
552             <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
553             [% END %]
554         </form>
555     </fieldset>
556
557     <fieldset class="action">
558         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
559             <input type="hidden" name="from" value="borrower" />
560             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
561             <input type="hidden" name="suspend" value="0" />
562             <input type="submit" value="Resume all suspended holds" />
563         </form>
564     </fieldset>
565     [% END # IF SuspendHoldsIntranet %]
566
567     [% ELSE %]<p>Patron has nothing on hold.</p>[% END %]
568         </div>
569
570 </div>
571 [% END %] <!-- unknowuser -->
572
573
574 </div>
575 </div>
576 <div class="yui-b">
577 [% INCLUDE 'circ-menu.inc' %]
578 </div>
579 </div>
580 [% INCLUDE 'intranet-bottom.inc' %]