Bug 11618: ensure jQuery timepicker is picked up by the i18n toolchain
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / moremember.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Patrons &rsaquo;
4 [% IF ( unknowuser ) %]
5     Patron does not exist
6 [% ELSE %]
7     Patron details for [% INCLUDE 'patron-title.inc' %]
8 [% END %]
9 </title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 [% INCLUDE 'calendar.inc' %]
12 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/en/css/datatables.css" />
13 <script type="text/javascript" src="[% interface %]/[% theme %]/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
14 [% INCLUDE 'datatables-strings.inc' %]
15 <script type="text/javascript" src="[% interface %]/[% theme %]/en/js/datatables.js"></script>
16 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
17 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
18 [% INCLUDE 'timepicker.inc' %]
19 <script type="text/JavaScript">
20 //<![CDATA[
21 $(document).ready(function() {
22     $('#finesholdsissues').tabs({
23         // Correct table sizing for tables hidden in tabs
24         // http://www.datatables.net/examples/api/tabs_and_scrolling.html
25         "show": function(event, ui) {
26             var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable();
27             if ( oTable.length > 0 ) {
28                 oTable.fnAdjustColumnSizing();
29             }
30         }
31     } );
32     $("#issuest").dataTable($.extend(true, {}, dataTablesDefaults, {
33         "sDom": 't',
34         "aoColumnDefs": [
35             { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
36         ],
37         "aoColumns": [
38             { "sType": "title-string" },null,null,{ "sType": "title-string" },null,null,null,null,null,null
39         ],
40         "bPaginate": false
41     }));
42     $("#relissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
43         "sDom": 't',
44         "aoColumns": [
45             { "sType": "title-string" },null,null,{ "sType": "title-string" },null,null,null,null,null
46         ],
47         "bPaginate": false
48     }));
49     $("#holdst").dataTable($.extend(true, {}, dataTablesDefaults, {
50         "sDom": 't',
51         "aoColumnDefs": [
52             { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false }
53         ],
54         "aoColumns": [
55             { "sType": "title-string" },null,null,null,null,null,null,null
56         ],
57         "bPaginate": false
58     }));
59     [% IF ( picture ) %]
60     // new YAHOO.widget.Button("delpicture");   // FIXME: formatting mismatch between YUI and normal button
61         $('#delpicture').click(function(){
62                  return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
63         });
64         $('#manage-patron-image').find("input[value*=Upload]").click(function(){
65         if($("#uploadfile").val() == ""){
66             alert(_("Please choose a file to upload"));
67             return false;
68         }
69         return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));
70         });[% END %]
71         $("#renew_all"      ).click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=items]"   ); $(".checkboxed").unCheckCheckboxes(":input[name*=barcodes]"); });
72         $("#CheckAllitems"  ).click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=items]"   ); $(".checkboxed").unCheckCheckboxes(":input[name*=barcodes]"); return false; });
73     $("#CheckNoitems"   ).click(function(){ $(".checkboxed").unCheckCheckboxes(":input[name*=items]"); return false; });
74         $("#CheckAllreturns").click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=barcodes]"); $(".checkboxed").unCheckCheckboxes(":input[name*=items]"); return false; });
75     $("#CheckNoreturns" ).click(function(){ $(".checkboxed").unCheckCheckboxes(":input[name*=barcodes]"); return false; });
76
77     $("#relrenew_all"      ).click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=items]"   ); $(".checkboxed").unCheckCheckboxes(":input[name*=barcodes]"); });
78     $("#relCheckAllitems"  ).click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=items]"   ); $(".checkboxed").unCheckCheckboxes(":input[name*=barcodes]"); return false; });
79     $("#relCheckNoitems"   ).click(function(){ $(".checkboxed").unCheckCheckboxes(":input[name*=items]"); return false; });
80     $("#relCheckAllreturns").click(function(){ $(".checkboxed").checkCheckboxes(":input[name*=barcodes]"); $(".checkboxed").unCheckCheckboxes(":input[name*=items]"); return false; });
81     $("#relCheckNoreturns" ).click(function(){ $(".checkboxed").unCheckCheckboxes(":input[name*=barcodes]"); return false; });
82
83
84     [% IF ( CAN_user_circulate_override_renewals ) %]
85     [% IF ( AllowRenewalLimitOverride ) %]
86     $( '#override_limit' ).click( function () {
87         if ( this.checked ) {
88            $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide();
89         } else {
90            $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
91         }
92     } ).attr( 'checked', false );
93     [% END %]
94     [% END %]
95         $("td").click(function(e){
96                 if(e.target.tagName.toLowerCase() == 'td'){
97            $(this).find("input:checkbox").each( function() {
98                $(this).attr('checked', !$(this).attr('checked'));
99                            if($(this).attr('checked')){
100                     $(this).parent().siblings().find("input:checkbox").each(function(){
101                        if($(this).attr('checked')){ $(this).removeAttr('checked'); }
102                    });
103                            }
104            });
105                 }
106         });
107     $("#suspend_until").datepicker({ minDate: 1 }); // require that hold suspended until date is after today
108     $("#newduedate").datetimepicker({
109         minDate: 1, // require that renewal date is after today
110         hour: 23,
111         minute: 59
112     });
113  });
114 function uncheck_sibling(me){
115 nodename=me.getAttribute("name");
116 if (nodename =="barcodes[]"){
117     var Node=me.parentNode.previousSibling;
118     while (Node.nodeName!="TD"){Node=Node.previousSibling}
119     var Nodes=Node.childNodes;
120     for (var i=0;i < Nodes.length;i++){
121       if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
122         Nodes[i].checked=false;
123       }     
124    }   
125
126 }else {
127     var Node=me.parentNode.nextSibling;
128     while (Node.nodeName!="TD"){Node=Node.nextSibling}
129     var Nodes=Node.childNodes;
130     for (var i=0;i<Nodes.length;i++){
131       if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
132         Nodes[i].checked=false;
133       }     
134    }   
135 }
136 }
137 function validate1(date) {
138     var today = new Date();
139     if ( date < today ) {
140         return true;
141      } else {
142         return false;
143      }
144 };
145 //]]>
146 </script>
147
148 </head>
149 <body id="pat_moremember" class="pat">
150 [% INCLUDE 'header.inc' %]
151 [% INCLUDE 'patron-search.inc' %]
152
153 <div id="breadcrumbs">
154          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
155 &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
156 &rsaquo; [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Patron details for [% INCLUDE 'patron-title.inc' %][% END %]
157 </div>
158
159 <div id="doc3" class="yui-t1">
160    
161    <div id="bd">
162         <div id="yui-main">
163         <div class="yui-b">
164 [% INCLUDE 'members-toolbar.inc' %]
165 [% IF ( error ) %]
166 <div class="dialog alert">
167     [% IF ( AUTH_UPDATE_FAILED ) %]
168         <h3>Userid / Password update failed</h3>
169         <strong>Insufficient privileges.</strong>
170         <p>Other fields updated.</p>
171     [% END %]
172     [% IF ( CANT_DELETE_STAFF ) %]
173         <h3>Unable to delete staff user</h3>
174         <p>Insufficient privileges.</p>
175     [% END %]
176     [% IF ( CANT_DELETE_OTHERLIBRARY ) %]
177         <h3>Unable to delete patrons from other libraries with current settings</h3>
178         <p>Insufficient privileges.</p>
179     [% END %]
180     [% IF ( CANT_DELETE ) %]
181         <h3>Unable to delete patron</h3>
182         <p>Insufficient privileges.</p>
183     [% END %]
184 </div>
185 [% END %]
186 <div class="yui-g">
187
188 [% IF ( unknowuser ) %]
189    <div class="dialog message">This patron does not exist.</div>
190 [% ELSE %]
191     [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry %]</div>[% END %]
192
193     [% IF ( flagged ) %]
194     <div id="circmessages" class="circmessage attention">
195         <ul>
196         [% IF ( userdebarred ) %]
197             <li class="blocker">Patron is restricted[% IF ( userdebarreddate ) %] until [% userdebarreddate%] [% IF (debarredcomment ) %]([% debarredcomment %])[% END %][% END %]
198             <a href="#reldebarments" onclick="$('#debarments-tab-link').click()">View restrictions</a>
199             </li>
200         [% END %]
201         [% IF ( gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]
202         [% IF ( lost ) %]<li class="blocker">Patron's card has been reported lost.</li>[% END %]
203         </ul>
204     </div>
205     [% END %]
206
207 <h3>[% UNLESS ( I ) %]
208    [% title %] [% firstname %] [% END %] [% surname %] ([% cardnumber %])</h3>
209  <div class="yui-u first">
210 <div id="patron-information" style="padding : .5em;">
211
212      [% UNLESS ( I ) %][% IF ( othernames ) %]&ldquo;[% othernames %]&rdquo;[% END %]
213
214 <p class="address">[% streetnumber %]
215         [% IF ( roaddetails ) %]
216          [% roaddetails %]
217         [% END %]
218         [% address %]<br />
219         [% IF ( address2 ) %][% address2 %]<br />[% END %]
220         [% IF ( city ) %][% city %][% END %] 
221         [% IF ( state ) %][% state %][% END %]
222         [% IF ( zipcode ) %][% zipcode %]<br />[% END %]
223         [% IF ( country ) %][% country %][% END %]</p>
224                     
225         <div class="rows">
226                 <ol>
227         [% IF ( I ) %]
228             [% IF ( phonepro ) %]<li><span class="label">Organization phone: </span>[% phonepro %]</li>[% END %]
229             [% IF ( emailpro ) %]<li><span class="label">Organization email: </span>[% emailpro %]</li>[% END %]
230         [% ELSE %]
231             [% IF ( phone ) %]<li><span class="label">Primary phone: </span>[% phone %]</li>[% END %]
232             [% IF ( mobile ) %]<li><span class="label">Secondary phone: </span>[% mobile %]</li>[% END %]
233             [% IF ( phonepro ) %]<li><span class="label">Other phone: </span>[% phonepro %]</li>[% END %]
234         [% END %]
235
236     [% IF ( P ) %]
237         [% IF ( phone ) %]<li><span class="label">Primary phone: </span>[% phone %]</li>[% END %]
238         [% IF ( mobile ) %]<li><span class="label">Secondary phone: </span>[% mobile %]</li>[% END %]
239     [% END %]           
240         [% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax %]</li>[% END %]
241     [% UNLESS ( I ) %]
242         [% IF ( email ) %]<li><span class="label">Primary email:</span><a href="mailto:[% email %]">[% email %]</a></li>[% END %]
243         [% IF ( emailpro ) %]<li><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
244     [% END %]
245     [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
246     [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth %]</li>[% END %]
247     [% IF ( sex ) %]<li><span class="label">Gender:</span>
248     [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
249     </li>[% END %][% END %]
250     [% IF ( printethnicityline ) %]
251     <li><span class="label">Ethnicity:</span>[% ethnicity %]</li>
252     <li><span class="label">Ethnicity notes: </span>[% ethnotes %]</li>
253     [% END %]
254     [% IF ( isguarantee ) %]
255         [% IF ( guaranteeloop ) %]
256             <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>
257         [% END %]
258     [% ELSE %]
259         [% IF ( guarantorborrowernumber ) %]
260             <li><span class="label">Guarantor:</span><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorborrowernumber %]">[% guarantorsurname %], [% guarantorfirstname %]</a></li>
261         [% END %]
262     [% END %]
263 </ol>
264 </div>
265       <div class="action">
266         [% IF ( guarantorborrowernumber ) %]
267         <a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=1&amp;guarantorid=[% guarantorborrowernumber %]">Edit</a>
268         [% ELSE %]
269         <a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=1">Edit</a>
270         [% END %]</div>
271
272 </div>
273
274 <!-- Begin Upload Patron Image Section -->
275
276 <div id="manage-patron-image">
277 [% IF ( patronimages ) %]
278     [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
279         <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
280             <fieldset class="brief">
281             [% IF ( picture ) %]
282                 <legend>Manage Patron Image</legend>
283                 <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.
284             [% ELSE %]
285                 <legend>Upload Patron Image</legend>
286                 <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.
287             [% END %]
288                     <br />Only PNG, GIF, JPEG, XPM formats are supported.
289                 </div>
290                 <input type="hidden" id="image" name="filetype" value="image" />
291                 <input type="hidden" id="cardnumber" name="cardnumber" value="[% cardnumber %]" />
292                 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
293                 <ol>
294                     <li>
295                        <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
296                     </li>
297                 </ol>
298                 <fieldset class="action">
299                     <input type="submit" value="Upload" class="submit" />
300                     <input name="op" type="hidden" value="Upload" />
301                     [% IF ( picture ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&amp;cardnumber=[% cardnumber %]&amp;borrowernumber=[% borrowernumber %]" class="delete">Delete</a>[% END %]
302                 </fieldset>
303             </fieldset>
304         </form>
305     [% END %]
306 [% END %]
307 </div>
308
309 <!-- End Upload Patron Image Section -->
310
311 [% IF ( ExtendedPatronAttributes ) %]
312 [% UNLESS ( no_patron_attribute_types ) %]
313 <div id="patron-extended-attributes" style="padding-top: 1em;">
314 <h3>Additional attributes and identifiers</h3>
315 [% FOREACH attribute IN attributes_loop %]
316     [% IF attribute.class %]
317         <div id="aai_[% attribute.class %]" class="rows">
318     [% ELSE %]
319         <div id="aai" class="rows">
320     [% END %]
321         <h4>[% attribute.lib %]</h4>
322         <ol>
323         [% FOREACH item IN attribute.items %]
324             <li>
325                 <span class="label">[% item.description %]: </span>
326                 [% IF ( item.value_description ) %]
327                     [% item.value_description %]
328                 [% ELSE %]
329                     [% item.value| html_line_break %]
330                 [% END %]
331             </li>
332         [% END %]
333         </ol>
334     </div>
335 [% END %]
336 </div>
337 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=4">Edit</a></div>
338 [% END %]
339 [% END %]
340
341 [% IF ( EnhancedMessagingPreferences ) %]
342 <div id="patron-messaging-prefs" style="padding-top: 1em;">
343 <h3>Patron messaging preferences</h3>
344 [% INCLUDE 'messaging-preference-form.inc' %]
345  [% IF ( SMSSendDriver ) %]
346       <div class="rows"> <ol><li><span class="label">SMS number:</span>[% SMSnumber %]
347      </li></ol></div>
348  [% END %]
349 </div>
350 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=5">Edit</a></div>
351 [% END %]
352
353 </div>
354  <div class="yui-u"> 
355  <div id="patron-library-details">
356  <h3>Library use</h3>
357 <div class="rows"> 
358 <ol>
359     <li><span class="label">Card number: </span>[% cardnumber %]</li>
360         <li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
361     <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
362     <li><span class="label">Registration date: </span>[% dateenrolled %]</li>
363     
364     <li><span class="label">Expiration date: </span>
365     [% IF ( was_renewed ) %]
366             <strong class="reregistrinfo">[% dateexpiry %]</strong>
367     [% ELSE %]
368             [% dateexpiry %]
369     [% END %]
370     </li>
371     
372     <li><span class="label">Library: </span>[% branchname %]</li>
373
374     [% IF ( OPACPrivacy ) %]<li><span class="label">Privacy Pref:</span>
375          [% IF ( privacy0 ) %]Forever[% END %]
376          [% IF ( privacy1 ) %]Default[% END %]
377          [% IF ( privacy2 ) %]Never[% END %]
378     </li>[% END %]
379     [% IF ( sort1 ) %]<li><span class="label">Sort field 1:</span>[% lib1 %]</li>[% END %]
380     [% IF ( sort2 ) %]<li><span class="label">Sort field 2:</span>[% lib2 %]</li>[% END %]
381     <li><span class="label">Username: </span>[% userid %]</li>
382     <li><span class="label">Password: </span>
383     [% IF ( password ) %]
384         *******
385     [% ELSE %]
386         <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Undefined</a></span>
387     [% END %] 
388     </li>
389     [% IF ( borrowernotes ) %]<li><span class="label">Circulation note: </span>[% borrowernotes %]</li>[% END %]
390     [% IF ( opacnote ) %]<li><span class="label">OPAC note:</span>[% opacnote %]</li>[% END %]
391         </ol>
392         </div>
393  </div>
394     <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=3">Edit</a></div>
395  
396     [% UNLESS ( I ) %]
397  <div id="patron-alternate-address" style="padding-top: 1em;">
398     <h3>Alternate address</h3>
399     <div class="rows">  <ol><li><span class="label">Address: </span>[% B_address %]</li>
400       <li><span class="label">Address 2: </span>[% B_address2 %]</li>
401       <li><span class="label">City: </span>[% B_city %]</li>
402       [% IF ( B_state ) %]<li><span class="label">State: </span>[% B_state %]</li>[% END %]
403       <li><span class="label">Zip/Postal code: </span>[% B_zipcode %]</li>
404       [% IF ( B_country ) %]<li><span class="label">Country: </span>[% B_country %]</li>[% END %]
405       [% IF ( B_phone ) %]<li><span class="label">Phone: </span>[% B_phone %]</li>[% END %]
406       [% IF ( B_email ) %]<li><span class="label">Email: </span><a href="mailto:[% B_email %]">[% email %]</a></li>[% END %]</ol></div>
407 </div>
408 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=6">Edit</a></div>
409     [% END %]
410
411  <div id="patron-alternative-contact" style="padding-top: 1em;">
412  <h3>Alternative contact</h3>
413    <div class="rows"> <ol><li><span class="label">Surname: </span>[% altcontactsurname %]</li>
414     <li><span class="label">First name: </span>[% altcontactfirstname %]</li>    
415     <li><span class="label">Address: </span>[% altcontactaddress1 %]</li>
416     <li><span class="label">Address 2: </span>[% altcontactaddress2 %]</li>
417         <li><span class="label">City: </span>[% altcontactaddress3 %]</li>
418     [% IF ( altcontactstate ) %]<li><span class="label">State: </span>[% altcontactstate %]</li>[% END %]
419     <li><span class="label">Zip/Postal code: </span>[% altcontactzipcode %]</li>
420         [% IF ( altcontactcountry ) %]<li><span class="label">Country: </span>[% altcontactcountry %]</li>[% END %]
421     [% IF ( altcontactphone ) %]<li><span class="label">Phone: </span>[% altcontactphone %]</li>[% END %]
422     </ol></div>
423 </div>
424 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=2">Edit</a></div>
425
426 </div>
427 </div>
428
429 <div id="finesholdsissues" class="toptabs">
430     <ul>
431         <li><a href="#checkedout">[% issueloop.size %] Checkout(s)</a></li>
432     [% IF relissueloop.size %]
433         <li><a href="#relissues">Relatives' Checkouts</a></li>
434     [% END %]
435         <li><a href="#finesandcharges">Fines &amp; Charges</a></li>
436         <li>[% IF ( countreserv ) %]
437             <a href="#onhold">[% countreserv %] Hold(s)</a>    [% ELSE %]
438             <a href="#onhold">0 Holds</a>
439     [% END %]</li>
440         <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.size %] Restrictions</a></li>
441     </ul>
442
443     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post" class="checkboxed">
444     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
445     <input type="hidden" name="branch" value="[% branch %]" />
446 <div id="checkedout">
447     [% IF ( issueloop ) %]
448     <table id="issuest">
449     <thead>
450         <tr>
451             <th scope="col">Due date</th>
452             <th scope="col">Title</th>
453             <th scope="col">Item type</th>
454             <th scope="col">Checked out on</th> 
455             <th scope="col">Checked out from</th> 
456             <th scope="col">Call no.</th>
457             <th scope="col">Charge</th>
458             <th scope="col">Price</th>
459             <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th>
460             <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
461         </tr></thead>
462         [% INCLUDE 'checkouts-table-footer.inc' %]
463        <tbody>
464        [% FOREACH issueloo IN issueloop %]
465
466           [% IF ( issueloo.overdue ) %]
467           <tr class="problem">
468           [% ELSE %]
469           <tr>
470           [% END %]
471           [% IF ( issueloo.red ) %]
472               <td class="od">
473           [% ELSE %]
474             <td>
475           [% END %]
476                 <span title="[% issueloo.date_due %]">[% issueloo.date_due | $KohaDates %]</span>
477                 [% IF ( issueloo.itemlost ) %]
478                                         <span class="lost">[% issueloo.itemlost %]</span>
479                     [% END %]
480                 [% IF ( issueloo.damaged ) %]
481                                         <span class="dmg">[% issueloo.itemdamaged %]</span>
482                 [% END %]
483 </td>
484             <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% issueloo.biblionumber %]"><strong>[% issueloo.title |html %][% FOREACH subtitl IN issueloo.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF ( issueloo.author ) %], by [% issueloo.author %][% END %] [% IF ( issueloo.publishercode ) %]; [% issueloo.publishercode %] [% END %] [% IF ( issueloo.publicationyear ) %], [% issueloo.publicationyear %][% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% issueloo.biblionumber %]&amp;itemnumber=[% issueloo.itemnumber %]#item[% issueloo.itemnumber %]">[% issueloo.barcode %]</a></td>
485 <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( issueloo.itemtype_image ) %]<img src="[% issueloo.itemtype_image %]" alt="" />[% END %][% END %][% issueloo.itemtype_description %]</td>
486             <td><span title="[% issueloo.issuedate %]">[% issueloo.issuedate | $KohaDates%]</span></td>
487             <td>[% issueloo.issuingbranchname %]</td>
488             <td>[% issueloo.itemcallnumber %]</td>
489             <td>[% issueloo.charge %]</td>
490             <td>[% issueloo.replacementprice %]</td>
491       [% IF ( issueloo.renew_failed ) %]
492             <td class="problem">Renewal Failed</td>
493       [% ELSE %]
494             <td><span style="padding: 0 1em;">[% IF ( issueloo.renewals ) %][% issueloo.renewals %][% ELSE %]0[% END %]</span>
495             [% IF ( issueloo.norenew ) %]
496                 [% IF ( issueloo.can_confirm ) %]<span class="renewals-allowed" style="display: none">
497                     <input type="checkbox" name="all_items[]" value="[% issueloo.itemnumber %]" checked="checked" style="display: none;" />
498                     [% IF ( issueloo.od ) %]
499                         <input type="checkbox" name="items[]" value="[% issueloo.itemnumber %]" checked="checked" />
500                     [% ELSE %]
501                         <input type="checkbox" name="items[]" value="[% issueloo.itemnumber %]" />
502                     [% END %]
503                     </span>
504                     [% IF issueloo.renewsallowed && issueloo.renewsleft %]
505                         <span class="renewals">([% issueloo.renewsleft %] of [% issueloo.renewsallowed %] renewals remaining)</span>
506                     [% END %]
507                     <span class="renewals-disabled">
508                 [% END %]
509                 [% IF ( issueloo.norenew_reason_on_reserve ) %]
510                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% issueloo.biblionumber %]">On Hold</a>
511                 [% END %]
512                     [% IF ( issueloo.norenew_reason_too_many ) %]
513                         Not renewable
514                     [% END %]
515                 [% IF ( issueloo.can_confirm ) %]
516                     </span>
517                 [% END %]
518             [% ELSE %]
519             <input type="checkbox" name="all_items[]" value="[% issueloo.itemnumber %]" checked="checked" style="display: none;" />
520             [% IF ( issueloo.red ) %]
521             <input type="checkbox" name="items[]" value="[% issueloo.itemnumber %]" checked="checked" onclick="uncheck_sibling(this);" />
522             [% ELSE %]
523             <input type="checkbox" name="items[]" value="[% issueloo.itemnumber %]" onclick="uncheck_sibling(this);" />
524             [% END %]
525                 [% IF issueloo.renewsallowed && issueloo.renewsleft %]
526                     <span class="renewals">([% issueloo.renewsleft %] of [% issueloo.renewsallowed %] renewals remaining)</span>
527                 [% END %]
528             [% END %]
529             </td>
530       [% END %]
531       [% IF ( issueloo.return_failed ) %]
532             <td class="problem">Check-in failed</td>
533       [% ELSE %]
534         [% IF ( issueloo.norenew_reason_on_reserve ) %]
535             <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% issueloo.biblionumber %]">On hold</a></td>
536         [% ELSE %]
537             <td><input type="checkbox" name="barcodes[]"  value="[% issueloo.barcode %]" onclick="uncheck_sibling(this);" />
538                 <input type="checkbox" name="all_barcodes[]" value="[% issueloo.barcode %]" checked="checked" style="display: none;" />
539             </td>
540         [% END %]
541       [% END %]
542         </tr>
543   [% END %]
544         </tbody>
545         </table>
546         <fieldset class="action">
547         [% IF ( CAN_user_circulate_override_renewals ) %]
548         [% IF ( AllowRenewalLimitOverride ) %]
549         <label for="override_limit">Override renewal limit:</label>
550         <input type="checkbox" name="override_limit" id="override_limit" value="1" />
551         [% END %]
552         [% END %]
553         <input type="submit" name="renew_checked" value="Renew or return checked items" />
554         <input type="submit" id="renew_all" name="renew_all" value="Renew all" />
555         </fieldset>
556     [% ELSE %]<p>Patron has nothing checked out.</p>
557 [% END %]
558 </div>
559
560
561 [% IF relissueloop %]
562 <div id="relissues">
563  <table id="relissuest">
564     <thead>
565     <tr>
566             <th scope="col">Due date</th>
567             <th scope="col">Title</th>
568             <th scope="col">Item type</th>
569             <th scope="col">Checked out on</th> 
570             <th scope="col">Checked out from</th>
571             <th scope="col">Call no.</th>
572             <th scope="col">Charge</th>
573             <th scope="col">Price</th>
574             <th scope="col">Patron</th>
575         </tr>
576     </thead>
577        <tbody>
578        [% FOREACH relissueloo IN relissueloop %]
579
580           [% IF ( relissueloo.overdue ) %]
581           <tr class="problem">
582           [% ELSE %]
583           <tr>
584           [% END %]
585           [% IF ( relissueloo.red ) %]
586             <td class="od">
587           [% ELSE %]
588             <td>
589           [% END %]
590                 <span title="[% relissueloo.date_due %]">[% relissueloo.date_due | $KohaDates %]</span>
591                 [% IF ( relissueloo.itemlost ) %]
592                                         <span class="lost">[% relissueloo.itemlost %]</span>
593                     [% END %]
594                 [% IF ( relissueloo.damaged ) %]
595                                         <span class="dmg">[% relissueloo.itemdamaged %]</span>
596                 [% END %]
597 </td>
598             <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% relissueloo.biblionumber %]"><strong>[% relissueloo.title |html %][% FOREACH subtitl IN relissueloo.subtitle %] [% subtitl.subfield %][% END %]</strong></a>[% IF relissueloo.author %], by [% relissueloo.author %][% END %] [% IF relissueloo.publishercode %]; [% relissueloo.publishercode %] [% END %] [% IF relissueloo.publicationyear %], [% relissueloo.publicationyear %][% END %] <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% relissueloo.biblionumber %]&amp;itemnumber=[% relissueloo.itemnumber %]#item[% relissueloo.itemnumber %]">[% relissueloo.barcode %]</a></td>
599 <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( relissueloo.itemtype_image ) %]<img src="[% relissueloo.itemtype_image %]" alt="" />[% END %][% END %][% relissueloo.itemtype_description %]</td>
600             <td><span title="[% relissueloo.issuedate %]">[% relissueloo.issuedate | $KohaDates %]</span></td>
601             <td>[% relissueloo.issuingbranchname %]</td>
602         <td>[% relissueloo.itemcallnumber %]</td>
603         <td>[% relissueloo.charge %]</td>
604         <td>[% relissueloo.replacementprice %]</td>
605         <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relissueloo.borrowernumber %]">[% relissueloo.firstname %] [% relissueloo.surname %] ([% relissueloo.cardnumber %])</a></td>
606         </tr>
607   [% END %]
608         </tbody>
609        </table>
610     </div>
611 [% END %]
612     </form>
613
614 <div id="finesandcharges">
615     [% IF ( totaldue_raw ) %]
616         <p>Total due: [% totaldue %]</p>
617     [% ELSE %]
618         <p>No outstanding charges</p>
619     [% END %]
620 </div>
621
622 [% INCLUDE borrower_debarments.inc %]
623
624 <div id="onhold">
625 [% IF ( reservloop ) %]
626 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
627         <input type="hidden" name="from" value="borrower" />
628         <table id="holdst">
629                 <thead><tr>
630                         <th>Hold date</th>
631                         <th>Title</th>
632             <th>Call number</th>
633                         <th>Barcode</th>
634             <th>Expiration</th>
635                         <th>Priority</th>
636                         <th>Delete?</th>
637                         <th>&nbsp;</th>
638                 </tr></thead>
639                 <tbody>[% FOREACH reservloo IN reservloop %]
640                 <tr class="[% reservloo.color %]">
641             <td><span title="[% reservloo.reservedate %]">[% reservloo.reservedate | $KohaDates %]</span></td>
642             <td>
643                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% reservloo.biblionumber %]">[% reservloo.title |html %][% FOREACH subtitl IN reservloo.subtitle %] [% subtitl.subfield %][% END %]</a>[% IF ( reservloo.author ) %], by [% reservloo.author %][% END %]
644             </td>
645             <td>[% reservloo.itemcallnumber %]</td>
646             <td>[% IF ( reservloo.waiting ) %]
647                 <em>Item is <strong>waiting</strong></em>
648                 [% END %]
649                 [% IF ( reservloo.transfered ) %]
650                 <em>Item <strong>in transit</strong> from
651                 [% reservloo.frombranch %] since [% reservloo.datesent %] </em>
652                 [% END %]
653
654                 [% IF ( reservloo.nottransfered ) %]
655                 <em>Item hasn't been transferred yet from [% reservloo.nottransferedby %]</em>
656                 [% END %]
657                 [% IF ( reservloo.barcodereserv ) %]
658                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reservloo.biblionumber %]">[% reservloo.barcodereserv %]</a>
659                 [% END %]
660             </td>
661             <td>[% reservloo.expirationdate | $KohaDates %]</td>
662             <td>[% IF ( reservloo.waitingposition ) %]<strong>[% reservloo.waitingposition %]</strong>[% END %]</td>
663             <td><select name="rank-request">
664                     <option value="n">No</option>
665                     <option value="del">Yes</option>
666                 </select>
667                 <input type="hidden" name="biblionumber" value="[% reservloo.biblionumber %]" />
668                 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
669                 <input type="hidden" name="reserve_id" value="[% reservloo.reserve_id %]" />
670             </td>
671             <td>[% IF ( reservloo.suspend ) %]Suspended [% IF ( reservloo.suspend_until ) %] until [% reservloo.suspend_until | $KohaDates %][% END %][% END %]</td>
672         </tr>
673                 [% END %]</tbody>
674     </table>
675
676         <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel marked holds" /></fieldset>
677     </form>
678
679     [% IF SuspendHoldsIntranet %]
680     <fieldset class="action">
681         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
682             <input type="hidden" name="from" value="borrower" />
683             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
684             <input type="submit" value="Suspend all holds" />
685
686             [% IF AutoResumeSuspendedHolds %]
687             <label for="suspend_until">until</label>
688             <input type="text" size="10" id="suspend_until" name="suspend_until"/>
689             <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
690             [% END %]
691         </form>
692     </fieldset>
693
694     <fieldset class="action">
695         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
696             <input type="hidden" name="from" value="borrower" />
697             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
698             <input type="hidden" name="suspend" value="0" />
699             <input type="submit" value="Resume all suspended holds" />
700         </form>
701     </fieldset>
702     [% END # IF SuspendHoldsIntranet %]
703
704     [% ELSE %]<p>Patron has nothing on hold.</p>[% END %]
705         </div>
706
707 </div>
708 [% END %] <!-- unknowuser -->
709
710
711 </div>
712 </div>
713 <div class="yui-b">
714 [% INCLUDE 'circ-menu.inc' %]
715 </div>
716 </div>
717 [% INCLUDE 'intranet-bottom.inc' %]