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