Tidying up and correcting patron image embedding.
[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="/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 -->
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>
117  <div class="yui-u"> 
118  <div id="patron-library-details" style="padding : .5em;">
119  <h3>Library use</h3>
120  <ul>
121     <li><strong>Patron number: </strong><!-- TMPL_VAR NAME="borrowernumber" --></li>
122     <li><strong>Category: </strong><!-- TMPL_VAR NAME="description" --> (<!-- TMPL_VAR NAME="categorycode" -->)</li>
123     <li><strong>Registration date: </strong><!-- TMPL_VAR NAME="dateenrolled" --></li>
124     
125     <li><strong>Expiration date: </strong>
126     <!-- TMPL_IF NAME="reregistration" -->
127             <strong class="reregistrinfo"><!-- TMPL_VAR NAME="dateexpiry" --></strong>
128     <!--TMPL_ELSE-->
129             <!-- TMPL_VAR NAME="dateexpiry" -->
130     <!-- /TMPL_IF -->
131     </li>
132     
133     <li><strong>Registration branch: </strong><!-- TMPL_VAR NAME="branchname" --></li>
134
135     <!-- TMPL_IF NAME="sort1" --><li><strong>Sort field 1: </strong><!-- TMPL_VAR NAME="sort1" --></li><!-- /TMPL_IF -->
136     <!-- TMPL_IF NAME="sort2" --><li><strong>Sort field 2:</strong><!-- TMPL_VAR NAME="sort2" --></li><!-- /TMPL_IF -->
137     <li><strong>OPAC login: </strong><!-- TMPL_VAR name="userid" --></li>
138     <!-- TMPL_IF NAME="password" -->
139   <li><strong>OPAC password: </strong>*******</li>
140    <!--TMPL_ELSE -->
141   <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> 
142    <!--/TMPL_IF --> 
143   <!-- TMPL_IF NAME="borrowernotes" --><li><strong>Circulation notes: </strong><!-- TMPL_VAR name="borrowernotes" --></li><!-- /TMPL_IF -->
144     <!-- TMPL_IF NAME="opacnote" --><li><strong>Message to Patron:</strong><!-- TMPL_VAR NAME="opacnote" --></li><!-- /TMPL_IF -->
145         </ul>
146             <a class="member-edit" href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=3">Edit</a>
147  </div>
148  
149  <div id="patron-alternate-address" style="padding : .5em;">
150     <h3>Alternate Address</h3>
151     <!-- TMPL_UNLESS NAME="I"-->
152       <!-- TMPL_UNLESS NAME="C"-->
153   <p><!-- TMPL_VAR NAME="B_address" --><br />
154       <!-- TMPL_VAR NAME="B_city" --><br />
155       <!-- TMPL_VAR NAME="B_zipcode" --></p>
156   <!-- /TMPL_UNLESS -->
157     <!-- /TMPL_UNLESS -->
158  
159      <!-- TMPL_IF NAME="C" -->
160     <p><strong>Name: </strong><!-- TMPL_VAR NAME="contactname" --></p>
161     <p><strong>Firstname: </strong><!-- TMPL_VAR NAME="firstname" --></p>    
162     <p><strong>Phone: </strong><!-- TMPL_VAR NAME="phone" --></p>
163     <p><strong>Email: </strong><!-- TMPL_VAR NAME="email" --></p>
164     <p><strong>Relationship: </strong><!-- TMPL_VAR NAME="relationship" --></p>
165    <!-- /TMPL_IF -->
166        
167     <a class="member-edit" href="memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;step=2">Edit</a>
168 </div>
169  
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"></th>
189             <th scope="col">Title</th>
190             <th scope="col">Barcode</th>
191             <th scope="col">Date due</th>
192             <th scope="col">Itemtype</th>
193             <th scope="col">Charge</th>
194             <th scope="col">Price</th>
195             <th scope="col">Renew</th>
196             <th scope="col">Return</th>
197         </tr>
198     
199         <!-- TMPL_LOOP name="issueloop" -->
200           <!-- TMPL_IF name="overdue" -->
201         <tr class="problem">
202           <!-- TMPL_ELSE -->
203             <!-- TMPL_IF name="toggle" -->
204         <tr class="highlight">
205             <!-- TMPL_ELSE -->
206         <tr>
207             <!-- /TMPL_IF -->
208           <!-- /TMPL_IF -->
209                   <td>
210                 <!-- TMPL_IF NAME="itemtype_image" -->
211                 <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" alt="" />
212                                 <!-- TMPL_ELSE -->&nbsp;
213                 <!-- /TMPL_IF --></td>
214             <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>
215             <td><!-- TMPL_VAR NAME="barcode" --></td>
216             <td><!-- TMPL_VAR NAME="date_due" --></td>
217             <td>
218                 <!-- TMPL_VAR NAME="itemtype_description" -->
219             </td>
220             <td><!-- TMPL_VAR NAME="charge" --></td>
221             <td><!-- TMPL_VAR NAME="replacementprice" --></td>
222             <td>
223             <!-- TMPL_IF name="norenew" -->
224                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">On Hold</a>
225             <!-- TMPL_ELSE -->
226             <!-- TMPL_IF NAME="red" -->
227             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" />
228             <!-- TMPL_ELSE -->
229             <input type="checkbox" name="items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
230             <!-- /TMPL_IF -->
231             <input type="checkbox" name="all_items[]" value="<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" style="display: none;" />
232             <!-- /TMPL_IF -->
233             </td>
234             <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Check In</a></td>
235                         <!-- TMPL_IF NAME="renew_failed" -->
236                         <td>Renewal Failed</td>
237                         <!-- /TMPL_IF -->
238         </tr>
239         <!-- /tmpl_loop -->
240         <tr>
241             <td colspan="6">Total replacement cost:</td>
242             <td><!-- TMPL_VAR NAME="totalprice" --></td>
243             <td colspan="2">&nbsp;</td>
244         </tr>
245         </table>
246         <fieldset class="action">
247         <input type="submit" name="renew_checked" value="Renew checked items" />
248         <input type="submit" name="renew_all" value="Renew all" />
249         </fieldset>
250     </form><!-- TMPL_ELSE --><p>Patron has nothing checked out.</p><!-- /TMPL_IF -->
251         </div>
252         
253 <div id="patrons-items-reserved" class="yui-g">
254         <h2>Patron current holds</h2>
255 <!-- TMPL_IF NAME="reservloop" -->
256 <form action="/cgi-bin/koha/reserve/modrequest.pl" method="post">
257         <input type="hidden" name="from" value="borrower" />
258         <table>
259                 <tr>
260                         <th>Hold date</th>
261                         <th>Barcode</th>
262                         <th>Title</th>
263                         <th>Author</th>
264                         <th>Localisation</th>
265                         <th>&nbsp;</th>
266                 </tr>
267                 <!-- TMPL_LOOP NAME="reservloop" -->
268                 <tr class="<!-- TMPL_VAR NAME="color" -->">
269                                         <td>
270                                                 <!-- TMPL_VAR NAME="reservedate" -->
271                                         </td>
272                                         <td>
273                                                 <!-- TMPL_IF name="barcodereserv" -->
274                                                 <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>
275                                                 <!-- /TMPL_IF -->
276                                                 <!-- TMPL_IF NAME="waitingposition" -->
277                                          Queue for this item :
278                                                 <b> <!-- TMPL_VAR NAME="waitingposition" --> </b>
279                                                 <!-- /TMPL_IF -->
280                                         </td>
281                                         <td>
282                                                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> (<b> <!-- TMPL_VAR NAME="itemtype" --> </b>) 
283
284                                                 <!-- TMPL_IF name="waiting" -->
285                                                 <i>This item is available</i>
286                                                 <!-- /TMPL_IF -->
287                                                 <!-- TMPL_IF name="transfered" -->
288                                                 <i>This item has been transfered from library : 
289                                                 <!-- TMPL_VAR NAME="frombranch" --> the : <!-- TMPL_VAR NAME="datesent" --> </i>
290                                                 <!-- /TMPL_IF -->
291
292                                                 <!-- TMPL_IF name="nottransfered" -->
293                                                 <i>This item hasn't been transfered yet from library : <!-- TMPL_VAR NAME="nottransferedby" --></i>
294                                                 <!-- /TMPL_IF -->
295                                 
296                                         </td>
297                                         <td><!-- TMPL_VAR NAME="author" --></td>
298                                         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
299                                         <td><select name="rank-request">
300                         <option value="n">No</option>
301                         <option value="del">Yes</option>
302                         </select>
303                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" />
304                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR name="borrowernumber" -->" /></td>
305                         </tr>
306                 <!-- /TMPL_LOOP -->
307         </table>
308                         <fieldset class="action"><input type="submit" class="cancel" name="submit" value="Cancel Marked Requests" /></fieldset>
309         </form>
310         <!-- TMPL_ELSE -->
311         <p>Patron has nothing on hold.</p>
312         <!-- /TMPL_IF -->
313         </div>
314
315 <!-- /TMPL_IF --> <!-- unknowuser -->
316
317 </div>
318 </div>
319 <div class="yui-b">
320 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
321 </div>
322 </div>
323 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->