reinstating members.js
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / members / moremember.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Borrower's 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     <p>This borrower doesn't exist anymore.<a href="javascript:back();">Go Back</a></p>
9 <!-- TMPL_ELSE -->
10
11 <h1><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</h1>
12         <form 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&guarantorid=<!-- TMPL_VAR NAME="borrowernumber" -->&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&borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&guarantorid=<!-- TMPL_VAR NAME="guarantorborrowernumber" -->&category_type=<!-- TMPL_VAR NAME="category_type"-->">
26             <!--TMPL_ELSE-->
27             <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&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&borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&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&borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&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&module=MEMBERS&action=MODIFY&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>Borrower is debarred 
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>Borrower's address is in doubt.</li><!-- /TMPL_IF -->
85         <!-- TMPL_IF NAME="lost" --><li>Borrower's card has been reported lost.</li><!-- /TMPL_IF -->
86     </ul>
87
88 <!-- /TMPL_IF -->
89
90 <fieldset>
91 <legend>Borrower 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><!-- TMPL_VAR NAME="email" --></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>Borrower number:</label><!-- TMPL_VAR NAME="borrowernumber" --></p>
144     <p><label>Category:</label><!-- TMPL_VAR NAME="categorycode" --></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>Borrower message:</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     <table>
214         <tr>
215             <th scope="col">Title</th>
216             <th scope="col">Due</th>
217             <th scope="col">Itemtype</th>
218             <th scope="col">Charge</th>
219             <th scope="col">Price</th>
220             <th scope="col">Renew</th>
221             <th scope="col">Return</th>
222         </tr>
223     
224         <!-- tmpl_loop name="issueloop" -->
225                 <!-- TMPL_IF NAME="toggle" -->
226         <tr class="highlight">
227                 <!-- TMPL_ELSE -->
228                 <tr>
229                 <!-- /TMPL_IF -->
230             <td>
231                 <!-- TMPL_IF name="red" --><span class="overdue"><!-- /TMPL_IF -->
232                 <!-- TMPL_IF name="red" --></span><!-- /TMPL_IF -->
233                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
234                     <!-- TMPL_VAR NAME="title" -->
235                 </a>
236                 <!-- TMPL_VAR name="author" -->
237             </td>
238             <td><!-- TMPL_VAR NAME="date_due" --></td>
239             <td>
240                 <!-- TMPL_VAR NAME="itemtype_description" -->
241                 <!-- TMPL_IF NAME="itemtype_image" -->
242                 <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
243                 <!-- /TMPL_IF -->
244             </td>
245             <td><!-- TMPL_VAR NAME="charge" --></td>
246             <td><!-- TMPL_VAR NAME="replacementprice" --></td>
247             <td>
248             <!-- TMPL_IF name="norenew" -->
249                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Reserved</a>
250             <!-- TMPL_ELSE -->
251             <!-- TMPL_IF NAME="red" -->
252             <input type="checkbox"
253                     name="items[]"
254                     value="<!-- TMPL_VAR NAME="itemnumber" -->"
255                     checked="checked"
256                         />
257             <!-- TMPL_ELSE -->
258             <input type="checkbox"
259                     name="items[]"
260                     value="<!-- TMPL_VAR NAME="itemnumber" -->"
261                         />
262             <!-- /TMPL_IF -->
263             <input type="checkbox"
264                     name="all_items[]"
265                     value="<!-- TMPL_VAR NAME="itemnumber" -->"
266                 checked="checked"
267                     style="display: none;"
268             />
269             <!-- /TMPL_IF -->
270             </td>
271             <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Return</a></td>
272         </tr>
273         <!-- /tmpl_loop -->
274         <tr>
275             <td colspan="3">Total replacement cost:</td>
276             <td><!-- TMPL_VAR NAME="totalprice" --></td>
277             <td colspan="3">&nbsp;</td>
278         </tr>
279         </table>
280             <div id="action">
281             <input type="submit" name="renew_checked" value="Renew Checked Items" />
282             <input type="submit" name="renew_all" value="Renew All" />
283             </div>
284     </form>
285     </div>
286 <!-- TMPL_IF NAME="reservloop" -->
287 <div id="circ_circulation_issue">
288         <h2>Borrower current reserves</h2>
289         <table>
290                 <tr>
291                         <th>Reserve date</th>
292                         <th>Barcode</th>
293                         <th>Title</th>
294                         <th>Author</th>
295                         <th>Localisation</th>
296                         <th>Details</th>
297                 </tr>
298                 <!-- TMPL_LOOP NAME="reservloop" -->
299                 <tr class="<!-- TMPL_VAR NAME="color" -->">
300                                         <td>
301                                                 <!-- TMPL_VAR NAME="reservedate" -->
302                                         </td>
303                                         <td>
304                                                 <!-- TMPL_IF name="barcodereserv" -->
305                                                 <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>
306                                                 <!-- /TMPL_IF -->
307                                                 <!-- TMPL_IF NAME="waitingposition" -->
308                                                 Waiting position for this document :
309                                                 <b> <!-- TMPL_VAR NAME="waitingposition" --> </b>
310                                                 <!-- /TMPL_IF -->
311                                         </td>
312                                         <td>
313                                                 <!-- TMPL_VAR NAME="title" --> (<b> <!-- TMPL_VAR NAME="itemtype" --> </b>) 
314
315                                                 <!-- TMPL_IF name="waiting" -->
316                                                 <i>This document is available</i>
317                                                 <!-- /TMPL_IF -->
318                                                 <!-- TMPL_IF name="transfered" -->
319                                                 <i>This document has been transfered from library : 
320                                                 <!-- TMPL_VAR NAME="frombranch" --> the : <!-- TMPL_VAR NAME="datesent" --> </i>
321                                                 <!-- /TMPL_IF -->
322
323                                                 <!-- TMPL_IF name="nottransfered" -->
324                                                 <i>This document hasn't been transfered yet from library : <!-- TMPL_VAR NAME="nottransferedby" --></i>
325                                                 <!-- /TMPL_IF -->
326                                 
327                                         </td>
328                                         <td><!-- TMPL_VAR NAME="author" --></td>
329                                         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
330                                         <td>
331                                             <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">view reserves </a>
332                                         </td>
333                         </tr>
334                 <!-- /TMPL_LOOP -->
335         </table>
336         <!-- /TMPL_IF -->
337 </div>
338
339 <script type="text/javascript">
340 function confirm_deletion() {
341     var is_confirmed = window.confirm('Do you confirm deletion ?');
342     var borrowernumbervalue=document.form.borrowernumber.value; 
343    
344     if (is_confirmed) {
345             window.location='/cgi-bin/koha/members/deletemem.pl?member='+borrowernumbervalue+'';
346     }
347 }
348
349 function confirm_reregistration() {
350     var is_confirmed = window.confirm('Do you confirm re_registration ?');
351     var borrowernumbervalue1=document.form.borrowernumber.value;
352     if (is_confirmed) {
353     window.location='/cgi-bin/koha/members/moremember.pl?reregistration=y&borrowernumber='+borrowernumbervalue1+'';
354     }
355 }
356 </script>
357 <!-- /TMPL_IF --> <!-- unknowuser -->
358 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->