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