Bug 17434: Moremember displaying primary and secondary phone number twice
[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 ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
240     [% UNLESS ( I ) %]
241         [% IF ( email ) %]<li class="email"><span class="label">Primary email:</span><a title="[% email %]" href="mailto:[% email | url %]">[% email | html %]</a></li>[% END %]
242         [% IF ( emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a title="[% emailpro %]" href="mailto:[% emailpro | url %]">[% emailpro | html %]</a></li>[% END %]
243     [% END %]
244     [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
245     [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %] ([% age %] years)</li>[% END %]
246     [% IF ( sex ) %]<li><span class="label">Gender:</span>
247     [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
248     </li>[% END %][% END %]
249     [% IF guarantees %]
250         <li>
251             <span class="label">Guarantees:</span>
252             <ul>
253                 [% FOREACH guarantee IN guarantees %]
254                     <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantee.borrowernumber %]">[% guarantee.firstname | html %] [% guarantee.surname | html %]</a></li>
255                 [% END %]
256             </ul>
257         </li>
258     [% ELSIF guarantor %]
259         <li>
260             <span class="label">Guarantor:</span>
261             [% IF guarantor.borrowernumber %]
262                 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname | html %] [% guarantor.surname | html %]</a>
263             [% ELSE %]
264                 [% guarantor.firstname | html %] [% guarantor.surname | html %]
265             [% END %]
266         </li>
267     [% END %]
268 </ol>
269 </div>
270       <div class="action">
271         [% IF ( guarantor.borrowernumber ) %]
272         <a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=1&amp;guarantorid=[% guarantor.borrowernumber %]">Edit</a>
273         [% ELSE %]
274         <a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=1">Edit</a>
275         [% END %]</div>
276
277 </div>
278
279 <!-- Begin Upload Patron Image Section -->
280
281 <div id="manage-patron-image">
282 [% IF ( patronimages ) %]
283     [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
284         <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
285             <fieldset class="brief">
286             [% IF ( picture ) %]
287                 <legend>Manage patron image</legend>
288                 <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.
289             [% ELSE %]
290                 <legend>Upload patron image</legend>
291                 <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.
292             [% END %]
293                     <br />Only PNG, GIF, JPEG, XPM formats are supported.
294                 </div>
295                 <input type="hidden" id="image" name="filetype" value="image" />
296                 <input type="hidden" id="cardnumber" name="cardnumber" value="[% cardnumber | html %]" />
297                 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
298                 <ol>
299                     <li>
300                        <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
301                     </li>
302                 </ol>
303                 <fieldset class="action">
304                     <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
305                     <input type="submit" value="Upload" class="submit" />
306                     <input name="op" type="hidden" value="Upload" />
307                     [% 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 %]
308                 </fieldset>
309             </fieldset>
310         </form>
311     [% END %]
312 [% END %]
313 </div>
314
315 <!-- End Upload Patron Image Section -->
316
317 [% IF Koha.Preference('HouseboundModule') %]
318 <div id="houseboundroles">
319 <h3>Housebound roles</h3>
320 <div class="rows">
321   <ol>
322     <li>
323       <span class="label">Chooser:</span>
324       [% IF ( housebound_role.housebound_chooser == 1 ) %]
325         Yes
326       [% ELSE %]
327         No
328       [% END %]
329     </li>
330     <li>
331       <span class="label">Deliverer:</span>
332       [% IF ( housebound_role.housebound_deliverer == 1 ) %]
333         Yes
334       [% ELSE %]
335         No
336       [% END %]
337     </li>
338   </ol>
339 </div>
340 </div>
341 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=4">Edit</a></div>
342 [% END %]
343
344 [% IF ( ExtendedPatronAttributes ) %]
345 [% UNLESS ( no_patron_attribute_types ) %]
346 <div id="patron-extended-attributes" style="padding-top: 1em;">
347 <h3>Additional attributes and identifiers</h3>
348 [% FOREACH attribute IN attributes_loop %]
349     [% IF attribute.class %]
350         <div id="aai_[% attribute.class %]" class="rows">
351     [% ELSE %]
352         <div id="aai" class="rows">
353     [% END %]
354         <h4>[% attribute.lib %]</h4>
355         <ol>
356         [% FOREACH item IN attribute.items %]
357             <li>
358                 <span class="label">[% item.description %]: </span>
359                 [% IF ( item.value_description ) %]
360                     [% item.value_description %]
361                 [% ELSE %]
362                     [% item.value| html_line_break %]
363                 [% END %]
364             </li>
365         [% END %]
366         </ol>
367     </div>
368 [% END %]
369 </div>
370 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=4">Edit</a></div>
371 [% END %]
372 [% END %]
373
374
375 [% IF ( EnhancedMessagingPreferences ) %]
376 <div id="patron-messaging-prefs" style="padding-top: 1em;">
377 <h3>Patron messaging preferences</h3>
378 [% INCLUDE 'messaging-preference-form.inc' %]
379  [% IF ( SMSSendDriver ) %]
380       <div class="rows"> <ol><li><span class="label">SMS number:</span><a href="sms:[% SMSnumber %]">[% SMSnumber %]</a>
381      </li></ol></div>
382  [% END %]
383 </div>
384 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=5">Edit</a></div>
385 [% END %]
386
387 </div>
388  <div class="yui-u"> 
389  <div id="patron-library-details">
390  <h3>Library use</h3>
391 <div class="rows"> 
392 <ol>
393     <li><span class="label">Card number: </span>[% cardnumber %]</li>
394         <li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
395     <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
396     <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
397     
398     <li><span class="label">Expiration date: </span>
399     [% IF ( was_renewed ) %]
400             <strong class="reregistrinfo">[% dateexpiry | $KohaDates %]</strong>
401     [% ELSE %]
402             [% dateexpiry | $KohaDates %]
403     [% END %]
404     </li>
405     
406     <li><span class="label">Library: </span>[% branchname %]</li>
407
408     [% IF ( OPACPrivacy ) %]<li><span class="label">Privacy Pref:</span>
409          [% IF ( privacy0 ) %]Forever[% END %]
410          [% IF ( privacy1 ) %]Default[% END %]
411          [% IF ( privacy2 ) %]Never[% END %]
412     </li>[% END %]
413
414     <li>
415         <span class="label">Show checkouts to guarantor</span>
416         [% IF privacy_guarantor_checkouts %]
417             Yes
418         [% ELSE %]
419             No
420         [% END %]
421     </li>
422
423     [% IF ( sort1 ) %]<li><span class="label">Sort field 1:</span>[% AuthorisedValues.GetByCode('Bsort1', sort1) %]</li>[% END %]
424     [% IF ( sort2 ) %]<li><span class="label">Sort field 2:</span>[% AuthorisedValues.GetByCode('Bsort2', sort2) %]</li>[% END %]
425     <li><span class="label">Username: </span>[% userid %]</li>
426     <li><span class="label">Password: </span>
427     [% IF ( password ) %]
428         *******
429     [% ELSE %]
430         <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Undefined</a></span>
431     [% END %] 
432     </li>
433     [% IF ( borrowernotes ) %]<li><span class="label">Circulation note: </span>[% borrowernotes %]</li>[% END %]
434     [% IF ( opacnote ) %]<li><span class="label">OPAC note:</span>[% opacnote %]</li>[% END %]
435     [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %]
436         [% IF ( sync == 1 ) %]
437             <li><span class="label">Activate sync: </span>Yes</li>
438             [% IF ( syncstatus ) %]<li><span class="label">Sync status: </span>[% syncstatus %]</li>[% END %]
439             [% IF ( lastsync ) %]<li><span class="label">Last sync: </span>[% lastsync | $KohaDates %]</li>[% END %]
440         [% ELSE %]
441             <li><span class="label">Activate sync: </span>No</li>
442         [% END %]
443     [% END %]
444     [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
445       <li><span class="label">Check previous checkouts: </span>
446         [% IF ( checkprevcheckout == 'yes' ) %]
447         Yes
448         [% ELSIF ( checkprevcheckout == 'no' ) %]
449         No
450         [% ELSE %]
451         Inherited
452         [% END %]
453       </li>
454     [% END %]
455         </ol>
456         </div>
457  </div>
458     <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=3">Edit</a></div>
459  
460     [% UNLESS ( I ) %]
461  <div id="patron-alternate-address" style="padding-top: 1em;">
462     <h3>Alternate address</h3>
463
464     [% IF Koha.Preference( 'AddressFormat' ) %]
465         [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
466     [% ELSE %]
467         [% INCLUDE 'member-display-alt-address-style-us.inc' %]
468     [% END %]
469
470     <div class="rows">  <ol>
471       [% IF ( B_phone ) %]<li><span class="label">Phone: </span><a href="tel:[% B_phone %]">[% B_phone %]</a></li>[% END %]
472       [% IF ( B_email ) %]<li class="email"><span class="label">Email: </span><a title="[% B_email %]" href="mailto:[% B_email %]">[% B_email %]</a></li>[% END %]
473       [% IF ( contactnote ) %]<li><span class="label">Contact note: </span> [% contactnote %]</li>[% END %]
474       </ol>
475     </div>
476 </div>
477 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=6">Edit</a></div>
478     [% END %]
479
480  <div id="patron-alternative-contact" style="padding-top: 1em;">
481  <h3>Alternative contact</h3>
482    <div class="rows"> <ol><li><span class="label">Surname: </span>[% altcontactsurname | html %]</li>
483     <li><span class="label">First name: </span>[% altcontactfirstname | html %]</li>
484     <li><span class="label">Address: </span>[% altcontactaddress1 | html %]</li>
485     <li><span class="label">Address 2: </span>[% altcontactaddress2 | html %]</li>
486         <li><span class="label">City: </span>[% altcontactaddress3 | html %]</li>
487     [% IF ( altcontactstate ) %]<li><span class="label">State: </span>[% altcontactstate | html %]</li>[% END %]
488     <li><span class="label">ZIP/Postal code: </span>[% altcontactzipcode | html %]</li>
489         [% IF ( altcontactcountry ) %]<li><span class="label">Country: </span>[% altcontactcountry | html %]</li>[% END %]
490     [% IF ( altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% altcontactphone | url %]">[% altcontactphone | html %]</a></li>[% END %]
491     </ol></div>
492 </div>
493 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=2">Edit</a></div>
494
495 </div>
496 </div>
497
498 <div id="finesholdsissues" class="toptabs">
499     <ul>
500         <li><a href="#checkouts">[% issuecount %] Checkout(s)</a></li>
501         [% IF relatives_issues_count %]
502             <li><a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts</a></li>
503         [% END %]
504         <li><a href="#finesandcharges">Fines &amp; Charges</a></li>
505         <li>
506             [% IF ( holds_count ) %]
507                 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
508             [% ELSE %]
509                 <a href="#reserves" id="holds-tab">0 Holds</a>
510             [% END %]
511         </li>
512         [% IF Koha.Preference('ArticleRequests') %]
513             <li>
514                 <a href="#article-requests" id="article-requests-tab"> [% patron.article_requests_current.count %] Article requests</a>
515             </li>
516         [% END %]
517         <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
518     </ul>
519
520 [% INCLUDE "checkouts-table.inc" %]
521
522 [% IF ( relatives_issues_count ) %]
523     <div id="relatives-issues">
524         <table id="relatives-issues-table" style="width: 100% !Important;">
525             <thead>
526                 <tr>
527                     <th scope="col">Due date hidden not formatted</th>
528                     <th scope="col">Due date</th>
529                     <th scope="col">Title</th>
530                     <th scope="col">Item type</th>
531                     <th scope="col">Location</th>
532                     <th scope="col">Checked out on</th>
533                     <th scope="col">Checked out from</th>
534                     <th scope="col">Call no</th>
535                     <th scope="col">Charge</th>
536                     <th scope="col">Fine</th>
537                     <th scope="col">Price</th>
538                     <th scope="col">Patron</th>
539                 </tr>
540             </thead>
541         </table>
542     </div>
543 [% END %]
544
545 <div id="finesandcharges">
546     [% IF ( totaldue_raw ) %]
547         <p>Total due: [% totaldue %]</p>
548     [% ELSE %]
549         <p>No outstanding charges</p>
550     [% END %]
551 </div>
552
553 [% INCLUDE borrower_debarments.inc %]
554
555 <div id="reserves">
556 [% IF ( holds_count ) %]
557     <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
558         <input type="hidden" name="from" value="circ" />
559         <table id="holds-table" style="width: 100% !Important;">
560             <thead>
561                 <tr>
562                     <th>Hold date</th>
563                     <th>Title</th>
564                     <th>Call number</th>
565                     <th>Barcode</th>
566                     <th>Pickup at</th>
567                     <th>Expiration</th>
568                     <th>Priority</th>
569                     <th>Delete?</th>
570                     <th>Suspend?</th>
571                 </tr>
572             </thead>
573         </table>
574
575         <fieldset class="action">
576             <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
577         </fieldset>
578     </form>
579
580     [% IF SuspendHoldsIntranet %]
581     <fieldset class="action">
582         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
583             <input type="hidden" name="from" value="borrower" />
584             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
585             <input type="submit" value="Suspend all holds" />
586
587             [% IF AutoResumeSuspendedHolds %]
588             <label for="suspend_until">until</label>
589             <input type="text" size="10" id="suspend_until" name="suspend_until datepicker"/>
590             <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
591             [% END %]
592         </form>
593     </fieldset>
594
595     <fieldset class="action">
596         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
597             <input type="hidden" name="from" value="borrower" />
598             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
599             <input type="hidden" name="suspend" value="0" />
600             <input type="submit" value="Resume all suspended holds" />
601         </form>
602     </fieldset>
603     [% END # IF SuspendHoldsIntranet %]
604
605     [% ELSE %]<p>Patron has nothing on hold.</p>[% END %]
606         </div>
607
608
609 [% IF Koha.Preference('ArticleRequests') %]
610     [% INCLUDE 'patron-article-requests.inc' %]
611 [% END %]
612
613 </div>
614 [% END %] <!-- unknowuser -->
615
616
617 </div>
618 </div>
619 <div class="yui-b">
620 [% INCLUDE 'circ-menu.inc' %]
621 </div>
622 </div>
623 [% INCLUDE 'intranet-bottom.inc' %]