removed invalid TMPL_IF EXPR
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / moremember.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Patrons &rsaquo; <!-- TMPL_IF NAME="unknowuser" -->Patron does not exist<!-- TMPL_ELSE -->Patron Details for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
5 <script type="text/JavaScript" language="JavaScript">
6 //<![CDATA[
7 $(document).ready(function() {
8         $('#finesholdsissues > ul').tabs();
9         $('#manage-patron-image').find("input[@value*=Delete]").click(function(){
10                  return confirm('Are you sure you want to delete this patron image? This cannot be undone.');
11         });<!-- TMPL_IF NAME="picture" -->
12         $('#manage-patron-image').find("input[@value*=Upload]").click(function(){
13                 if($("#uploadfile").val() == ""){
14                         alert("Please choose a file to upload");
15                         return false;
16                         } else {
17                  return confirm('Are you sure you want to replace the current patron image? This cannot be undone.');
18                  }
19         });<!-- /TMPL_IF -->
20  });
21 function uncheck_sibling(me){
22 nodename=me.getAttribute("name");
23 if (nodename =="barcodes[]"){
24     var Node=me.parentNode.previousSibling;
25     while (Node.nodeName!="TD"){Node=Node.previousSibling}
26     var Nodes=Node.childNodes;
27     for (var i=0;i<Nodes.length;i++){
28       if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
29         Nodes[i].checked=false;
30       }     
31    }   
32
33 }else {
34     var Node=me.parentNode.nextSibling;
35     while (Node.nodeName!="TD"){Node=Node.nextSibling}
36     var Nodes=Node.childNodes;
37     for (var i=0;i<Nodes.length;i++){
38       if (Nodes[i].nodeName=="INPUT" && Nodes[i].getAttribute("type")=="checkbox"){
39         Nodes[i].checked=false;
40       }     
41    }   
42 }
43 }
44 function checkall(myname){
45 var ItemsNodes=document.getElementsByName('items[]');
46 var BarcodesNodes=document.getElementsByName('barcodes[]');
47 if (myname =="barcodes[]"){
48 for (var i=0;i<ItemsNodes.length;i++){
49     ItemsNodes[i].checked=false;
50 }   
51 for (var i=0;i<BarcodesNodes.length;i++){
52     BarcodesNodes[i].checked=true;
53 }   
54 }else {
55 for (var i=0;i<BarcodesNodes.length;i++){
56     BarcodesNodes[i].checked=false;
57 }   
58 for (var i=0;i<ItemsNodes.length;i++){
59     ItemsNodes[i].checked=true;
60 }   
61 }
62 }
63 function uncheckall(myname){
64 var ItemsNodes=document.getElementsByName('items[]');
65 var BarcodesNodes=document.getElementsByName('barcodes[]');
66 if (myname =="barcodes[]"){
67 for (var i=0;i<BarcodesNodes.length;i++){
68     BarcodesNodes[i].checked=false;
69 }   
70 }else {
71 for (var i=0;i<ItemsNodes.length;i++){
72     ItemsNodes[i].checked=false;
73 }   
74 }
75 }
76 //]]>
77 </script>
78
79 </head>
80 <body>
81 <!-- TMPL_INCLUDE NAME="header.inc" -->
82 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
83
84 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; <!-- TMPL_IF NAME="unknowuser" -->Patron does not exist<!-- TMPL_ELSE -->Patron Details for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)<!-- /TMPL_IF --> </div>
85
86 <div id="doc3" class="yui-t1">
87    
88    <div id="bd">
89         <div id="yui-main">
90         <div class="yui-b">
91 <!-- TMPL_INCLUDE NAME="members-toolbar.inc" -->
92 <!-- TMPL_IF NAME="error" -->
93 <div class="dialog alert">
94 <!-- TMPL_IF NAME="AUTH_UPDATE_FAILED" -->
95 <h3>Userid / Password update failed</h3>
96 <strong>Insufficient privileges.</strong>
97 <p>Other fields updated.</p>
98 <!-- /TMPL_IF -->
99 <!-- TMPL_IF NAME="CANT_DELETE_STAFF" -->
100 <h3>Unable to delete staff user</h3>
101 <p>Insufficient privileges.</p>
102 <!-- /TMPL_IF -->
103 <!-- TMPL_IF NAME="CANT_DELETE_OTHERLIBRARY" -->
104 <h3>Unable to delete patrons from other libraries with current settings</h3>
105 <p>Insufficient privileges.</p>
106 <!-- /TMPL_IF -->
107 <!-- TMPL_IF NAME="CANT_DELETE" -->
108 <h3>Unable to delete patron:</h3>
109 <p>Insufficient privileges.</p>
110 <!-- /TMPL_IF -->
111 </div>
112 <!-- /TMPL_IF -->
113 <div class="yui-g">
114 <!-- TMPL_IF NAME="unknowuser" -->
115    <div class="dialog message">
116          This patron does not exist.
117    </div>
118 <!-- TMPL_ELSE -->
119 <!-- TMPL_IF NAME="reregistration" --><div class="dialog message">Patron's account has been renewed until <!-- TMPL_VAR NAME="dateexpiry" --></div><!-- /TMPL_IF -->
120 <form action="" name="form">
121 <input type="hidden" name="reregistration" value="<!-- TMPL_VAR NAME="reregistration"-->" /> 
122 <input type="hidden" name="borrowernumber" id="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
123 </form>
124
125 <!-- TMPL_IF NAME="flagged" -->
126     <ul>
127         <!-- TMPL_IF NAME="debarred" -->
128             <li>Patron is restricted
129             <form class="inline compact" action="/cgi-bin/koha/members/setdebar.pl" method="post">
130                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
131                 <input type="hidden" name="status" value="0" />
132                 <input type="submit" value="Lift Debarment" />
133             </form>
134             </li>
135         <!-- /TMPL_IF -->
136         <!-- TMPL_IF NAME="gonenoaddress" --><li>Patron's address is in doubt.</li><!-- /TMPL_IF -->
137         <!-- TMPL_IF NAME="lost" --><li>Patron's card has been reported lost.</li><!-- /TMPL_IF -->
138     </ul>
139
140 <!-- /TMPL_IF -->
141
142 <h3><!-- TMPL_UNLESS NAME="I" -->
143    <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- /TMPL_UNLESS --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</h3>
144  <div class="yui-u first">
145 <div id="patron-information" style="padding : .5em;">
146
147      <!-- TMPL_UNLESS NAME="I" --><!-- TMPL_IF NAME="othernames" -->&ldquo;<!-- TMPL_VAR NAME="othernames" -->&rdquo;<!-- /TMPL_IF -->
148
149 <p class="address"><!-- TMPL_VAR NAME="streetnumber" -->
150         <!--TMPL_IF NAME="roaddetails"-->
151          <!-- TMPL_VAR NAME="roaddetails" -->,
152         <!-- /TMPL_IF -->
153         <!-- TMPL_VAR NAME="address" --><br />
154         <!-- TMPL_IF NAME="address2" --><!-- TMPL_VAR NAME="address2"--><br /><!-- /TMPL_IF -->
155         <!-- TMPL_IF NAME="city" --><!-- TMPL_VAR NAME="city" --><!-- /TMPL_IF -->
156         <!-- TMPL_IF NAME="zipcode" --><!-- TMPL_VAR NAME="zipcode" --><!-- /TMPL_IF --></p>
157                     
158         <div class="rows">
159                 <ol>
160                 <!-- TMPL_UNLESS NAME="I"-->
161                         <!-- TMPL_IF NAME="phone" --><li><span class="label">Home: </span><!-- TMPL_VAR NAME="phone" --></li><!-- /TMPL_IF -->
162                     <!-- TMPL_IF NAME="mobile" --><li><span class="label">Mobile:  </span><!-- TMPL_VAR NAME="mobile" --></li><!-- /TMPL_IF -->
163                     <!-- TMPL_IF NAME="phonepro" --><li><span class="label">Work: </span><!-- TMPL_VAR NAME="phonepro" --></li><!-- /TMPL_IF -->
164                 <!-- /TMPL_UNLESS -->
165                 <!-- TMPL_IF NAME="I" -->
166                         <!-- TMPL_IF NAME="phonepro" --><li><span class="label">Organisation phone: </span><!-- TMPL_VAR NAME="phonepro" --></li><!-- /TMPL_IF -->
167                         <!-- TMPL_IF NAME="emailpro" --><li><span class="label">Organisation email: </span><!-- TMPL_VAR NAME="emailpro" --></li><!-- /TMPL_IF -->
168     <!-- /TMPL_IF -->
169
170     <!-- TMPL_IF NAME="P"-->
171    <!-- TMPL_IF NAME="phone" --><li><span class="label">Professional phone: </span><!-- TMPL_VAR NAME="phone" --></li><!-- /TMPL_IF -->
172     <!-- TMPL_IF NAME="mobile" --><li><span class="label">Professionnal mobile: </span><!-- TMPL_VAR NAME="mobile" --></li><!-- /TMPL_IF -->
173     <!-- /TMPL_IF -->           
174         <!-- TMPL_IF NAME="fax" --><li><span class="label">Fax: </span><!-- TMPL_VAR NAME="fax" --></li><!-- /TMPL_IF -->
175   <!-- TMPL_UNLESS NAME="I"-->
176         <!--TMPL_IF Name="email"--><li><span class="label">Email (home):</span><a href="mailto:<!-- TMPL_VAR NAME="email" -->"><!-- TMPL_VAR NAME="email" --></a></li><!-- /TMPL_IF -->
177         <!--TMPL_IF Name="emailpro"--><li><span class="label">Email (work): </span><a href="mailto:<!-- TMPL_VAR NAME="emailpro" -->"><!-- TMPL_VAR NAME="emailpro" --></a></li><!--/TMPL_IF-->
178     <!-- /TMPL_UNLESS -->
179     <li><span class="label">Initials: </span><!-- TMPL_VAR NAME="initials" --></li>
180     <li><span class="label">Date of birth:</span><!-- TMPL_VAR NAME="dateofbirth" --></li>
181     <li><span class="label">Sex:</span><!-- TMPL_VAR NAME="sex" --></li><!-- /TMPL_UNLESS -->
182     <!-- TMPL_IF NAME="printethnicityline" -->
183     <li><span class="label">Ethnicity:</span><!-- TMPL_VAR NAME="ethnicity" --></li>
184     <li><span class="label">Ethnicity notes: </span><!-- TMPL_VAR NAME="ethnotes" --></li>
185     <!-- /TMPL_IF -->
186    <!-- TMPL_IF name="isguarantee" -->
187             <!-- TMPL_IF NAME="guaranteeloop" -->
188                 <li><span class="label">Guarantees:</span><ul><!-- tmpl_loop name="guaranteeloop" --><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="name" -->  </a></li><!-- /tmpl_loop --></ul></li>
189             <!-- /TMPL_IF -->
190         <!-- TMPL_ELSE -->
191             <!-- TMPL_IF name="guarantorborrowernumber" -->
192                 <li><span class="label">Guarantor:</span><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="guarantorborrowernumber" -->"><!-- TMPL_VAR NAME="guarantorsurname" --> <!-- TMPL_VAR NAME="guarantorfirstname" --></a></li>
193             <!-- /TMPL_IF -->
194      <!-- /TMPL_IF  -->
195 </ol>
196 </div>
197           <div class="action">  <!-- TMPL_IF name="guarantorborrowernumber" -->
198                         <a href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=1&amp;guarantorid=<!-- TMPL_VAR NAME="guarantorborrowernumber" -->">Edit</a>
199                         <!-- TMPL_ELSE -->
200             <a href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=1">Edit</a>
201                         <!-- /TMPL_IF --></div>
202
203
204 </div>
205
206 <!-- Begin Upload Patron Image Section -->
207
208 <div id="manage-patron-image">
209 <!-- TMPL_IF NAME="patronimages" -->
210         <!-- TMPL_IF NAME="CAN_user_tools" -->
211                 <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
212                 <!-- TMPL_IF NAME="picture" -->
213                     <fieldset class="brief"><legend>Manage Patron Image</legend>
214                         <div class="hint">To update the image for <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="surname" -->, enter the name of the new image file to upload and click 'Upload.' <br />Click the 'Delete' button to remove the current image.</div>
215                 <!-- /TMPL_IF -->
216                 <!-- TMPL_UNLESS NAME="picture" -->
217                     <fieldset class="brief"><legend>Upload Patron Image</legend>
218                         <div class="hint"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> does not currently have an image available. To import an image for <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="surname" -->, enter the name of an image file to upload.</div>
219                 <!-- /TMPL_UNLESS -->
220                     <input type="hidden" id="image" name="filetype" value="image" />
221                     <input type="hidden" id="cardnumber" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
222                     <input type="hidden" id="borrowernumber" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
223                      <ol>
224                         <li>
225                            <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
226                          </li>
227                      </ol>
228                     <fieldset class="action">
229                         <input name="op" type="submit" value="Upload" class="submit" />
230                         <!-- TMPL_IF NAME="picture" --><input name="op" type="submit" value="Delete" class="submit" /><!-- /TMPL_IF -->
231                     </fieldset>
232                 </fieldset>
233                 </form>
234         <!-- /TMPL_IF -->
235 <!-- /TMPL_IF -->
236 </div>
237
238 <!-- End Upload Patron Image Section -->
239
240 </div>
241  <div class="yui-u"> 
242  <div id="patron-library-details">
243  <h3>Library use</h3>
244 <div class="rows"> 
245 <ol>
246     <li><span class="label">Patron number: </span><!-- TMPL_VAR NAME="cardnumber" --></li>
247     <li><span class="label">Category: </span><!-- TMPL_VAR NAME="description" --> (<!-- TMPL_VAR NAME="categorycode" -->)</li>
248     <li><span class="label">Registration date: </span><!-- TMPL_VAR NAME="dateenrolled" --></li>
249     
250     <li><span class="label">Expiration date: </span>
251     <!-- TMPL_IF NAME="reregistration" -->
252             <strong class="reregistrinfo"><!-- TMPL_VAR NAME="dateexpiry" --></span>
253     <!--TMPL_ELSE-->
254             <!-- TMPL_VAR NAME="dateexpiry" -->
255     <!-- /TMPL_IF -->
256     </li>
257     
258     <li><span class="label">Registration branch: </span><!-- TMPL_VAR NAME="branchname" --></li>
259
260     <!-- TMPL_IF NAME="sort1" --><li><span class="label">Sort field 1: </span><!-- TMPL_VAR NAME="lib1" --></li><!-- /TMPL_IF -->
261     <!-- TMPL_IF NAME="sort2" --><li><span class="label">Sort field 2:</span><!-- TMPL_VAR NAME="lib2" --></li><!-- /TMPL_IF -->
262     <li><span class="label">OPAC login: </span><!-- TMPL_VAR name="userid" --></li>
263     <!-- TMPL_IF NAME="password" -->
264   <li><span class="label">OPAC password: </span>*******</li>
265    <!--TMPL_ELSE -->
266   <li><span class="label">OPAC password: </span><span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->">Undefined</a></span></li> 
267    <!--/TMPL_IF --> 
268   <!-- TMPL_IF NAME="borrowernotes" --><li><span class="label">Circulation notes: </span><!-- TMPL_VAR name="borrowernotes" --></li><!-- /TMPL_IF -->
269     <!-- TMPL_IF NAME="opacnote" --><li><span class="label">Message to Patron:</span><!-- TMPL_VAR NAME="opacnote" --></li><!-- /TMPL_IF -->
270         </ol>
271         </div>
272  </div>
273             <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=3">Edit</a></div>
274  
275  <div id="patron-alternate-address" style="padding-top: 1em;">
276     <h3>Alternate Address</h3>
277     <!-- TMPL_UNLESS NAME="I"-->
278       <!-- TMPL_UNLESS NAME="C"-->
279   <p><!-- TMPL_VAR NAME="B_address" --><br />
280       <!-- TMPL_VAR NAME="B_city" --><br />
281       <!-- TMPL_VAR NAME="B_zipcode" --></p>
282   <!-- /TMPL_UNLESS -->
283     <!-- /TMPL_UNLESS -->
284      <!-- TMPL_IF NAME="C" -->
285    <div class="rows"> <ol><li><span class="label">Name: </span><!-- TMPL_VAR NAME="contactname" --></li>
286     <li><span class="label">Firstname: </span><!-- TMPL_VAR NAME="firstname" --></li>    
287     <li><span class="label">Phone: </span><!-- TMPL_VAR NAME="phone" --></li>
288     <li><span class="label">Email: </span><!-- TMPL_VAR NAME="email" --></li>
289     <li><span class="label">Relationship: </span><!-- TMPL_VAR NAME="relationship" --></li></ol></div>
290    <!-- /TMPL_IF -->
291 </div>
292
293  <div id="patron-alternative-contact" style="padding-top: 1em;">
294  <h3>Alternative Contact</h3>   
295    <div class="rows"> <ol><li><span class="label">Surname: </span><!-- TMPL_VAR NAME="altcontactsurname" --></li>
296     <li><span class="label">Firstname: </span><!-- TMPL_VAR NAME="altcontactfirstname" --></li>    
297     <li><span class="label">Address1: </span><!-- TMPL_VAR NAME="altcontactaddress1" --></li>
298     <li><span class="label">Address2: </span><!-- TMPL_VAR NAME="altcontactaddress2" --></li>
299         <li><span class="label">City,State: </span><!-- TMPL_VAR NAME="altcontactaddress3" --></li>
300         <li><span class="label">Zip/Post Code: </span><!-- TMPL_VAR NAME="altcontactzipcode" --></li>
301     <li><span class="label">Phone: </span><!-- TMPL_VAR NAME="altcontactphone" --></li></ol></div>
302 </div>
303 <div class="action"><a href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=2">Edit</a></div>
304  
305 </div>
306 </div>
307
308 <div id="finesholdsissues" class="toptabs">
309         <ul>
310                 <li><a href="#finesandcharges">Fines &amp; Charges</a></li>
311                 <li><a href="#checkedout">Checked Out</a></li>
312                 <li><a href="#onhold">On Hold</a></li>
313         </ul>
314         
315 <div id="finesandcharges">
316     <h2>Fines and Charges</h2>
317     <!-- TMPL_IF EXPR="totaldue ne '0.00'" -->
318         <p>Total due: <!-- TMPL_VAR NAME="totaldue" --></p>
319     <!-- TMPL_ELSE -->
320         <p>No outstanding charges</p>
321     <!-- /TMPL_IF -->
322 </div>
323
324 <div id="checkedout">
325     <h2>Items on loan</h2>
326     <!-- TMPL_IF NAME="issueloop" --><form action="/cgi-bin/koha/reserve/renewscript.pl" method="post">
327         <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
328         <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
329     <table>
330         <tr>
331                         <!-- TMPL_UNLESS NAME="noItemTypeImages" --><th scope="col">&nbsp;</th><!-- /TMPL_UNLESS -->
332             <th scope="col">Title</th>
333             <th scope="col">Barcode</th>
334             <th scope="col">Checked out on</th> 
335             <th scope="col">Date due</th>
336             <th scope="col">Itemtype</th>
337             <th scope="col">Charge</th>
338             <th scope="col">Price</th>
339             <th scope="col">Renew</th>
340             <th scope="col">Return</th>
341         </tr>
342     
343         <!-- TMPL_LOOP name="issueloop" -->
344           <!-- TMPL_IF name="overdue" -->
345         <tr class="problem">
346           <!-- TMPL_ELSE -->
347             <!-- TMPL_IF name="toggle" -->
348         <tr class="highlight">
349             <!-- TMPL_ELSE -->
350         <tr>
351             <!-- /TMPL_IF -->
352           <!-- /TMPL_IF -->
353                   <!-- TMPL_UNLESS NAME="noItemTypeImages" --><td>
354                 <!-- TMPL_IF NAME="itemtype_image" -->
355                 <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" alt="" />
356                                 <!-- TMPL_ELSE -->&nbsp;
357                 <!-- /TMPL_IF --></td><!-- /TMPL_UNLESS -->
358             <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> <!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR name="author" --><!-- /TMPL_IF --> <!-- TMPL_IF name="publishercode" -->; <!-- TMPL_VAR name="publishercode" --> <!-- /TMPL_IF --> <!-- TMPL_IF name="publicationyear" -->, <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->            </td>
359             <td><!-- TMPL_VAR NAME="barcode" --></td>
360             <td><!-- TMPL_VAR NAME="issuedate" --></td>
361             <td><!-- TMPL_VAR NAME="date_due" --></td>
362             <td>
363                 <!-- TMPL_VAR NAME="itemtype_description" -->
364             </td>
365             <td><!-- TMPL_VAR NAME="charge" --></td>
366             <td><!-- TMPL_VAR NAME="replacementprice" --></td>
367       <!-- TMPL_IF NAME="renew_failed" -->
368             <td class="problem">Renewal Failed</td>
369       <!-- TMPL_ELSE -->
370             <td>
371             <!-- TMPL_IF name="norenew" -->
372                               <!-- TMPL_IF NAME="norenew_reason_on_reserve" -->
373               <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">On Hold</a>
374                                     <!-- /TMPL_IF -->
375                                     <!-- TMPL_IF NAME="norenew_reason_too_many" -->
376                                         Too Many Renewals
377                                     <!-- /TMPL_IF -->
378             <!-- TMPL_ELSE -->
379             <!-- TMPL_IF NAME="red" -->
380             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" onClick="javascript:uncheck_sibling(this);" />
381             <!-- TMPL_ELSE -->
382             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" onClick="javascript:uncheck_sibling(this);" />
383             <!-- /TMPL_IF -->
384             <!-- /TMPL_IF -->
385             </td>
386       <!-- /TMPL_IF -->
387       <!-- TMPL_IF NAME="return_failed" -->
388             <td class="problem">Return Failed</td>
389        <!--TMPL_ELSE-->   
390             <td><input type="checkbox" name="barcodes[]"  value="<!-- TMPL_VAR NAME="barcode" -->" onClick="javascript:uncheck_sibling(this);" /></td>
391       <!-- /TMPL_IF -->
392         </tr>
393         <!-- /tmpl_loop -->
394         <tr>
395                         <!-- TMPL_UNLESS NAME="noItemTypeImages" --><td>&nbsp;</td><!-- /TMPL_UNLESS -->
396             <td colspan="5">Total replacement cost:</td>
397             <td><!-- TMPL_VAR NAME="totalprice" --></td>
398             <td colspan="2">      
399             renewal due date :<input type="text" size="8" id="newduedate" name="newduedate" value="<!-- TMPL_VAR Name="newduedate" -->" />
400       <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="newduedate_button" alt="Show Calendar" />
401       <script type="text/javascript">
402        //<![CDATA[
403         Calendar.setup(
404           {
405             inputField : "newduedate",
406             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
407             button : "newduedate_button"
408           }
409         );
410       //]]>
411       </script>
412             </td>
413         </tr>
414         </table>
415         <fieldset class="action">
416         <input type="submit" name="renew_checked" value="Renew or Return checked items" />
417         <input type="submit" name="renew_all" value="Renew all" onClick="checkall('items[]');"/>
418         <input type="submit" name="return_all" value="Return all" onClick="checkall('barcodes[]');"/>
419         <input type="button" name="renew_all" value="Uncheck all Renew" onClick="uncheckall('items[]');"/>
420         <input type="button" name="return_all" value="Uncheck all Returns" onClick="uncheckall('barcodes[]');"/>
421         </fieldset>
422     </form><!-- TMPL_ELSE --><p>Patron has nothing checked out.</p><!-- /TMPL_IF -->
423         </div>
424         
425 <div id="onhold">
426         <h2>Patron current holds</h2>
427 <!-- TMPL_IF NAME="reservloop" -->
428 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
429         <input type="hidden" name="from" value="borrower" />
430         <table>
431                 <tr>
432                         <th>Hold date</th>
433                         <th>Barcode</th>
434                         <th>Title</th>
435                         <th>Author</th>
436                         <th>Localisation</th>
437                         <th>&nbsp;</th>
438                 </tr>
439                 <!-- TMPL_LOOP NAME="reservloop" -->
440                 <tr class="<!-- TMPL_VAR NAME="color" -->">
441                                         <td>
442                                                 <!-- TMPL_VAR NAME="reservedate" -->
443                                         </td>
444                                         <td>
445                                                 <!-- TMPL_IF name="barcodereserv" -->
446                                                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" onclick="openWindow(this, 'Item', 480, 640); return false;"><!-- TMPL_VAR NAME="barcodereserv" --></a>
447                                                 <!-- /TMPL_IF -->
448                                                 <!-- TMPL_IF NAME="waitingposition" -->
449                                          Queue for this item :
450                                                 <b> <!-- TMPL_VAR NAME="waitingposition" --> </b>
451                                                 <!-- /TMPL_IF -->
452                                         </td>
453                                         <td>
454                                                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> (<b> <!-- TMPL_VAR NAME="itemtype" --> </b>) 
455                         <!-- TMPL_IF name="waiting" -->
456                         <br />
457                         <i>Item is waiting</i>
458                         <!-- /TMPL_IF -->
459                         <!-- TMPL_IF name="transfered" -->
460                         <br />
461                         <i>Item in transit from
462                         <!-- TMPL_VAR NAME="frombranch" --> since <!-- TMPL_VAR NAME="datesent" --> </i>
463                         <!-- /TMPL_IF -->
464
465                         <!-- TMPL_IF name="nottransfered" -->
466                         <br />
467                         <i>This item hasn't been transfered yet from <!-- TMPL_VAR NAME="nottransferedby" --></i>
468                         <!-- /TMPL_IF -->
469                                         </td>
470                                         <td><!-- TMPL_VAR NAME="author" --></td>
471                                         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
472                                         <td><select name="rank-request">
473                         <option value="n">No</option>
474                         <option value="del">Yes</option>
475                         </select>
476                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" />
477                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR name="borrowernumber" -->" /></td>
478                         </tr>
479                 <!-- /TMPL_LOOP -->
480         </table>
481                         <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel Marked Requests" /></fieldset>
482         </form>
483         <!-- TMPL_ELSE -->
484         <p>Patron has nothing on hold.</p>
485         <!-- /TMPL_IF -->
486         </div>
487 </div>
488 <!-- /TMPL_IF --> <!-- unknowuser -->
489
490
491 </div>
492 </div>
493 <div class="yui-b">
494 <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
495 </div>
496 </div>
497 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->