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