Merge remote-tracking branch 'origin/new/bug_7986'
[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         <div id="aai_[% attribute.class %]" class="rows">
294     [% ELSE %]
295         <div id="aai" class="rows">
296     [% END %]
297         <h4>[% attribute.lib %]</h4>
298         <ol>
299         [% FOREACH item IN attribute.items %]
300             <li>
301                 <span class="label">[% item.description %]: </span>
302                 [% IF ( item.value_description ) %]
303                     [% item.value_description %]
304                 [% ELSE %]
305                     [% item.value| html_line_break %]
306                 [% END %]
307             </li>
308         [% END %]
309         </ol>
310     </div>
311 [% END %]
312 </div>
313 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=4">Edit</a></div>
314 [% END %]
315 [% END %]
316
317 [% IF ( EnhancedMessagingPreferences ) %]
318 <div id="patron-messaging-prefs" style="padding-top: 1em;">
319 <h3>Patron messaging preferences</h3>
320 [% INCLUDE 'messaging-preference-form.inc' %]
321  [% IF ( SMSSendDriver ) %]
322       <div class="rows"> <ol><li><span class="label">SMS number:</span>[% SMSnumber %]
323      </li></ol></div>
324  [% END %]
325 </div>
326 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=5">Edit</a></div>
327 [% END %]
328
329 </div>
330  <div class="yui-u"> 
331  <div id="patron-library-details">
332  <h3>Library use</h3>
333 <div class="rows"> 
334 <ol>
335     <li><span class="label">Card number: </span>[% cardnumber %]</li>
336         <li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li>
337     <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
338     <li><span class="label">Registration date: </span>[% dateenrolled %]</li>
339     
340     <li><span class="label">Expiration date: </span>
341     [% IF ( reregistration ) %]
342             <strong class="reregistrinfo">[% dateexpiry %]</span>
343     [% ELSE %]
344             [% dateexpiry %]
345     [% END %]
346     </li>
347     
348     <li><span class="label">Library: </span>[% branchname %]</li>
349
350     [% IF ( OPACPrivacy ) %]<li><span class="label">Privacy Pref:</span>
351          [% IF ( privacy0 ) %]Forever[% END %]
352          [% IF ( privacy1 ) %]Default[% END %]
353          [% IF ( privacy2 ) %]Never[% END %]
354     </li>[% END %]
355     [% IF ( sort1 ) %]<li><span class="label">Sort field 1:</span>[% lib1 %]</li>[% END %]
356     [% IF ( sort2 ) %]<li><span class="label">Sort field 2:</span>[% lib2 %]</li>[% END %]
357     <li><span class="label">Username: </span>[% userid %]</li>
358     <li><span class="label">Password: </span>
359     [% IF ( password ) %]
360         *******
361     [% ELSE %]
362         <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Undefined</a></span>
363     [% END %] 
364     </li>
365     [% IF ( borrowernotes ) %]<li><span class="label">Circulation note: </span>[% borrowernotes %]</li>[% END %]
366     [% IF ( opacnote ) %]<li><span class="label">OPAC note:</span>[% opacnote %]</li>[% END %]
367         </ol>
368         </div>
369  </div>
370     <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=3">Edit</a></div>
371  
372     [% UNLESS ( I ) %]
373  <div id="patron-alternate-address" style="padding-top: 1em;">
374     <h3>Alternate address</h3>
375     <div class="rows">  <ol><li><span class="label">Address: </span>[% B_address %]</li>
376       <li><span class="label">Address 2: </span>[% B_address2 %]</li>
377       <li><span class="label">City: </span>[% B_city %]</li>
378       [% IF ( B_state ) %]<li><span class="label">State: </span>[% B_state %]</li>[% END %]
379       <li><span class="label">Zip/Postal code: </span>[% B_zipcode %]</li>
380       [% IF ( B_country ) %]<li><span class="label">Country: </span>[% B_country %]</li>[% END %]
381       [% IF ( B_phone ) %]<li><span class="label">Phone: </span>[% B_phone %]</li>[% END %]
382       [% IF ( B_email ) %]<li><span class="label">Email: </span><a href="mailto:[% B_email %]">[% email %]</a></li>[% END %]</ol></div>
383 </div>
384 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=6">Edit</a></div>
385     [% END %]
386
387  <div id="patron-alternative-contact" style="padding-top: 1em;">
388  <h3>Alternative contact</h3>
389    <div class="rows"> <ol><li><span class="label">Surname: </span>[% altcontactsurname %]</li>
390     <li><span class="label">First name: </span>[% altcontactfirstname %]</li>    
391     <li><span class="label">Address: </span>[% altcontactaddress1 %]</li>
392     <li><span class="label">Address 2: </span>[% altcontactaddress2 %]</li>
393         <li><span class="label">City: </span>[% altcontactaddress3 %]</li>
394     [% IF ( altcontactstate ) %]<li><span class="label">State: </span>[% altcontactstate %]</li>[% END %]
395     <li><span class="label">Zip/Postal code: </span>[% altcontactzipcode %]</li>
396         [% IF ( altcontactcountry ) %]<li><span class="label">Country: </span>[% altcontactcountry %]</li>[% END %]
397     [% IF ( altcontactphone ) %]<li><span class="label">Phone: </span>[% altcontactphone %]</li>[% END %]
398     </ol></div>
399 </div>
400 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=2">Edit</a></div>
401
402 </div>
403 </div>
404
405 <div id="finesholdsissues" class="toptabs">
406     <ul>
407         <li><a href="#checkedout">[% issueloop.size %] Checkout(s)</a></li>
408     [% IF relissueloop.size %]
409         <li><a href="#relissues">Relatives' Checkouts</a></li>
410     [% END %]
411         <li><a href="#finesandcharges">Fines &amp; Charges</a></li>
412         <li>[% IF ( countreserv ) %]
413             <a href="#onhold">[% countreserv %] Hold(s)</a>    [% ELSE %]
414             <a href="#onhold">0 Holds</a>
415     [% END %]</li>
416     </ul>
417
418     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post" class="checkboxed">
419     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
420     <input type="hidden" name="branch" value="[% branch %]" />
421 <div id="checkedout">
422     [% IF ( issueloop ) %]
423     <table id="issuest">
424     <thead>
425         <tr>
426             <th scope="col">Due date</th>
427             <th scope="col">Title</th>
428             <th scope="col">Item type</th>
429             <th scope="col">Checked out on</th> 
430             <th scope="col">Checked out from</th> 
431             <th scope="col">Call no.</th>
432             <th scope="col">Charge</th>
433             <th scope="col">Price</th>
434             <th scope="col">Renew <p class="column-tool"><a href="#" id="CheckAllitems">select all</a> | <a href="#" id="CheckNoitems">none</a></p></th>
435             <th scope="col">Check in <p class="column-tool"><a href="#" id="CheckAllreturns">select all</a> | <a href="#" id="CheckNoreturns">none</a></p></th>
436         </tr></thead>
437         [% INCLUDE 'checkouts-table-footer.inc' %]
438        <tbody>
439        [% FOREACH issueloo IN issueloop %]
440
441           [% IF ( issueloo.overdue ) %]
442           <tr class="problem">
443           [% ELSE %]
444           <tr>
445           [% END %]
446           [% IF ( issueloo.red ) %]
447               <td class="od">
448           [% ELSE %]
449             <td>
450           [% END %]
451                 [% issueloo.date_due %]
452                 [% IF ( issueloo.itemlost ) %]
453                                         <span class="lost">[% issueloo.itemlost %]</span>
454                     [% END %]
455                 [% IF ( issueloo.damaged ) %]
456                                         <span class="dmg">[% issueloo.itemdamaged %]</span>
457                 [% END %]
458 </td>
459             <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>
460 <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( issueloo.itemtype_image ) %]<img src="[% issueloo.itemtype_image %]" alt="" />[% END %][% END %][% issueloo.itemtype_description %]</td>
461             <td>[% issueloo.issuedate %]</td>
462             <td>[% issueloo.issuingbranchname %]</td>
463             <td>[% issueloo.itemcallnumber %]</td>
464             <td>[% issueloo.charge %]</td>
465             <td>[% issueloo.replacementprice %]</td>
466       [% IF ( issueloo.renew_failed ) %]
467             <td class="problem">Renewal Failed</td>
468       [% ELSE %]
469             <td><span style="padding: 0 1em;">[% IF ( issueloo.renewals ) %][% issueloo.renewals %][% ELSE %]0[% END %]</span>
470             [% IF ( issueloo.norenew ) %]
471                 [% IF ( issueloo.can_confirm ) %]<span class="renewals-allowed" style="display: none">
472                     <input type="checkbox" name="all_items[]" value="[% issueloo.itemnumber %]" checked="checked" style="display: none;" />
473                     [% IF ( issueloo.od ) %]
474                         <input type="checkbox" name="items[]" value="[% issueloo.itemnumber %]" checked="checked" />
475                     [% ELSE %]
476                         <input type="checkbox" name="items[]" value="[% issueloo.itemnumber %]" />
477                     [% END %]
478                     </span>
479                     <span class="renewals-disabled">
480                 [% END %]
481                 [% IF ( issueloo.norenew_reason_on_reserve ) %]
482                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% issueloo.biblionumber %]">On Hold</a>
483                 [% END %]
484                     [% IF ( issueloo.norenew_reason_too_many ) %]
485                         Not renewable
486                     [% END %]
487                 [% IF ( issueloo.can_confirm ) %]
488                     </span>
489                 [% END %]
490             [% ELSE %]
491             <input type="checkbox" name="all_items[]" value="[% issueloo.itemnumber %]" checked="checked" style="display: none;" />
492             [% IF ( issueloo.red ) %]
493             <input type="checkbox" name="items[]" value="[% issueloo.itemnumber %]" checked="checked" onclick="uncheck_sibling(this);" />
494             [% ELSE %]
495             <input type="checkbox" name="items[]" value="[% issueloo.itemnumber %]" onclick="uncheck_sibling(this);" />
496             [% END %]
497             [% END %]
498             </td>
499       [% END %]
500       [% IF ( issueloo.return_failed ) %]
501             <td class="problem">Check-in failed</td>
502       [% ELSE %]
503         [% IF ( issueloo.norenew_reason_on_reserve ) %]
504             <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% issueloo.biblionumber %]">On hold</a></td>
505         [% ELSE %]
506             <td><input type="checkbox" name="barcodes[]"  value="[% issueloo.barcode %]" onclick="uncheck_sibling(this);" />
507                 <input type="checkbox" name="all_barcodes[]" value="[% issueloo.barcode %]" checked="checked" style="display: none;" />
508             </td>
509         [% END %]
510       [% END %]
511         </tr>
512   [% END %]
513         </tbody>
514         </table>
515         <fieldset class="action">
516         [% IF ( CAN_user_circulate_override_renewals ) %]
517         [% IF ( AllowRenewalLimitOverride ) %]
518         <label for="override_limit">Override renewal limit:</label>
519         <input type="checkbox" name="override_limit" id="override_limit" value="1" />
520         [% END %]
521         [% END %]
522         <input type="submit" name="renew_checked" value="Renew or return checked items" />
523         <input type="submit" id="renew_all" name="renew_all" value="Renew all" />
524         </fieldset>
525     [% ELSE %]<p>Patron has nothing checked out.</p>
526 [% END %]
527 </div>
528
529
530 [% IF relissueloop %]
531 <div id="relissues">
532  <table id="relissuest">
533     <thead>
534     <tr>
535             <th scope="col">Due date</th>
536             <th scope="col">Title</th>
537             <th scope="col">Item type</th>
538             <th scope="col">Checked out on</th> 
539             <th scope="col">Checked out from</th>
540             <th scope="col">Call no.</th>
541             <th scope="col">Charge</th>
542             <th scope="col">Price</th>
543             <th scope="col">Patron</th>
544         </tr>
545     </thead>
546        <tbody>
547        [% FOREACH relissueloo IN relissueloop %]
548
549           [% IF ( relissueloo.overdue ) %]
550           <tr class="problem">
551           [% ELSE %]
552           <tr>
553           [% END %]
554           [% IF ( relissueloo.red ) %]
555             <td class="od">
556           [% ELSE %]
557             <td>
558           [% END %]
559                 [% relissueloo.date_due %]
560                 [% IF ( relissueloo.itemlost ) %]
561                                         <span class="lost">[% relissueloo.itemlost %]</span>
562                     [% END %]
563                 [% IF ( relissueloo.damaged ) %]
564                                         <span class="dmg">[% relissueloo.itemdamaged %]</span>
565                 [% END %]
566 </td>
567             <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>
568 <td>[% UNLESS ( noItemTypeImages ) %] [% IF ( relissueloo.itemtype_image ) %]<img src="[% relissueloo.itemtype_image %]" alt="" />[% END %][% END %][% relissueloo.itemtype_description %]</td>
569             <td>[% relissueloo.issuedate %]</td>
570             <td>[% relissueloo.issuingbranchname %]</td>
571         <td>[% relissueloo.itemcallnumber %]</td>
572         <td>[% relissueloo.charge %]</td>
573         <td>[% relissueloo.replacementprice %]</td>
574         <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% relissueloo.borrowernumber %]">[% relissueloo.firstname %] [% relissueloo.surname %] ([% relissueloo.cardnumber %])</a></td>
575         </tr>
576   [% END %]
577         </tbody>
578        </table>
579     </div>
580 [% END %]
581     </form>
582
583 <div id="finesandcharges">
584     [% IF ( totaldue_raw ) %]
585         <p>Total due: [% totaldue %]</p>
586     [% ELSE %]
587         <p>No outstanding charges</p>
588     [% END %]
589 </div>
590
591 <div id="onhold">
592 [% IF ( reservloop ) %]
593 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
594         <input type="hidden" name="from" value="borrower" />
595         <table id="holdst">
596                 <thead><tr>
597                         <th>Hold date</th>
598                         <th>Title</th>
599             <th>Call number</th>
600                         <th>Barcode</th>
601                         <th>Priority</th>
602                         <th>Delete?</th>
603                         <th>&nbsp;</th>
604                 </tr></thead>
605                 <tbody>[% FOREACH reservloo IN reservloop %]
606                 <tr class="[% reservloo.color %]">
607             <td>[% reservloo.reservedate %]</td>
608             <td>
609                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% reservloo.biblionumber %]">[% reservloo.title |html %]</a>[% IF ( reservloo.author ) %], by [% reservloo.author %][% END %]
610             </td>
611             <td>[% reservloo.itemcallnumber %]</td>
612             <td>[% IF ( reservloo.waiting ) %]
613                 <em>Item is <strong>waiting</strong></em>
614                 [% END %]
615                 [% IF ( reservloo.transfered ) %]
616                 <em>Item <strong>in transit</strong> from
617                 [% reservloo.frombranch %] since [% reservloo.datesent %] </em>
618                 [% END %]
619
620                 [% IF ( reservloo.nottransfered ) %]
621                 <em>Item hasn't been transferred yet from [% reservloo.nottransferedby %]</em>
622                 [% END %]
623                 [% IF ( reservloo.barcodereserv ) %]
624                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% reservloo.biblionumber %]">[% reservloo.barcodereserv %]</a>
625                 [% END %]
626             </td>
627             <td>[% IF ( reservloo.waitingposition ) %]<strong>[% reservloo.waitingposition %]</strong>[% END %]</td>
628             <td><select name="rank-request">
629                     <option value="n">No</option>
630                     <option value="del">Yes</option>
631                 </select>
632                 <input type="hidden" name="biblionumber" value="[% reservloo.biblionumber %]" />
633                 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
634             </td>
635             <td>[% IF ( reservloo.suspend ) %]Suspended [% IF ( reservloo.suspend_until ) %] until [% reservloo.suspend_until | $KohaDates %][% END %][% END %]</td>
636         </tr>
637                 [% END %]</tbody>
638     </table>
639
640         <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel marked holds" /></fieldset>
641     </form>
642
643     [% IF SuspendHoldsIntranet %]
644     <fieldset class="action">
645         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
646             <input type="hidden" name="from" value="borrower" />
647             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
648             <input type="submit" value="Suspend all holds" />
649
650             [% IF AutoResumeSuspendedHolds %]
651             <label for="suspend_until">until</label>
652             <input type="text" size="10" id="suspend_until" name="suspend_until"/>
653             <span class="hint">Specify date on which to resume [% INCLUDE 'date-format.inc' %]: </span>
654             [% END %]
655         </form>
656     </fieldset>
657
658     <fieldset class="action">
659         <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post">
660             <input type="hidden" name="from" value="borrower" />
661             <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
662             <input type="hidden" name="suspend" value="0" />
663             <input type="submit" value="Resume all suspended holds" />
664         </form>
665     </fieldset>
666     [% END # IF SuspendHoldsIntranet %]
667
668     [% ELSE %]<p>Patron has nothing on hold.</p>[% END %]
669         </div>
670
671 </div>
672 [% END %] <!-- unknowuser -->
673
674
675 </div>
676 </div>
677 <div class="yui-b">
678 [% INCLUDE 'circ-menu.inc' %]
679 </div>
680 </div>
681 [% INCLUDE 'intranet-bottom.inc' %]