Bug 10760: Alternate Address: Display street number and street type
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / moremember.tt
blob810216bab33814115f900b250afc96590f224e28
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 %]/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="[% interface %]/[% theme %]/js/pages/circulation.js"></script>
27 <script type="text/javascript" src="[% interface %]/[% theme %]/js/checkouts.js"></script>
28 <script type="text/javascript" src="[% interface %]/[% theme %]/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 %]
45 var MSG_ADD_MESSAGE = _("Add a new message");
46 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
48 columns_settings = [% ColumnsSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) %]
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 %]
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     $("#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    }   
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    }   
120 function validate1(date) {
121     var today = new Date();
122     if ( date < today ) {
123         return true;
124      } else {
125         return false;
126      }
128 //]]>
129 </script>
131 </head>
132 <body id="pat_moremember" class="pat">
133 [% INCLUDE 'header.inc' %]
134 [% INCLUDE 'patron-search.inc' %]
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>
142 <div id="doc3" class="yui-t2">
143    
144    <div id="bd">
145         <div id="yui-main">
146         <div class="yui-b">
148 [% UNLESS ( unknowuser ) %]
149 [% INCLUDE 'members-toolbar.inc' %]
150 [% END %]
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">
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 %]
179     [% IF fines %]
180         [% INCLUDE 'blocked-fines.inc' %]
181     [% END %]
183     [% IF ( flagged ) %]
184     <div id="circmessages" class="circmessage attention">
185         <ul>
186         [% IF ( userdebarred ) %]
187             <li class="blocker">Patron's account is restricted
188                [% IF ( userdebarreddate ) %]
189                    until [% userdebarreddate %]
190                [% END %]
192                [% IF ( debarredcomment ) %]
193                    with the explanation: <i>
194                    [% IF debarredcomment.search('OVERDUES_PROCESS') %]
195                        Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
196                    [% ELSE %]
197                        [% debarredcomment | html_line_break %]
198                    [% END %]
199                [% END %]
200                 <a href="#reldebarments" id="view_restrictions">View restrictions</a>
201             </li>
202         [% END %]
203         [% IF ( gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]
204         [% IF ( lost ) %]<li class="blocker">Patron's card has been reported lost.</li>[% END %]
205         </ul>
206     </div>
207     [% END %]
209 <h3>[% UNLESS ( I ) %]
210    [% title %] [% firstname %] [% END %] [% surname %] ([% cardnumber %])</h3>
211  <div class="yui-u first">
212 <div id="patron-information" style="padding : .5em;">
214      [% UNLESS ( I ) %][% IF ( othernames ) %]&ldquo;[% othernames %]&rdquo;[% END %]
216     <div class = "address">
217         [% IF Koha.Preference( 'AddressFormat' ) %]
218             [% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
219         [% ELSE %]
220             [% INCLUDE 'member-display-address-style-us.inc' %]
221         [% END %]
222     </div>
223                     
224         <div class="rows">
225                 <ol>
226         [% IF ( I ) %]
227             [% IF ( phonepro ) %]<li><span class="label">Organization phone: </span><a href="tel:[% phonepro %]">[% phonepro %]</a></li>[% END %]
228             [% IF ( emailpro ) %]<li class="email"><span class="label">Organization email: </span>[% emailpro %]</li>[% END %]
229         [% ELSE %]
230             [% IF ( phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% phone %]">[% phone %]</a></li>[% END %]
231             [% IF ( phonepro ) %]<li><span class="label">Secondary phone: </span><a href="tel:[% phonepro %]">[% phonepro %]</a></li>[% END %]
232             [% IF ( mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% mobile %]">[% mobile %]</a></li>[% END %]
233         [% END %]
235     [% IF ( P ) %]
236         [% IF ( phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% phone %]">[% phone %]</a></li>[% END %]
237         [% IF ( mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% mobile %]">[% mobile %]</a></li>[% END %]
238     [% END %]           
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 %]">[% email %]</a></li>[% END %]
242         [% IF ( emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a title="[% emailpro %]" href="mailto:[% emailpro %]">[% emailpro %]</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 %] [% guarantee.surname %]</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 %] [% guarantor.surname %]</a>
263             [% ELSE %]
264                 [% guarantor.firstname %] [% guarantor.surname %]
265             [% END %]
266         </li>
267     [% END %]
268 </ol>
269 </div>
270       <div class="action">
271         [% IF ( guarantorborrowernumber ) %]
272         <a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=1&amp;guarantorid=[% guarantorborrowernumber %]">Edit</a>
273         [% ELSE %]
274         <a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=1">Edit</a>
275         [% END %]</div>
277 </div>
279 <!-- Begin Upload Patron Image Section -->
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 %] [% surname %], 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 %] [% surname %] does not currently have an image available. To import an image for [% title %] [% surname %], 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 %]" />
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="submit" value="Upload" class="submit" />
305                     <input name="op" type="hidden" value="Upload" />
306                     [% IF ( picture ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&amp;borrowernumber=[% borrowernumber %]" class="delete">Delete</a>[% END %]
307                 </fieldset>
308             </fieldset>
309         </form>
310     [% END %]
311 [% END %]
312 </div>
314 <!-- End Upload Patron Image Section -->
316 [% IF ( ExtendedPatronAttributes ) %]
317 [% UNLESS ( no_patron_attribute_types ) %]
318 <div id="patron-extended-attributes" style="padding-top: 1em;">
319 <h3>Additional attributes and identifiers</h3>
320 [% FOREACH attribute IN attributes_loop %]
321     [% IF attribute.class %]
322         <div id="aai_[% attribute.class %]" class="rows">
323     [% ELSE %]
324         <div id="aai" class="rows">
325     [% END %]
326         <h4>[% attribute.lib %]</h4>
327         <ol>
328         [% FOREACH item IN attribute.items %]
329             <li>
330                 <span class="label">[% item.description %]: </span>
331                 [% IF ( item.value_description ) %]
332                     [% item.value_description %]
333                 [% ELSE %]
334                     [% item.value| html_line_break %]
335                 [% END %]
336             </li>
337         [% END %]
338         </ol>
339     </div>
340 [% END %]
341 </div>
342 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=4">Edit</a></div>
343 [% END %]
344 [% END %]
346 [% IF ( EnhancedMessagingPreferences ) %]
347 <div id="patron-messaging-prefs" style="padding-top: 1em;">
348 <h3>Patron messaging preferences</h3>
349 [% INCLUDE 'messaging-preference-form.inc' %]
350  [% IF ( SMSSendDriver ) %]
351       <div class="rows"> <ol><li><span class="label">SMS number:</span><a href="sms:[% SMSnumber %]">[% SMSnumber %]</a>
352      </li></ol></div>
353  [% END %]
354 </div>
355 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=5">Edit</a></div>
356 [% END %]
358 </div>
359  <div class="yui-u"> 
360  <div id="patron-library-details">
361  <h3>Library use</h3>
362 <div class="rows"> 
363 <ol>
364     <li><span class="label">Card number: </span>[% cardnumber %]</li>
365         <li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
366     <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
367     <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li>
368     
369     <li><span class="label">Expiration date: </span>
370     [% IF ( was_renewed ) %]
371             <strong class="reregistrinfo">[% dateexpiry | $KohaDates %]</strong>
372     [% ELSE %]
373             [% dateexpiry | $KohaDates %]
374     [% END %]
375     </li>
376     
377     <li><span class="label">Library: </span>[% branchname %]</li>
379     [% IF ( OPACPrivacy ) %]<li><span class="label">Privacy Pref:</span>
380          [% IF ( privacy0 ) %]Forever[% END %]
381          [% IF ( privacy1 ) %]Default[% END %]
382          [% IF ( privacy2 ) %]Never[% END %]
383     </li>[% END %]
385     <li>
386         <span class="label">Show checkouts to guarantor</span>
387         [% IF privacy_guarantor_checkouts %]
388             Yes
389         [% ELSE %]
390             No
391         [% END %]
392     </li>
394     [% IF ( sort1 ) %]<li><span class="label">Sort field 1:</span>[% lib1 %]</li>[% END %]
395     [% IF ( sort2 ) %]<li><span class="label">Sort field 2:</span>[% lib2 %]</li>[% END %]
396     <li><span class="label">Username: </span>[% userid %]</li>
397     <li><span class="label">Password: </span>
398     [% IF ( password ) %]
399         *******
400     [% ELSE %]
401         <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Undefined</a></span>
402     [% END %] 
403     </li>
404     [% IF ( borrowernotes ) %]<li><span class="label">Circulation note: </span>[% borrowernotes %]</li>[% END %]
405     [% IF ( opacnote ) %]<li><span class="label">OPAC note:</span>[% opacnote %]</li>[% END %]
406     [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %]
407         [% IF ( sync == 1 ) %]
408             <li><span class="label">Activate sync: </span>Yes</li>
409             [% IF ( syncstatus ) %]<li><span class="label">Sync status: </span>[% syncstatus %]</li>[% END %]
410             [% IF ( lastsync ) %]<li><span class="label">Last sync: </span>[% lastsync | $KohaDates %]</li>[% END %]
411         [% ELSE %]
412             <li><span class="label">Activate sync: </span>No</li>
413         [% END %]
414     [% END %]
415         </ol>
416         </div>
417  </div>
418     <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=3">Edit</a></div>
420     [% UNLESS ( I ) %]
421  <div id="patron-alternate-address" style="padding-top: 1em;">
422     <h3>Alternate address</h3>
424     [% IF Koha.Preference( 'AddressFormat' ) %]
425         [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
426     [% ELSE %]
427         [% INCLUDE 'member-display-alt-address-style-us.inc' %]
428     [% END %]
430     <div class="rows">  <ol>
431       [% IF ( B_phone ) %]<li><span class="label">Phone: </span><a href="tel:[% B_phone %]">[% B_phone %]</a></li>[% END %]
432       [% IF ( B_email ) %]<li class="email"><span class="label">Email: </span><a title="[% B_email %]" href="mailto:[% B_email %]">[% B_email %]</a></li>[% END %]
433       [% IF ( contactnote ) %]<li><span class="label">Contact note: </span> [% contactnote %]</li>[% END %]
434       </ol>
435     </div>
436 </div>
437 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=6">Edit</a></div>
438     [% END %]
440  <div id="patron-alternative-contact" style="padding-top: 1em;">
441  <h3>Alternative contact</h3>
442    <div class="rows"> <ol><li><span class="label">Surname: </span>[% altcontactsurname %]</li>
443     <li><span class="label">First name: </span>[% altcontactfirstname %]</li>    
444     <li><span class="label">Address: </span>[% altcontactaddress1 %]</li>
445     <li><span class="label">Address 2: </span>[% altcontactaddress2 %]</li>
446         <li><span class="label">City: </span>[% altcontactaddress3 %]</li>
447     [% IF ( altcontactstate ) %]<li><span class="label">State: </span>[% altcontactstate %]</li>[% END %]
448     <li><span class="label">ZIP/Postal code: </span>[% altcontactzipcode %]</li>
449         [% IF ( altcontactcountry ) %]<li><span class="label">Country: </span>[% altcontactcountry %]</li>[% END %]
450     [% IF ( altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% altcontactphone %]">[% altcontactphone %]</a></li>[% END %]
451     </ol></div>
452 </div>
453 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=2">Edit</a></div>
455 </div>
456 </div>
458 <div id="finesholdsissues" class="toptabs">
459     <ul>
460         <li><a href="#checkouts">[% issuecount %] Checkout(s)</a></li>
461         [% IF relatives_issues_count %]
462             <li><a href="#relatives-issues" id="relatives-issues-tab">Relatives' checkouts</a></li>
463         [% END %]
464         <li><a href="#finesandcharges">Fines &amp; Charges</a></li>
465         <li>
466             [% IF ( holds_count ) %]
467                 <a href="#reserves" id="holds-tab">[% holds_count %] Hold(s)</a>
468             [% ELSE %]
469                 <a href="#reserves" id="holds-tab">0 Holds</a>
470             [% END %]
471         </li>
472         <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
473     </ul>
475 [% INCLUDE "checkouts-table.inc" %]
477 [% IF ( relatives_issues_count ) %]
478     <div id="relatives-issues">
479         <table id="relatives-issues-table" style="width: 100% !Important;">
480             <thead>
481                 <tr>
482                     <th scope="col">Due date hidden not formatted</th>
483                     <th scope="col">Due date</th>
484                     <th scope="col">Title</th>
485                     <th scope="col">Item type</th>
486                     <th scope="col">Location</th>
487                     <th scope="col">Checked out on</th>
488                     <th scope="col">Checked out from</th>
489                     <th scope="col">Call no</th>
490                     <th scope="col">Charge</th>
491                     <th scope="col">Fine</th>
492                     <th scope="col">Price</th>
493                     <th scope="col">Patron</th>
494                 </tr>
495             </thead>
496         </table>
497     </div>
498 [% END %]
500 <div id="finesandcharges">
501     [% IF ( totaldue_raw ) %]
502         <p>Total due: [% totaldue %]</p>
503     [% ELSE %]
504         <p>No outstanding charges</p>
505     [% END %]
506 </div>
508 [% INCLUDE borrower_debarments.inc %]
510 <div id="reserves">
511 [% IF ( holds_count ) %]
512     <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
513         <input type="hidden" name="from" value="circ" />
514         <table id="holds-table" style="width: 100% !Important;">
515             <thead>
516                 <tr>
517                     <th>Hold date</th>
518                     <th>Title</th>
519                     <th>Call number</th>
520                     <th>Barcode</th>
521                     <th>Pickup at</th>
522                     <th>Expiration</th>
523                     <th>Priority</th>
524                     <th>Delete?</th>
525                     <th>Suspend?</th>
526                 </tr>
527             </thead>
528         </table>
530         <fieldset class="action">
531             <input type="submit" class="cancel" name="submit" value="Cancel marked holds" />
532         </fieldset>
533     </form>
535     [% IF SuspendHoldsIntranet %]
536     <fieldset class="action">
537         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
538             <input type="hidden" name="from" value="borrower" />
539             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
540             <input type="submit" value="Suspend all holds" />
542             [% IF AutoResumeSuspendedHolds %]
543             <label for="suspend_until">until</label>
544             <input type="text" size="10" id="suspend_until" name="suspend_until"/>
545             <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
546             [% END %]
547         </form>
548     </fieldset>
550     <fieldset class="action">
551         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
552             <input type="hidden" name="from" value="borrower" />
553             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
554             <input type="hidden" name="suspend" value="0" />
555             <input type="submit" value="Resume all suspended holds" />
556         </form>
557     </fieldset>
558     [% END # IF SuspendHoldsIntranet %]
560     [% ELSE %]<p>Patron has nothing on hold.</p>[% END %]
561         </div>
563 </div>
564 [% END %] <!-- unknowuser -->
567 </div>
568 </div>
569 <div class="yui-b">
570 [% INCLUDE 'circ-menu.inc' %]
571 </div>
572 </div>
573 [% INCLUDE 'intranet-bottom.inc' %]