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