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