first go at moving templates to a modules/ dir
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / moremember.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Patron Details</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="menus.inc" -->
5 <!-- TMPL_INCLUDE NAME="menu-members.inc" -->
6
7 <!-- TMPL_IF NAME="unknowuser" -->
8     This patron doesn't exist.<a href="javascript:back();">Go Back</a>
9 <!-- TMPL_ELSE -->
10 <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> &rsaquo; <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Details for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</a>
11
12 <form action="" name="form">
13 <input type="hidden" name="reregistration" value="<!-- TMPL_VAR NAME="reregistration"-->"/> 
14 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
15 </form>
16 <div id="action">
17     <div class="edit">
18         <!-- TMPL_IF name="adultborrower" -->
19         <a href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;category_type=C">
20             Add child
21             </a> 
22         <!-- /TMPL_IF -->
23         <!-- TMPL_IF NAME="category_type" -->
24             <!--TMPL_IF NAME="guarantor"-->
25                 <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;guarantorid=<!-- TMPL_VAR NAME="guarantorborrowernumber" -->&amp;category_type=<!-- TMPL_VAR NAME="category_type"-->">
26             <!--TMPL_ELSE-->
27             <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;category_type=<!-- TMPL_VAR NAME="category_type"-->">
28             <!--/TMPL_IF-->
29         Edit
30             </a>
31         <!-- TMPL_ELSE --> <!-- try with categorycode if no category_type -->
32             <!-- TMPL_IF NAME="categorycode" -->
33             <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;categorycode=<!-- TMPL_VAR NAME="categorycode"-->">
34                 Edit
35             </a>
36             <!-- TMPL_ELSE --> <!-- if no categorycode, set category_type to A by default -->
37                 <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;category_type=A">
38                     Edit
39                 </a>
40             <!-- /TMPL_IF -->
41         <!-- /TMPL_IF -->
42         
43         <a href="/cgi-bin/koha/members/member-password.pl?member=<!-- TMPL_VAR NAME=borrowernumber -->">
44             Set password
45         </a>
46         <a href="/cgi-bin/koha/members/member-flags.pl?member=<!-- TMPL_VAR NAME=borrowernumber -->">
47             Privileges
48         </a> 
49         <a href="javascript:confirm_deletion();">
50             Delete
51         </a> 
52     </div>
53     <div class="view">
54         <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">
55             Account
56         </a> 
57         <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">
58             Pay fines
59         </a> 
60         <a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">
61             Reading record
62         </a>
63         <a href="javascript:confirm_reregistration();" onclick="javascript:document.form.value='y'" class="gest_borro_op">
64         Renew
65         </a>
66     </div>
67     <div class="others">
68         <!-- TMPL_IF NAME="CAN_user_parameters"-->
69         <a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&amp;module=MEMBERS&amp;action=MODIFY&amp;object=<!-- TMPL_VAR NAME="borrowernumber"-->">Modification log</a>
70         <!-- /TMPL_IF -->
71     </div>
72 </div>
73 <!-- TMPL_IF NAME="flagged" -->
74     <ul>
75         <!-- TMPL_IF NAME="debarred" -->
76             <li>Patron is restricted
77             <form class="inline compact" action="/cgi-bin/koha/members/setdebar.pl" method="post">
78                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
79                 <input type="hidden" name="status" value="0" />
80                 <input type="submit" value="Lift Debarment" />
81             </form>
82             </li>
83         <!-- /TMPL_IF -->
84         <!-- TMPL_IF NAME="gonenoaddress" --><li>Patron's address is in doubt.</li><!-- /TMPL_IF -->
85         <!-- TMPL_IF NAME="lost" --><li>Patron's card has been reported lost.</li><!-- /TMPL_IF -->
86     </ul>
87
88 <!-- /TMPL_IF -->
89
90 <fieldset>
91 <legend>Patron information</legend>
92     <!-- TMPL_UNLESS NAME="I" -->
93     <p><label>Title:</label><!-- TMPL_VAR NAME="title" -->&nbsp;</p> 
94     <p><label>First name:</label><!-- TMPL_VAR NAME="firstname" --></p>
95     <!-- /TMPL_UNLESS -->
96     <p><!-- TMPL_IF NAME="I" --><label>Organisation name: </label><!-- TMPL_ELSE --><label>Last name: </label><!-- /TMPL_IF --><!-- TMPL_VAR NAME="surname" --></p>
97     <!-- TMPL_UNLESS NAME="I" --><p><label>Other names: </label><!-- TMPL_VAR NAME="othernames" --></p>
98     <p><label>Initials: </label><!-- TMPL_VAR NAME="initials" --></p><!-- /TMPL_UNLESS -->
99     <p>
100         <label>Address: </label>
101         <!-- TMPL_VAR NAME="streetnumber" -->
102         <!--TMPL_IF NAME="roaddetails"-->
103          <!-- TMPL_VAR NAME="roaddetails" -->,
104         <!-- /TMPL_IF -->
105         <!-- TMPL_VAR NAME="address" -->
106     </p>
107     <p>
108         <label>Address2: </label>
109         <!-- TMPL_VAR NAME="address2"-->
110     </p>
111     <p><label>City: </label><!-- TMPL_VAR NAME="city" --></p>
112     <p><label>Zip code: </label><!-- TMPL_VAR NAME="zipcode" --></p>
113     <!-- TMPL_UNLESS NAME="I"-->
114         <!-- TMPL_UNLESS NAME="C"-->
115         <p><label>Alternate address: </label><!-- TMPL_VAR NAME="B_address" --></p>
116         <p><label>Alternate city: </label><!-- TMPL_VAR NAME="B_city" --></p>
117         <p><label>Alternate zipcode: </label><!-- TMPL_VAR NAME="B_zipcode" --></p>
118         <!-- /TMPL_UNLESS -->
119     <!-- /TMPL_UNLESS -->
120     <!-- TMPL_IF NAME="I" -->
121         <p><label>Organisation phone: </label><!-- TMPL_VAR NAME="phonepro" --></p>
122         <p><label>Organisation email: </label><!-- TMPL_VAR NAME="emailpro" --></p>
123     <!-- /TMPL_IF -->
124     <!-- TMPL_UNLESS NAME="I"-->
125     <p><label>Home phone: </label><!-- TMPL_VAR NAME="phone" --></p>
126     <p><label>Cell phone: </label><!-- TMPL_VAR NAME="mobile" --></p>
127     <p><label>Professional phone: </label><!-- TMPL_VAR NAME="phonepro" --></p>
128     <!-- /TMPL_UNLESS -->
129     <!-- TMPL_IF NAME="P"-->
130     <p><label>Professional phone: </label><!-- TMPL_VAR NAME="phone" --></p>
131     <p><label>Professionnal email: </label><!-- TMPL_VAR NAME="mobile" --></p>
132     <!-- /TMPL_IF -->   
133     <p><label>Fax: </label><!-- TMPL_VAR NAME="fax" --></p>
134     <!-- TMPL_UNLESS NAME="I"-->
135     <p><label>E-mail address:</label><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>
136     <p><label>Date of birth:</label><!-- TMPL_VAR NAME="dateofbirth" --></p>
137     <p><label>Sex:</label><!-- TMPL_VAR NAME="sex" --></p>
138     <!-- /TMPL_UNLESS -->
139         
140 </fieldset>
141 <fieldset>
142     <legend>Library use</legend>
143     <p><label>Patron number:</label><!-- TMPL_VAR NAME="borrowernumber" --></p>
144     <p><label>Category:</label><!-- TMPL_VAR NAME="description" --></p>
145     <p><label>Registration date:</label><!-- TMPL_VAR NAME="dateenrolled" --></p>
146     <p><label>Relation:</label><!-- TMPL_VAR NAME="relationship" --></p>
147     
148     <p><label>Expiration date: </label>
149     <!-- TMPL_IF NAME="reregistration" -->
150             <label class="reregistrinfo"><!-- TMPL_VAR NAME="dateexpiry" --></label>
151     <!--TMPL_ELSE-->
152             <!-- TMPL_VAR NAME="dateexpiry" -->
153     <!-- /TMPL_IF -->
154     </p>
155     
156     <p><label>Registration branch:</label><!-- TMPL_VAR NAME="branchname" --> &nbsp;</p>
157
158     <!-- TMPL_IF NAME="printethnicityline" -->
159     <p><label>Ethnicity:</label><!-- TMPL_VAR NAME="ethnicity" --> &nbsp;</p>
160     <p><label>Ethnicity notes: </label><!-- TMPL_VAR NAME="ethnotes" --> &nbsp;</p>
161     <!-- /TMPL_IF -->
162
163     <p><label>Sort field 1: </label><!-- TMPL_VAR NAME="sort1" --> &nbsp;</p>
164     <p><label>Sort field 2:</label><!-- TMPL_VAR NAME="sort2" --> &nbsp;</p>
165     <p><label>OPAC login: </label><!-- TMPL_VAR name="userid" --> &nbsp;</p>
166     <!-- TMPL_IF NAME="password" -->
167         <p><label>OPAC password: </label>*******</p>
168    <!--TMPL_ELSE -->
169         <p><label>OPAC password: </label><span class="problem">Undefined &nbsp;</span></p> 
170    <!--/TMPL_IF --> 
171         <p><label>Circulation notes:</label><!-- TMPL_VAR name="borrowernotes" --> &nbsp;</p>
172     <p><label>Message to Patron:</label><!-- TMPL_VAR NAME="opacnote" --> &nbsp;</p>
173 </fieldset>
174 <!-- TMPL_UNLESS NAME="P" -->
175 <!-- TMPL_UNLESS NAME="I" -->
176 <fieldset>
177     
178     <legend>Alternate contact</legend>
179      <!-- TMPL_IF NAME="C" -->
180     <p><label>Name: </label><!-- TMPL_VAR NAME="contactname" --> &nbsp;</p>
181     <p><label>Firstname: </label><!-- TMPL_VAR NAME="firstname" --> &nbsp;</p>          
182     <p><label>Phone: </label><!-- TMPL_VAR NAME="phone" --> &nbsp;</p>
183     <p><label>Email: </label><!-- TMPL_VAR NAME="email" --> &nbsp;</p>
184     <p><label>Relationship: </label><!-- TMPL_VAR NAME="relationship" --> &nbsp;</p>
185    <!-- /TMPL_IF -->
186        
187          <!-- TMPL_IF name="isguarantee" -->
188             <!-- TMPL_IF NAME="guaranteeloop" -->
189                 <p><label>Guarantees:</label><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>
190             <!-- /TMPL_IF -->
191         <!-- TMPL_ELSE -->
192             <!-- TMPL_IF name="guarantorborrowernumber" -->
193                 <p><label>Guarantor:</label><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="guarantorborrowernumber" -->"><!-- TMPL_VAR NAME="guarantorsurname" --> <!-- TMPL_VAR NAME="guarantorfirstname" --></a></p>
194             <!-- /TMPL_IF -->
195        <!-- /TMPL_IF  -->
196     
197 </fieldset>
198
199 <!-- /TMPL_UNLESS-->
200 <!-- /TMPL_UNLESS-->
201 <fieldset>
202     <legend>Fines &amp; Charges</legend>
203     <!-- TMPL_IF name="totaldue" -->
204         <p>Total due: <!-- TMPL_VAR NAME="totaldue" --></p>
205     <!-- TMPL_ELSE -->
206         <p>No outstanding charges</p>
207     <!-- /TMPL_IF -->
208 </fieldset>
209     <div>
210     <h2>Items on loan</h2>
211     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post">
212         <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
213         <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
214     <table>
215         <tr>
216             <th scope="col">Title</th>
217             <th scope="col">Barcode</th>
218             <th scope="col">Date due</th>
219             <th scope="col">Itemtype</th>
220             <th scope="col">Charge</th>
221             <th scope="col">Price</th>
222             <th scope="col">Renew</th>
223             <th scope="col">Return</th>
224         </tr>
225     
226         <!-- TMPL_LOOP name="issueloop" -->
227           <!-- TMPL_IF name="overdue" -->
228         <tr class="problem">
229           <!-- TMPL_ELSE -->
230             <!-- TMPL_IF name="toggle" -->
231         <tr class="highlight">
232             <!-- TMPL_ELSE -->
233         <tr>
234             <!-- /TMPL_IF -->
235           <!-- /TMPL_IF -->
236             <td><!-- TMPL_VAR NAME="date_due" --></td>
237             <td>
238                 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
239                     <!-- TMPL_VAR NAME="title" -->
240                 </a></p>
241                 <p><!-- TMPL_VAR name="author" -->
242                     <!-- TMPL_IF name="publishercode" --> - <!-- TMPL_VAR name="publishercode" --> <!-- /TMPL_IF -->
243                     <!-- TMPL_IF name="publicationyear" -->- <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
244                 </p>
245             </td>
246             <td><!-- TMPL_VAR NAME="barcode" --></td>
247             <td>
248                 <!-- TMPL_VAR NAME="itemtype_description" -->
249                 <!-- TMPL_IF NAME="itemtype_image" -->
250                 <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
251                 <!-- /TMPL_IF -->
252             </td>
253             <td><!-- TMPL_VAR NAME="charge" --></td>
254             <td><!-- TMPL_VAR NAME="replacementprice" --></td>
255             <td>
256             <!-- TMPL_IF name="norenew" -->
257                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Reserved</a>
258             <!-- TMPL_ELSE -->
259             <!-- TMPL_IF NAME="red" -->
260             <input type="checkbox"
261                     name="items[]"
262                     value="<!-- TMPL_VAR NAME="itemnumber" -->"
263                     checked="checked"
264                         />
265             <!-- TMPL_ELSE -->
266             <input type="checkbox"
267                     name="items[]"
268                     value="<!-- TMPL_VAR NAME="itemnumber" -->"
269                         />
270             <!-- /TMPL_IF -->
271             <input type="checkbox"
272                     name="all_items[]"
273                     value="<!-- TMPL_VAR NAME="itemnumber" -->"
274                 checked="checked"
275                     style="display: none;"
276             />
277             <!-- /TMPL_IF -->
278             </td>
279             <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Return</a></td>
280         </tr>
281         <!-- /tmpl_loop -->
282         <tr>
283             <td colspan="5">Total replacement cost:</td>
284             <td><!-- TMPL_VAR NAME="totalprice" --></td>
285             <td colspan="2">&nbsp;</td>
286         </tr>
287         </table>
288         <div>
289         <input type="submit" name="renew_checked" value="Renew checked items" />
290         <input type="submit" name="renew_all" value="Renew all" />
291         </div>
292     </form>
293     </div>
294 <!-- TMPL_IF NAME="reservloop" -->
295 <div id="circ_circulation_issue">
296         <h2>Patron current reserves</h2>
297         <table>
298                 <tr>
299                         <th>Reserve date</th>
300                         <th>Barcode</th>
301                         <th>Title</th>
302                         <th>Author</th>
303                         <th>Localisation</th>
304                         <th>Details</th>
305                 </tr>
306                 <!-- TMPL_LOOP NAME="reservloop" -->
307                 <tr class="<!-- TMPL_VAR NAME="color" -->">
308                                         <td>
309                                                 <!-- TMPL_VAR NAME="reservedate" -->
310                                         </td>
311                                         <td>
312                                                 <!-- TMPL_IF name="barcodereserv" -->
313                                                 <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>
314                                                 <!-- /TMPL_IF -->
315                                                 <!-- TMPL_IF NAME="waitingposition" -->
316                                                 Waiting position for this document :
317                                                 <b> <!-- TMPL_VAR NAME="waitingposition" --> </b>
318                                                 <!-- /TMPL_IF -->
319                                         </td>
320                                         <td>
321                                                 <!-- TMPL_VAR NAME="title" --> (<b> <!-- TMPL_VAR NAME="itemtype" --> </b>) 
322
323                                                 <!-- TMPL_IF name="waiting" -->
324                                                 <i>This document is available</i>
325                                                 <!-- /TMPL_IF -->
326                                                 <!-- TMPL_IF name="transfered" -->
327                                                 <i>This document has been transfered from library : 
328                                                 <!-- TMPL_VAR NAME="frombranch" --> the : <!-- TMPL_VAR NAME="datesent" --> </i>
329                                                 <!-- /TMPL_IF -->
330
331                                                 <!-- TMPL_IF name="nottransfered" -->
332                                                 <i>This document hasn't been transfered yet from library : <!-- TMPL_VAR NAME="nottransferedby" --></i>
333                                                 <!-- /TMPL_IF -->
334                                 
335                                         </td>
336                                         <td><!-- TMPL_VAR NAME="author" --></td>
337                                         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
338                                         <td>
339                                             <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">view reserves </a>
340                                         </td>
341                         </tr>
342                 <!-- /TMPL_LOOP -->
343         </table>
344         <!-- /TMPL_IF -->
345 <script type="text/javascript">
346 function confirm_deletion() {
347     var is_confirmed = window.confirm('Click OK to confirm deletion');
348     var borrowernumbervalue=document.form.borrowernumber.value; 
349    
350     if (is_confirmed) {
351             window.location='/cgi-bin/koha/members/deletemem.pl?member='+borrowernumbervalue+'';
352     }
353 }
354
355 function confirm_reregistration() {
356     var is_confirmed = window.confirm('Click OK to confirm renewal');
357     var borrowernumbervalue1=document.form.borrowernumber.value;
358     if (is_confirmed) {
359     window.location='/cgi-bin/koha/members/moremember.pl?reregistration=y&amp;borrowernumber='+borrowernumbervalue1+'';
360     }
361 }
362 </script>
363 <!-- /TMPL_IF --> <!-- unknowuser -->
364 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->