Moving </head><body> into body of templates so that js and css can be embedded per...
[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 </head>
5 <body>
6 <!-- TMPL_INCLUDE NAME="header.inc" -->
7 <!-- TMPL_INCLUDE NAME="menu-members.inc" -->
8
9 <div id="doc3" class="yui-t2">
10    
11    <div id="bd">
12         <div id="yui-main">
13         <div class="yui-b"><div class="yui-g">
14
15 <!-- TMPL_IF NAME="unknowuser" -->
16     This patron doesn't exist.<a href="javascript:back();">Go Back</a>
17 <!-- TMPL_ELSE -->
18 <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>
19
20 <form action="" name="form">
21 <input type="hidden" name="reregistration" value="<!-- TMPL_VAR NAME="reregistration"-->" /> 
22 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
23 </form>
24 <div id="action">
25     
26         <div class="edit">
27         <ul><!-- TMPL_IF name="adultborrower" -->
28         <li><a href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;category_type=C">Add child</a> </li>
29         <!-- /TMPL_IF -->
30         <!-- TMPL_IF NAME="category_type" -->
31             <!--TMPL_IF NAME="guarantor"-->
32                 <li><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"-->">
33             <!--TMPL_ELSE-->
34             <li><a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;category_type=<!-- TMPL_VAR NAME="category_type"-->">
35             <!--/TMPL_IF-->Edit</a></li>
36         <!-- TMPL_ELSE --> <!-- try with categorycode if no category_type -->
37             <!-- TMPL_IF NAME="categorycode" -->
38             <li><a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;categorycode=<!-- TMPL_VAR NAME="categorycode"-->">Edit</a></li>
39             <!-- TMPL_ELSE --> <!-- if no categorycode, set category_type to A by default -->
40                 <li><a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;category_type=A">Edit</a></li>
41             <!-- /TMPL_IF -->
42         <!-- /TMPL_IF -->
43         
44         <li><a href="/cgi-bin/koha/members/member-password.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->">Set password</a></li>
45        <li> <a href="/cgi-bin/koha/members/member-flags.pl?member=<!-- TMPL_VAR NAME="borrowernumber" -->">Privileges</a></li> 
46         <li><a href="javascript:confirm_deletion();">Delete</a> </li></ul>
47     </div>
48         
49     <div class="view">
50 <ul>
51         <li>        <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Account</a> </li>
52         <li>        <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Pay fines</a> </li>
53         <li>        <a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Reading record</a></li>
54         <li>        <a href="javascript:confirm_reregistration();" onclick="document.form.value='y'" class="gest_borro_op">Renew</a></li>
55 </ul>
56     </div>
57         <!-- TMPL_IF NAME="CAN_user_parameters"-->
58     <div class="others">
59 <ul>
60         <li>        <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></li>
61 </ul>
62     </div>
63         <!-- /TMPL_IF -->
64 </div>
65 <!-- TMPL_IF NAME="flagged" -->
66     <ul>
67         <!-- TMPL_IF NAME="debarred" -->
68             <li>Patron is restricted
69             <form class="inline compact" action="/cgi-bin/koha/members/setdebar.pl" method="post">
70                 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
71                 <input type="hidden" name="status" value="0" />
72                 <input type="submit" value="Lift Debarment" />
73             </form>
74             </li>
75         <!-- /TMPL_IF -->
76         <!-- TMPL_IF NAME="gonenoaddress" --><li>Patron's address is in doubt.</li><!-- /TMPL_IF -->
77         <!-- TMPL_IF NAME="lost" --><li>Patron's card has been reported lost.</li><!-- /TMPL_IF -->
78     </ul>
79
80 <!-- /TMPL_IF -->
81
82 <fieldset>
83 <legend>Patron information</legend>
84     <!-- TMPL_UNLESS NAME="I" -->
85     <p><label>Title:</label><!-- TMPL_VAR NAME="title" -->&nbsp;</p> 
86     <p><label>First name:</label><!-- TMPL_VAR NAME="firstname" --></p>
87     <!-- /TMPL_UNLESS -->
88     <p><!-- TMPL_IF NAME="I" --><label>Organisation name: </label><!-- TMPL_ELSE --><label>Last name: </label><!-- /TMPL_IF --><!-- TMPL_VAR NAME="surname" --></p>
89     <!-- TMPL_UNLESS NAME="I" --><p><label>Other names: </label><!-- TMPL_VAR NAME="othernames" --></p>
90     <p><label>Initials: </label><!-- TMPL_VAR NAME="initials" --></p><!-- /TMPL_UNLESS -->
91     <p>
92         <label>Address: </label>
93         <!-- TMPL_VAR NAME="streetnumber" -->
94         <!--TMPL_IF NAME="roaddetails"-->
95          <!-- TMPL_VAR NAME="roaddetails" -->,
96         <!-- /TMPL_IF -->
97         <!-- TMPL_VAR NAME="address" -->
98     </p>
99     <p>
100         <label>Address2: </label>
101         <!-- TMPL_VAR NAME="address2"-->
102     </p>
103     <p><label>City: </label><!-- TMPL_VAR NAME="city" --></p>
104     <p><label>Zip code: </label><!-- TMPL_VAR NAME="zipcode" --></p>
105     <!-- TMPL_UNLESS NAME="I"-->
106         <!-- TMPL_UNLESS NAME="C"-->
107         <p><label>Alternate address: </label><!-- TMPL_VAR NAME="B_address" --></p>
108         <p><label>Alternate city: </label><!-- TMPL_VAR NAME="B_city" --></p>
109         <p><label>Alternate zipcode: </label><!-- TMPL_VAR NAME="B_zipcode" --></p>
110         <!-- /TMPL_UNLESS -->
111     <!-- /TMPL_UNLESS -->
112     <!-- TMPL_IF NAME="I" -->
113         <p><label>Organisation phone: </label><!-- TMPL_VAR NAME="phonepro" --></p>
114         <p><label>Organisation email: </label><!-- TMPL_VAR NAME="emailpro" --></p>
115     <!-- /TMPL_IF -->
116     <!-- TMPL_UNLESS NAME="I"-->
117     <p><label>Home phone: </label><!-- TMPL_VAR NAME="phone" --></p>
118     <p><label>Cell phone: </label><!-- TMPL_VAR NAME="mobile" --></p>
119     <p><label>Professional phone: </label><!-- TMPL_VAR NAME="phonepro" --></p>
120     <!-- /TMPL_UNLESS -->
121     <!-- TMPL_IF NAME="P"-->
122     <p><label>Professional phone: </label><!-- TMPL_VAR NAME="phone" --></p>
123     <p><label>Professionnal email: </label><!-- TMPL_VAR NAME="mobile" --></p>
124     <!-- /TMPL_IF -->   
125     <p><label>Fax: </label><!-- TMPL_VAR NAME="fax" --></p>
126     <!-- TMPL_UNLESS NAME="I"-->
127     <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>
128     <p><label>Date of birth:</label><!-- TMPL_VAR NAME="dateofbirth" --></p>
129     <p><label>Sex:</label><!-- TMPL_VAR NAME="sex" --></p>
130     <!-- /TMPL_UNLESS -->
131         
132 </fieldset>
133 <fieldset>
134     <legend>Library use</legend>
135     <p><label>Patron number:</label><!-- TMPL_VAR NAME="borrowernumber" --></p>
136     <p><label>Category:</label><!-- TMPL_VAR NAME="description" --></p>
137     <p><label>Registration date:</label><!-- TMPL_VAR NAME="dateenrolled" --></p>
138     <p><label>Relation:</label><!-- TMPL_VAR NAME="relationship" --></p>
139     
140     <p><label>Expiration date: </label>
141     <!-- TMPL_IF NAME="reregistration" -->
142             <label class="reregistrinfo"><!-- TMPL_VAR NAME="dateexpiry" --></label>
143     <!--TMPL_ELSE-->
144             <!-- TMPL_VAR NAME="dateexpiry" -->
145     <!-- /TMPL_IF -->
146     </p>
147     
148     <p><label>Registration branch:</label><!-- TMPL_VAR NAME="branchname" --> &nbsp;</p>
149
150     <!-- TMPL_IF NAME="printethnicityline" -->
151     <p><label>Ethnicity:</label><!-- TMPL_VAR NAME="ethnicity" --> &nbsp;</p>
152     <p><label>Ethnicity notes: </label><!-- TMPL_VAR NAME="ethnotes" --> &nbsp;</p>
153     <!-- /TMPL_IF -->
154
155     <p><label>Sort field 1: </label><!-- TMPL_VAR NAME="sort1" --> &nbsp;</p>
156     <p><label>Sort field 2:</label><!-- TMPL_VAR NAME="sort2" --> &nbsp;</p>
157     <p><label>OPAC login: </label><!-- TMPL_VAR name="userid" --> &nbsp;</p>
158     <!-- TMPL_IF NAME="password" -->
159         <p><label>OPAC password: </label>*******</p>
160    <!--TMPL_ELSE -->
161         <p><label>OPAC password: </label><span class="problem">Undefined &nbsp;</span></p> 
162    <!--/TMPL_IF --> 
163         <p><label>Circulation notes:</label><!-- TMPL_VAR name="borrowernotes" --> &nbsp;</p>
164     <p><label>Message to Patron:</label><!-- TMPL_VAR NAME="opacnote" --> &nbsp;</p>
165 </fieldset>
166 <!-- TMPL_UNLESS NAME="P" -->
167 <!-- TMPL_UNLESS NAME="I" -->
168 <fieldset>
169     
170     <legend>Alternate contact</legend>
171      <!-- TMPL_IF NAME="C" -->
172     <p><label>Name: </label><!-- TMPL_VAR NAME="contactname" --> &nbsp;</p>
173     <p><label>Firstname: </label><!-- TMPL_VAR NAME="firstname" --> &nbsp;</p>          
174     <p><label>Phone: </label><!-- TMPL_VAR NAME="phone" --> &nbsp;</p>
175     <p><label>Email: </label><!-- TMPL_VAR NAME="email" --> &nbsp;</p>
176     <p><label>Relationship: </label><!-- TMPL_VAR NAME="relationship" --> &nbsp;</p>
177    <!-- /TMPL_IF -->
178        
179          <!-- TMPL_IF name="isguarantee" -->
180             <!-- TMPL_IF NAME="guaranteeloop" -->
181                 <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>
182             <!-- /TMPL_IF -->
183         <!-- TMPL_ELSE -->
184             <!-- TMPL_IF name="guarantorborrowernumber" -->
185                 <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>
186             <!-- /TMPL_IF -->
187        <!-- /TMPL_IF  -->
188     
189 </fieldset>
190
191 <!-- /TMPL_UNLESS-->
192 <!-- /TMPL_UNLESS-->
193 <fieldset>
194     <legend>Fines &amp; Charges</legend>
195     <!-- TMPL_IF name="totaldue" -->
196         <p>Total due: <!-- TMPL_VAR NAME="totaldue" --></p>
197     <!-- TMPL_ELSE -->
198         <p>No outstanding charges</p>
199     <!-- /TMPL_IF -->
200 </fieldset>
201     <div>
202     <h2>Items on loan</h2>
203     <form action="/cgi-bin/koha/reserve/renewscript.pl" method="post">
204         <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
205         <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
206     <table>
207         <tr>
208             <th scope="col">Title</th>
209             <th scope="col">Barcode</th>
210             <th scope="col">Date due</th>
211             <th scope="col">Itemtype</th>
212             <th scope="col">Charge</th>
213             <th scope="col">Price</th>
214             <th scope="col">Renew</th>
215             <th scope="col">Return</th>
216         </tr>
217     
218         <!-- TMPL_LOOP name="issueloop" -->
219           <!-- TMPL_IF name="overdue" -->
220         <tr class="problem">
221           <!-- TMPL_ELSE -->
222             <!-- TMPL_IF name="toggle" -->
223         <tr class="highlight">
224             <!-- TMPL_ELSE -->
225         <tr>
226             <!-- /TMPL_IF -->
227           <!-- /TMPL_IF -->
228             <td><!-- TMPL_VAR NAME="date_due" --></td>
229             <td>
230                 <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
231                     <!-- TMPL_VAR NAME="title" -->
232                 </a></p>
233                 <p><!-- TMPL_VAR name="author" -->
234                     <!-- TMPL_IF name="publishercode" --> - <!-- TMPL_VAR name="publishercode" --> <!-- /TMPL_IF -->
235                     <!-- TMPL_IF name="publicationyear" -->- <!-- TMPL_VAR name="publicationyear" --><!-- /TMPL_IF -->
236                 </p>
237             </td>
238             <td><!-- TMPL_VAR NAME="barcode" --></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="5">Total replacement cost:</td>
276             <td><!-- TMPL_VAR NAME="totalprice" --></td>
277             <td colspan="2">&nbsp;</td>
278         </tr>
279         </table>
280         <div>
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>Patron 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 <script type="text/javascript">
338 function confirm_deletion() {
339     var is_confirmed = window.confirm('Click OK to confirm deletion');
340     var borrowernumbervalue=document.form.borrowernumber.value; 
341    
342     if (is_confirmed) {
343             window.location='/cgi-bin/koha/members/deletemem.pl?member='+borrowernumbervalue+'';
344     }
345 }
346
347 function confirm_reregistration() {
348     var is_confirmed = window.confirm('Click OK to confirm renewal');
349     var borrowernumbervalue1=document.form.borrowernumber.value;
350     if (is_confirmed) {
351     window.location='/cgi-bin/koha/members/moremember.pl?reregistration=y&amp;borrowernumber='+borrowernumbervalue1+'';
352     }
353 }
354 </script>
355 <!-- /TMPL_IF --> <!-- unknowuser -->
356 </div>
357 </div>
358 </div>
359
360 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
361 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->