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