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