some minor bugfixes, templates improvements & zebra default config file changes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / members / moremember.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; 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     This borrower doesn't exist anymore.<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">Borrowers</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>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="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>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">Barcode</th>
217             <th scope="col">Date due</th>
218             <th scope="col">Itemtype</th>
219             <th scope="col">Charge</th>
220             <th scope="col">Price</th>
221             <th scope="col">Renew</th>
222             <th scope="col">Return</th>
223         </tr>
224     
225         <!-- TMPL_LOOP name="issueloop" -->
226           <!-- TMPL_IF name="overdue" -->
227         <tr class="problem">
228           <!-- TMPL_ELSE -->
229             <!-- TMPL_IF name="toggle" -->
230         <tr class="highlight">
231             <!-- TMPL_ELSE -->
232         <tr>
233             <!-- /TMPL_IF -->
234           <!-- /TMPL_IF -->
235             <td><!-- TMPL_VAR NAME="date_due" --></td>
236             <td>
237                 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
238                     <!-- TMPL_VAR NAME="title" -->
239                 </a></p>
240                 <p><!-- TMPL_VAR name="author" -->
241                     <!-- TMPL_IF name="publishercode" --> - <!-- TMPL_VAR name="publishercode" --> <!-- /TMPL_IF -->
242                     <!-- TMPL_IF name="publicationyear" -->- <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
243                 </p>
244             </td>
245             <td><!-- TMPL_VAR NAME="barcode" --></td>
246             <td>
247                 <!-- TMPL_VAR NAME="itemtype_description" -->
248                 <!-- TMPL_IF NAME="itemtype_image" -->
249                 <img src="<!-- TMPL_VAR NAME="itemtype_image" -->" />
250                 <!-- /TMPL_IF -->
251             </td>
252             <td><!-- TMPL_VAR NAME="charge" --></td>
253             <td><!-- TMPL_VAR NAME="replacementprice" --></td>
254             <td>
255             <!-- TMPL_IF name="norenew" -->
256                 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Reserved</a>
257             <!-- TMPL_ELSE -->
258             <!-- TMPL_IF NAME="red" -->
259             <input type="checkbox"
260                     name="items[]"
261                     value="<!-- TMPL_VAR NAME="itemnumber" -->"
262                     checked="checked"
263                         />
264             <!-- TMPL_ELSE -->
265             <input type="checkbox"
266                     name="items[]"
267                     value="<!-- TMPL_VAR NAME="itemnumber" -->"
268                         />
269             <!-- /TMPL_IF -->
270             <input type="checkbox"
271                     name="all_items[]"
272                     value="<!-- TMPL_VAR NAME="itemnumber" -->"
273                 checked="checked"
274                     style="display: none;"
275             />
276             <!-- /TMPL_IF -->
277             </td>
278             <td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR NAME="barcode" -->">Return</a></td>
279         </tr>
280         <!-- /tmpl_loop -->
281         <tr>
282             <td colspan="5">Total replacement cost:</td>
283             <td><!-- TMPL_VAR NAME="totalprice" --></td>
284             <td colspan="2">&nbsp;</td>
285         </tr>
286         </table>
287         <div>
288         <input type="submit" name="renew_checked" value="Renew checked items" />
289         <input type="submit" name="renew_all" value="Renew all" />
290         </div>
291     </form>
292     </div>
293 <!-- TMPL_IF NAME="reservloop" -->
294 <div id="circ_circulation_issue">
295         <h2>Borrower current reserves</h2>
296         <table>
297                 <tr>
298                         <th>Reserve date</th>
299                         <th>Barcode</th>
300                         <th>Title</th>
301                         <th>Author</th>
302                         <th>Localisation</th>
303                         <th>Details</th>
304                 </tr>
305                 <!-- TMPL_LOOP NAME="reservloop" -->
306                 <tr class="<!-- TMPL_VAR NAME="color" -->">
307                                         <td>
308                                                 <!-- TMPL_VAR NAME="reservedate" -->
309                                         </td>
310                                         <td>
311                                                 <!-- TMPL_IF name="barcodereserv" -->
312                                                 <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>
313                                                 <!-- /TMPL_IF -->
314                                                 <!-- TMPL_IF NAME="waitingposition" -->
315                                                 Waiting position for this document :
316                                                 <b> <!-- TMPL_VAR NAME="waitingposition" --> </b>
317                                                 <!-- /TMPL_IF -->
318                                         </td>
319                                         <td>
320                                                 <!-- TMPL_VAR NAME="title" --> (<b> <!-- TMPL_VAR NAME="itemtype" --> </b>) 
321
322                                                 <!-- TMPL_IF name="waiting" -->
323                                                 <i>This document is available</i>
324                                                 <!-- /TMPL_IF -->
325                                                 <!-- TMPL_IF name="transfered" -->
326                                                 <i>This document has been transfered from library : 
327                                                 <!-- TMPL_VAR NAME="frombranch" --> the : <!-- TMPL_VAR NAME="datesent" --> </i>
328                                                 <!-- /TMPL_IF -->
329
330                                                 <!-- TMPL_IF name="nottransfered" -->
331                                                 <i>This document hasn't been transfered yet from library : <!-- TMPL_VAR NAME="nottransferedby" --></i>
332                                                 <!-- /TMPL_IF -->
333                                 
334                                         </td>
335                                         <td><!-- TMPL_VAR NAME="author" --></td>
336                                         <td><!-- TMPL_VAR NAME="itemcallnumber" --></td>
337                                         <td>
338                                             <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">view reserves </a>
339                                         </td>
340                         </tr>
341                 <!-- /TMPL_LOOP -->
342         </table>
343         <!-- /TMPL_IF -->
344 <script type="text/javascript">
345 function confirm_deletion() {
346     var is_confirmed = window.confirm('Click OK to confirm deletion');
347     var borrowernumbervalue=document.form.borrowernumber.value; 
348    
349     if (is_confirmed) {
350             window.location='/cgi-bin/koha/members/deletemem.pl?member='+borrowernumbervalue+'';
351     }
352 }
353
354 function confirm_reregistration() {
355     var is_confirmed = window.confirm('Click OK to confirm renewal');
356     var borrowernumbervalue1=document.form.borrowernumber.value;
357     if (is_confirmed) {
358     window.location='/cgi-bin/koha/members/moremember.pl?reregistration=y&amp;borrowernumber='+borrowernumbervalue1+'';
359     }
360 }
361 </script>
362 <!-- /TMPL_IF --> <!-- unknowuser -->
363 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->