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