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