Fix for bug 1632
[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 <script type="text/JavaScript" language="JavaScript">
5 // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html
6 function verify_patron_images() {
7     for (var i = 0; i < document.images.length; i++) {
8         img = document.images[i];
9         if ((img.src.indexOf('patronimages') >= 0)) {
10             w = img.width;
11             h = img.height;
12      if ((w == 0) && (h == 0) || ((img.complete != null) && (!img.complete))) {
13                img.src = '/intranet-tmpl/prog/img/patron-blank.png';
14             }
15         }
16     }
17 }
18 </script>
19 </head>
20 <body onload="verify_patron_images();">
21 <!-- TMPL_INCLUDE NAME="header.inc" -->
22 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
23
24 <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>
25
26 <div id="doc3" class="yui-t1">
27    
28    <div id="bd">
29         <div id="yui-main">
30         <div class="yui-b">
31 <!-- TMPL_INCLUDE NAME="members-toolbar.inc" -->
32 <!-- TMPL_IF NAME="error" -->
33 <div class="error">
34 <!-- TMPL_IF NAME="AUTH_UPDATE_FAILED" -->
35 Userid / Password update failed:
36 Insufficient user permissions.
37 Other fields updated.
38 <!-- /TMPL_IF -->
39 </div>
40 <!-- /TMPL_IF -->
41 <div class="yui-g">
42 <!-- TMPL_IF NAME="unknowuser" -->
43     This patron does not exist.
44 <!-- TMPL_ELSE -->
45 <!-- TMPL_IF NAME="reregistration" --><div class="message">Patron's account has been renewed until <!-- TMPL_VAR NAME="dateexpiry" --></div><!-- /TMPL_IF -->
46 <form action="" name="form">
47 <input type="hidden" name="reregistration" value="<!-- TMPL_VAR NAME="reregistration"-->" /> 
48 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
49 </form>
50
51 <!-- TMPL_IF NAME="flagged" -->
52     <ul>
53         <!-- TMPL_IF NAME="debarred" -->
54             <li>Patron is restricted
55             <form class="inline compact" action="/cgi-bin/koha/members/setdebar.pl" method="post">
56                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
57                 <input type="hidden" name="status" value="0" />
58                 <input type="submit" value="Lift Debarment" />
59             </form>
60             </li>
61         <!-- /TMPL_IF -->
62         <!-- TMPL_IF NAME="gonenoaddress" --><li>Patron's address is in doubt.</li><!-- /TMPL_IF -->
63         <!-- TMPL_IF NAME="lost" --><li>Patron's card has been reported lost.</li><!-- /TMPL_IF -->
64     </ul>
65
66 <!-- /TMPL_IF -->
67
68
69  <div class="yui-u first">
70 <div id="patron-information" style="padding : .5em;">
71 <!-- TMPL_IF NAME="patronimages" --><img src="/intranet-tmpl/patronimages/<!-- TMPL_VAR NAME="cardnumber" -->.jpg" alt="" border="0"  style="float: right; margin: 1em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF -->
72 <h3>
73     <!-- TMPL_UNLESS NAME="I" -->
74    <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- /TMPL_UNLESS --> <!-- TMPL_VAR NAME="surname" --></h3> <!-- TMPL_UNLESS NAME="I" --><!-- TMPL_IF NAME="othernames" --> <!-- TMPL_VAR NAME="othernames" --> <!-- /TMPL_IF -->  <p><!-- TMPL_VAR NAME="streetnumber" -->
75         <!--TMPL_IF NAME="roaddetails"-->
76          <!-- TMPL_VAR NAME="roaddetails" -->,
77         <!-- /TMPL_IF -->
78         <!-- TMPL_VAR NAME="address" --><br />
79         <!-- TMPL_IF NAME="address2" --><!-- TMPL_VAR NAME="address2"--><br /><!-- /TMPL_IF -->
80         <!-- TMPL_IF NAME="city" --><!-- TMPL_VAR NAME="city" --><!-- /TMPL_IF -->
81         <!-- TMPL_IF NAME="zipcode" --><!-- TMPL_VAR NAME="zipcode" --><!-- /TMPL_IF --></p>
82                     
83         <p><!-- TMPL_UNLESS NAME="I"-->
84                         <!-- TMPL_IF NAME="phone" --><strong>Home: </strong><!-- TMPL_VAR NAME="phone" --><br /><!-- /TMPL_IF -->
85                     <!-- TMPL_IF NAME="mobile" --><strong>Mobile:  </strong><!-- TMPL_VAR NAME="mobile" --><br /><!-- /TMPL_IF -->
86                     <!-- TMPL_IF NAME="phonepro" --><strong>Work: </strong><!-- TMPL_VAR NAME="phonepro" --><br /><!-- /TMPL_IF -->
87                 <!-- /TMPL_UNLESS -->
88                    <!-- TMPL_IF NAME="I" -->
89   <!-- TMPL_IF NAME="phonepro" --><strong>Organisation phone: </strong><!-- TMPL_VAR NAME="phonepro" --><br /><!-- /TMPL_IF -->
90   <!-- TMPL_IF NAME="emailpro" --><strong>Organisation email: </strong><!-- TMPL_VAR NAME="emailpro" --><br /><!-- /TMPL_IF -->
91     <!-- /TMPL_IF -->
92
93     <!-- TMPL_IF NAME="P"-->
94    <!-- TMPL_IF NAME="phone" --> <strong>Professional phone: </strong><!-- TMPL_VAR NAME="phone" --><br /><!-- /TMPL_IF -->
95     <!-- TMPL_IF NAME="mobile" --><strong>Professionnal mobile: </strong><!-- TMPL_VAR NAME="mobile" --><br /><!-- /TMPL_IF -->
96     <!-- /TMPL_IF -->           
97         <!-- TMPL_IF NAME="fax" --><strong>Fax: </strong><!-- TMPL_VAR NAME="fax" --><br><!-- /TMPL_IF -->
98 </p>    <!-- TMPL_UNLESS NAME="I"-->
99     <p><a href="mailto:<!-- TMPL_VAR NAME="email" -->"><!-- TMPL_VAR NAME="email" --></a><!--TMPL_IF Name="emailpro"-->, <a href="mailto:<!-- TMPL_VAR NAME="emailpro" -->"><!-- TMPL_VAR NAME="emailpro" --></a><!--/TMPL_IF--></p>
100     <!-- /TMPL_UNLESS -->
101     <p><strong>Initials: </strong><!-- TMPL_VAR NAME="initials" --></p>
102     <p><strong>Date of birth:</strong><!-- TMPL_VAR NAME="dateofbirth" --></p>
103     <p><strong>Sex:</strong><!-- TMPL_VAR NAME="sex" --></p><!-- /TMPL_UNLESS -->
104     <!-- TMPL_IF NAME="printethnicityline" -->
105     <p><strong>Ethnicity:</strong><!-- TMPL_VAR NAME="ethnicity" --></p>
106     <p><strong>Ethnicity notes: </strong><!-- TMPL_VAR NAME="ethnotes" --></p>
107     <!-- /TMPL_IF -->
108    <!-- TMPL_IF name="isguarantee" -->
109             <!-- TMPL_IF NAME="guaranteeloop" -->
110                 <p><strong>Guarantees:</strong><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></p>
111             <!-- /TMPL_IF -->
112         <!-- TMPL_ELSE -->
113             <!-- TMPL_IF name="guarantorborrowernumber" -->
114                 <p><strong>Guarantor:</strong><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="guarantorborrowernumber" -->"><!-- TMPL_VAR NAME="guarantorsurname" --> <!-- TMPL_VAR NAME="guarantorfirstname" --></a></p>
115             <!-- /TMPL_IF -->
116      <!-- /TMPL_IF  -->
117   
118     
119             <!-- TMPL_IF name="guarantorborrowernumber" -->
120                         <a class="member-edit" href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=1&amp;guarantorid=<!-- TMPL_VAR NAME="guarantorborrowernumber" -->">Edit</a>
121                         <!-- TMPL_ELSE -->
122             <a class="member-edit" href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=1">Edit</a>
123                         <!-- /TMPL_IF -->
124 </div>
125
126 </div>
127  <div class="yui-u"> 
128  <div id="patron-library-details" style="padding : .5em;">
129  <h3>Library use</h3>
130  <ul>
131     <li><strong>Patron number: </strong><!-- TMPL_VAR NAME="borrowernumber" --></li>
132     <li><strong>Category: </strong><!-- TMPL_VAR NAME="description" --> (<!-- TMPL_VAR NAME="categorycode" -->)</li>
133     <li><strong>Registration date: </strong><!-- TMPL_VAR NAME="dateenrolled" --></li>
134     
135     <li><strong>Expiration date: </strong>
136     <!-- TMPL_IF NAME="reregistration" -->
137             <strong class="reregistrinfo"><!-- TMPL_VAR NAME="dateexpiry" --></strong>
138     <!--TMPL_ELSE-->
139             <!-- TMPL_VAR NAME="dateexpiry" -->
140     <!-- /TMPL_IF -->
141     </li>
142     
143     <li><strong>Registration branch: </strong><!-- TMPL_VAR NAME="branchname" --></li>
144
145     <!-- TMPL_IF NAME="sort1" --><li><strong>Sort field 1: </strong><!-- TMPL_VAR NAME="sort1" --></li><!-- /TMPL_IF -->
146     <!-- TMPL_IF NAME="sort2" --><li><strong>Sort field 2:</strong><!-- TMPL_VAR NAME="sort2" --></li><!-- /TMPL_IF -->
147     <li><strong>OPAC login: </strong><!-- TMPL_VAR name="userid" --></li>
148     <!-- TMPL_IF NAME="password" -->
149   <li><strong>OPAC password: </strong>*******</li>
150    <!--TMPL_ELSE -->
151   <li><strong>OPAC password: </strong><span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->">Undefined</a></span></li> 
152    <!--/TMPL_IF --> 
153   <!-- TMPL_IF NAME="borrowernotes" --><li><strong>Circulation notes: </strong><!-- TMPL_VAR name="borrowernotes" --></li><!-- /TMPL_IF -->
154     <!-- TMPL_IF NAME="opacnote" --><li><strong>Message to Patron:</strong><!-- TMPL_VAR NAME="opacnote" --></li><!-- /TMPL_IF -->
155         </ul>
156             <a class="member-edit" href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=3">Edit</a>
157  </div>
158  
159  <div id="patron-alternate-address" style="padding : .5em;">
160     <h3>Alternate Address</h3>
161     <!-- TMPL_UNLESS NAME="I"-->
162       <!-- TMPL_UNLESS NAME="C"-->
163   <p><!-- TMPL_VAR NAME="B_address" --><br />
164       <!-- TMPL_VAR NAME="B_city" --><br />
165       <!-- TMPL_VAR NAME="B_zipcode" --></p>
166   <!-- /TMPL_UNLESS -->
167     <!-- /TMPL_UNLESS -->
168  
169      <!-- TMPL_IF NAME="C" -->
170     <p><strong>Name: </strong><!-- TMPL_VAR NAME="contactname" --></p>
171     <p><strong>Firstname: </strong><!-- TMPL_VAR NAME="firstname" --></p>    
172     <p><strong>Phone: </strong><!-- TMPL_VAR NAME="phone" --></p>
173     <p><strong>Email: </strong><!-- TMPL_VAR NAME="email" --></p>
174     <p><strong>Relationship: </strong><!-- TMPL_VAR NAME="relationship" --></p>
175    <!-- /TMPL_IF -->
176        
177     <a class="member-edit" href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=2">Edit</a>
178 </div>
179  
180 </div>
181 </div>
182 <div id="patrons-fines-and-charges" class="yui-g">
183     <h2>Fines and Charges</h2>
184     <!-- TMPL_IF EXPR="totaldue eq 0.00" -->
185         <p>Total due: <!-- TMPL_VAR NAME="totaldue" --></p>
186     <!-- TMPL_ELSE -->
187         <p>No outstanding charges</p>
188     <!-- /TMPL_IF -->
189 </div>
190
191 <div id="patrons-items-on-loan" class="yui-g">
192     <h2>Items on loan</h2>
193     <!-- TMPL_IF NAME="issueloop" --><form action="/cgi-bin/koha/reserve/renewscript.pl" method="post">
194         <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
195         <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
196     <table>
197         <tr>
198                         <th scope="col"></th>
199             <th scope="col">Title</th>
200             <th scope="col">Barcode</th>
201             <th scope="col">Date due</th>
202             <th scope="col">Itemtype</th>
203             <th scope="col">Charge</th>
204             <th scope="col">Price</th>
205             <th scope="col">Renew</th>
206             <th scope="col">Return</th>
207         </tr>
208     
209         <!-- TMPL_LOOP name="issueloop" -->
210           <!-- TMPL_IF name="overdue" -->
211         <tr class="problem">
212           <!-- TMPL_ELSE -->
213             <!-- TMPL_IF name="toggle" -->
214         <tr class="highlight">
215             <!-- TMPL_ELSE -->
216         <tr>
217             <!-- /TMPL_IF -->
218           <!-- /TMPL_IF -->
219                   <td>
220                 <!-- TMPL_IF NAME="itemtype_image" -->
221                 <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" alt="" />
222                                 <!-- TMPL_ELSE -->&nbsp;
223                 <!-- /TMPL_IF --></td>
224             <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>
225             <td><!-- TMPL_VAR NAME="barcode" --></td>
226             <td><!-- TMPL_VAR NAME="date_due" --></td>
227             <td>
228                 <!-- TMPL_VAR NAME="itemtype_description" -->
229             </td>
230             <td><!-- TMPL_VAR NAME="charge" --></td>
231             <td><!-- TMPL_VAR NAME="replacementprice" --></td>
232             <td>
233             <!-- TMPL_IF name="norenew" -->
234                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">On Hold</a>
235             <!-- TMPL_ELSE -->
236             <!-- TMPL_IF NAME="red" -->
237             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
238             <!-- TMPL_ELSE -->
239             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
240             <!-- /TMPL_IF -->
241             <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
242             <!-- /TMPL_IF -->
243             </td>
244             <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
245                         <!-- TMPL_IF NAME="renew_failed" -->
246                         <td>Renewal Failed</td>
247                         <!-- /TMPL_IF -->
248         </tr>
249         <!-- /tmpl_loop -->
250         <tr>
251             <td colspan="6">Total replacement cost:</td>
252             <td><!-- TMPL_VAR NAME="totalprice" --></td>
253             <td colspan="2">&nbsp;</td>
254         </tr>
255         </table>
256         <fieldset class="action">
257         <input type="submit" name="renew_checked" value="Renew checked items" />
258         <input type="submit" name="renew_all" value="Renew all" />
259         </fieldset>
260     </form><!-- TMPL_ELSE --><p>Patron has nothing checked out.</p><!-- /TMPL_IF -->
261         </div>
262         
263 <div id="patrons-items-reserved" class="yui-g">
264         <h2>Patron current holds</h2>
265 <!-- TMPL_IF NAME="reservloop" -->
266 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
267         <input type="hidden" name="from" value="borrower" />
268         <table>
269                 <tr>
270                         <th>Hold date</th>
271                         <th>Barcode</th>
272                         <th>Title</th>
273                         <th>Author</th>
274                         <th>Localisation</th>
275                         <th>&nbsp;</th>
276                 </tr>
277                 <!-- TMPL_LOOP NAME="reservloop" -->
278                 <tr class="<!-- TMPL_VAR NAME="color" -->">
279                                         <td>
280                                                 <!-- TMPL_VAR NAME="reservedate" -->
281                                         </td>
282                                         <td>
283                                                 <!-- TMPL_IF name="barcodereserv" -->
284                                                 <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>
285                                                 <!-- /TMPL_IF -->
286                                                 <!-- TMPL_IF NAME="waitingposition" -->
287                                          Queue for this item :
288                                                 <b> <!-- TMPL_VAR NAME="waitingposition" --> </b>
289                                                 <!-- /TMPL_IF -->
290                                         </td>
291                                         <td>
292                                                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> (<b> <!-- TMPL_VAR NAME="itemtype" --> </b>) 
293
294                                                 <!-- TMPL_IF name="waiting" -->
295                                                 <i>This item is available</i>
296                                                 <!-- /TMPL_IF -->
297                                                 <!-- TMPL_IF name="transfered" -->
298                                                 <i>This item has been transfered from library : 
299                                                 <!-- TMPL_VAR NAME="frombranch" --> the : <!-- TMPL_VAR NAME="datesent" --> </i>
300                                                 <!-- /TMPL_IF -->
301
302                                                 <!-- TMPL_IF name="nottransfered" -->
303                                                 <i>This item hasn't been transfered yet from library : <!-- TMPL_VAR NAME="nottransferedby" --></i>
304                                                 <!-- /TMPL_IF -->
305                                 
306                                         </td>
307                                         <td><!-- TMPL_VAR NAME="author" --></td>
308                                         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
309                                         <td><select name="rank-request">
310                         <option value="n">No</option>
311                         <option value="del">Yes</option>
312                         </select>
313                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" />
314                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR name="borrowernumber" -->" /></td>
315                         </tr>
316                 <!-- /TMPL_LOOP -->
317         </table>
318                         <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel Marked Requests" /></fieldset>
319         </form>
320         <!-- TMPL_ELSE -->
321         <p>Patron has nothing on hold.</p>
322         <!-- /TMPL_IF -->
323         </div>
324
325 <!-- /TMPL_IF --> <!-- unknowuser -->
326
327 </div>
328 </div>
329 <div class="yui-b">
330 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
331 </div>
332 </div>
333 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->