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