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