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