Improvements to nomenclature re: authority tag, making .tip global
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / memberentrygen.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Patrons &rsaquo; 
3 <!-- TMPL_IF NAME="opadd" -->   Add<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff <!--/TMPL_IF -->
4 patron <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR name="firstname" --><!-- TMPL_ELSE -->Modify<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff<!--/TMPL_IF -->
5 patron <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR name="firstname" --><!-- /TMPL_IF --></title>
6 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
7 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/members.js"></script>
8 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
9 <script type="text/JavaScript" language="JavaScript">
10 //<![CDATA[
11          $(document).ready(function() {
12                 $("#guarantordelete").click(function() {
13                         $("#guarantorid").attr("value","");
14                         $("#contactname").attr("value","");
15                         $("#contactfirstname").attr("value","");
16                         $("#guarantorsearch").attr("value","Find guarantor");
17                 });
18                         $("#select_city").change(function(){
19                                 var myRegEx=new RegExp(/(.*)\|(.*)/);
20                         document.form.select_city.value.match(myRegEx);
21                         document.form.zipcode.value=RegExp.$1;
22                         document.form.city.value=RegExp.$2;                                     
23                 });
24          });
25 //]]>
26 </script>
27 </head>
28 <body>
29 <!-- TMPL_INCLUDE NAME="header.inc" -->
30 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
31
32 <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; 
33 <!-- TMPL_IF NAME="opadd" -->
34                 Add<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF --> <!--TMPL_IF Name="S"-->Staff <!--/TMPL_IF -->
35 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
36 <!-- TMPL_ELSE --> 
37 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> &rsaquo; <strong>Modify<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF --><!--TMPL_IF Name="S"-->Staff <!--/TMPL_IF -->
38 patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- /TMPL_IF --></strong></div>
39
40 <div id="doc3" class="yui-t2">
41    
42    <div id="bd">
43         <div id="yui-main">
44         <div class="yui-b">
45
46
47         <!-- TMPL_IF NAME="opadd" -->
48         <h1>
49                 <!--TMPL_IF Name="I"--> Add organisation patron <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Add adult patron <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Add child patron <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Add professional patron <!--/TMPL_IF --><!--TMPL_IF Name="S"--> Add staff patron <!--/TMPL_IF -->
50 <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --> 
51         </h1>
52         <!-- TMPL_ELSE -->
53         <h1 >
54                 <!--TMPL_IF Name="I"--> Modify organisation patron <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Modify adult patron <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Modify child patron <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Modify professional patron <!--/TMPL_IF --><!--TMPL_IF Name="S"--> Modify staff patron <!--/TMPL_IF -->
55 <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --> 
56         </h1>
57         <!-- /TMPL_IF -->
58   
59         <!-- TMPL_IF NAME="check_member" -->
60                 <p>
61                 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
62                         <div id="problem">
63                                 Duplicate suspected
64                                 <a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >Detail</a>
65                                 Duplicate ?
66                                 <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->&amp;category_type=<!--TMPL_VAR NAME="check_categorytype"-->">Yes</a> 
67                                 &nbsp;&nbsp;&nbsp; No, it is not
68                                 <!-- TMPL_IF NAME="checked"-->
69                                         <input type="checkbox" checked="checked" name="answernodouble" >
70                                 <!-- TMPL_ELSE -->
71                                         <input type="checkbox" name="answernodouble" />
72                                 <!-- /TMPL_IF -->
73                         </div>
74                 </form>
75                 </p>
76         <!--/TMPL_IF-->
77                 
78         <!-- TMPL_IF Name="debug" -->
79                 <div id="debug">
80                                 <div>Debug is on (level <!-- TMPL_VAR NAME="debug" -->)</div>
81                 </div>
82         <!-- /TMPL_IF -->
83         <!-- TMPL_IF Name="nok" -->
84                 <div id="problem">
85                         <p>The following fields are wrong. Please fix them.</p>
86                         <ul>
87                         <!-- TMPL_IF NAME="ERROR_login_exist" -->
88                                 <li id="ERROR_login_exist">Login/password already exists.</li>
89                         <!-- /TMPL_IF -->
90                         <!-- TMPL_IF NAME="ERROR_cardnumber" -->
91                                 <li id="ERROR_cardnumber">Cardnumber already in use.</li>
92                         <!-- /TMPL_IF -->
93                         <!-- TMPL_IF NAME="ERROR_age_limitations" -->
94                                 <li id="ERROR_age_limitations">Patron's age is incorrect for their category.  
95                                         Ages allowed are <!-- TMPL_VAR NAME="ERROR_age_limitations"-->.</li>
96                         <!-- /TMPL_IF -->
97                         <!-- TMPL_IF NAME="ERROR_branch" -->
98                                 <li id="ERROR_branch">Library is invalid.</li>
99                         <!-- /TMPL_IF -->   
100                         <!-- TMPL_IF NAME="ERROR_dateofbirth" -->
101                                 <li id="ERROR_dateofbirth">Date of birth is invalid.</li>
102                         <!-- /TMPL_IF -->
103                         <!-- TMPL_IF NAME="ERROR_dateenrolled" -->
104                                 <li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
105                         <!-- /TMPL_IF -->
106                         <!-- TMPL_IF NAME="ERROR_dateexpiry" -->
107                                 <li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
108                         <!-- /TMPL_IF -->
109                         </ul>
110                 </div>
111         <!-- /TMPL_IF -->
112         
113   
114 <form name="form"  action="/cgi-bin/koha/members/memberentry.pl" method="post"> 
115 <!--    field always hidden in different form (1,2,3) -->
116 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
117 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
118 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
119 <input type="hidden" name="guarantorid"   value="<!-- TMPL_VAR NAME="guarantorid" -->" />
120 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
121 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
122 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
123 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
124 <input type="hidden" name="nodouble"  value="<!-- TMPL_VAR NAME="nodouble" -->" />
125 <!--TMPL_IF Name="step"--><input type="hidden" name="step"  value="<!-- TMPL_VAR NAME="step" -->" /><!--/TMPL_IF-->
126 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
127
128 <!--TMPL_IF Name="step_1"-->
129         <fieldset class="rows" id="memberentry_identity">
130                 <legend><!--TMPL_IF Name="I"-->Organisation <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
131                 <ol>
132                 <!-- TMPL_UNLESS name="I" -->
133                 <!-- TMPL_IF NAME="title_cgipopup" -->
134             <li>
135             <!-- TMPL_IF NAME="mandatorytitle" -->
136                 <label for="btitle" class="required">
137             <!-- TMPL_ELSE -->
138                 <label for="btitle">
139             <!-- /TMPL_IF-->
140             Salutation: </label>
141             <!-- TMPL_VAR NAME="borrotitlepopup" -->
142             <!-- TMPL_IF NAME="mandatorytitle" --><span class="required">Required</span><!-- /TMPL_IF -->
143             </li>
144                 <!-- /TMPL_IF -->
145         <!-- /TMPL_UNLESS -->
146                 <li>
147                 <!-- TMPL_IF NAME="mandatorysurname" -->
148                 <label for="surname" class="required">
149                 <!-- TMPL_ELSE -->
150                 <label for="surname">
151                 <!-- /TMPL_IF-->
152                 Surname: </label>
153                 <!-- TMPL_IF NAME="uppercasesurnames" -->
154                 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="<!-- TMPL_VAR NAME="surname" -->" />
155                 <!-- TMPL_ELSE -->
156                 <input type="text" id="surname" name="surname" size="20"  value="<!-- TMPL_VAR NAME="surname" -->" />
157                 <!-- /TMPL_IF -->
158                 <!-- TMPL_IF NAME="mandatorysurname" --><span class="required">Required</span><!-- /TMPL_IF -->
159                 </li>
160                 <!-- TMPL_UNLESS name="I" -->
161             <li>
162                 <!-- TMPL_IF NAME="mandatoryfirstname" -->
163                 <label for="firstname" class="required">
164                 <!-- TMPL_ELSE -->
165                 <label for="firstname">
166                 <!-- /TMPL_IF-->
167                 Firstname: </label>
168                 <input type="text" id="firstname" name="firstname" size="20"  value="<!-- TMPL_VAR NAME="firstname" -->" />
169                 <!-- TMPL_IF NAME="mandatoryfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
170             </li>
171             <li>
172                 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
173                 <label for="dateofbirth" class="required">
174                 <!-- TMPL_ELSE -->
175                 <label for="dateofbirth">
176                 <!-- /TMPL_IF-->
177                 Date of birth: </label>
178                 <input type="text" id="dateofbirth" name="dateofbirth" size="20" <!-- TMPL_IF NAME="metric" -->onchange="CheckDate(document.form.dateofbirth);"<!-- /TMPL_IF --> value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
179                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
180         <script language="JavaScript" type="text/javascript">
181             Calendar.setup(
182             {
183                 inputField : "dateofbirth",
184                 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
185                 button : "dateofbirth_button"
186             }
187             );
188         </script>
189         <!-- TMPL_IF NAME="mandatorydateofbirth" --><span class="required">Required</span><!-- /TMPL_IF -->
190         <!-- TMPL_IF NAME="ERROR_dateofbirth" --><span class="required">(Error)</span><!-- /TMPL_IF -->
191             </li>
192             <li>
193                 <!-- TMPL_IF NAME="mandatoryinitials" -->
194                     <label for="initials" class="required">
195                 <!-- TMPL_ELSE -->
196                     <label for="initials">
197                 <!-- /TMPL_IF-->
198                 Initials: </label>
199                 <input type="text" id="initials" name="initials" size="20"  value="<!-- TMPL_VAR NAME="initials" -->" />        
200                 <!-- TMPL_IF NAME="mandatoryinitials" --><span class="required">Required</span><!-- /TMPL_IF -->
201             </li>
202         <!-- /TMPL_UNLESS -->
203                 <li>
204                         <!-- TMPL_IF NAME="mandatoryothernames" -->
205                         <label for="othernames" class="required">
206                         <!-- TMPL_ELSE -->
207                         <label for="othernames">
208                         <!-- /TMPL_IF-->
209                         Other name: </label>
210                         <input type="text" id="othernames" name="othernames" size="20"  value="<!-- TMPL_VAR NAME="othernames" -->" />
211 <!-- TMPL_IF NAME="mandatoryothernames" --><span class="required">Required</span><!-- /TMPL_IF -->
212                 </li>
213     <!--TMPL_IF Name="I"-->
214         <input type="hidden" name="sex" value="N" />
215     <!--TMPL_ELSE-->
216                 <li class="radio">  
217                                 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F"  <!-- TMPL_IF NAME="female" --> checked="checked" <!-- /TMPL_IF --> />
218                                 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" <!-- TMPL_IF NAME="male" --> checked="checked" <!-- /TMPL_IF --> />
219                                 <label for="sex-male">? </label><input type="radio" name="sex" id="sex-male" value="" <!-- TMPL_IF NAME="none" --> checked="checked" <!-- /TMPL_IF --> />
220         </li>
221     <!--/TMPL_IF-->
222 <!--TMPL_IF EXPR="showguarantor"-->  <li><label for="">Guarantor: </label>
223   <select name="relationship" id="relationship" >
224     <!-- TMPL_LOOP name="relshiploop" -->
225         <!-- TMPL_IF name="selected" -->
226             <option value="<!-- TMPL_VAR name="relationship" -->" selected="selected" ><!-- TMPL_VAR name="relationship" --></option>
227         <!-- TMPL_ELSE -->
228             <option value="<!-- TMPL_VAR name="relationship" -->"><!-- TMPL_VAR name="relationship" --></option>
229         <!-- /TMPL_IF -->
230     <!-- /TMPL_LOOP -->
231     </select>
232   <input name="contactname" id="contactname" type="text"  size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
233   <input name="contactfirstname" id="contactfirstname" type="text"  size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
234   <!-- TMPL_IF NAME="guarantorid"-->  
235     <input id="guarantorsearch" type="button" value="Modify Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
236   <!-- TMPL_ELSE -->
237     <input id="guarantorsearch" type="button" value="Find guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
238   <!-- /TMPL_IF --> <input id="guarantordelete" type="button" value="Delete Guarantor" />
239   </li>
240 <!--/TMPL_IF-->  
241                 </ol>
242         </fieldset>
243 <fieldset class="rows">
244     <legend>Main address</legend><ol>
245     <li>
246       <!-- TMPL_IF NAME="mandatorystreetnumber" -->
247       <label for="streetnumber" class="required">
248       <!--TMPL_ELSE-->
249       <label for="streetnumber">
250       <!-- /TMPL_IF-->
251       Street number: </label>
252       <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
253 <!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
254     </li>
255     <!-- TMPL_IF NAME="road_cgipopup" -->
256       <li>
257       <!-- TMPL_IF NAME="mandatorystreettype" -->
258       <label for="streettype" class="required">
259       <!--TMPL_ELSE-->
260       <label for="streettype">
261       <!-- /TMPL_IF-->
262       Street type: </label>
263       <!-- TMPL_VAR NAME="roadpopup" -->
264           <!-- TMPL_IF NAME="mandatorystreettype" --><span class="required">Required</span><!-- /TMPL_IF -->
265       </li>
266     <!--/TMPL_IF--> 
267     <li>
268       <!-- TMPL_IF NAME="mandatoryaddress" -->
269       <label for="address" class="required">
270       <!--TMPL_ELSE-->
271       <label for="address">
272       <!--/TMPL_IF-->
273       Address: </label>
274       <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
275           <!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
276     </li>
277     <li>
278       <!-- TMPL_IF NAME="mandatoryaddress2" -->
279       <label for="address2" class="required">
280       <!--TMPL_ELSE-->
281       <label for="address2">
282       <!-- /TMPL_IF-->
283       Address 2: </label>
284       <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
285           <!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
286     </li>  
287     <li>
288       <!-- TMPL_IF NAME="mandatorycity" -->
289         <label for="city" class="required">
290       <!--TMPL_ELSE-->
291         <label for="city">
292       <!-- /TMPL_IF-->
293       City, State: </label>
294         
295         <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
296         <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong> <!-- TMPL_VAR NAME="citypopup" --><!-- /TMPL_IF -->
297           <!-- TMPL_IF NAME="mandatorycity" --><span class="required">Required</span><!-- /TMPL_IF -->
298     </li>
299     <li> 
300       <!-- TMPL_IF NAME="mandatoryzipcode" -->
301         <label for="zipcode" class="required">
302       <!--TMPL_ELSE-->
303         <label for="zipcode">
304       <!-- /TMPL_IF-->
305       Zipcode: </label>
306       <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
307           <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
308     </li>
309   
310         </ol>
311     </fieldset>
312   <fieldset class="rows" id="memberentry_contact">
313     <legend>Contact</legend><ol>       
314 <!--TMPL_IF Name="C"-->
315       <h2>Patron</h2>
316       <li> 
317         <!-- TMPL_IF NAME="mandatoryB_email" -->
318           <label for="B_email" class="required">
319         <!--TMPL_ELSE-->
320           <label for="B_email">
321         <!-- /TMPL_IF-->
322         E-mail (home): </label>
323         <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
324                 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
325 <!--/TMPL_IF-->
326       <li>
327       <!-- TMPL_IF NAME="mandatoryphone" --> 
328       <label for="phone" class="required">
329       <!--TMPL_ELSE-->
330       <label for="phone">
331       <!-- /TMPL_IF-->
332       Phone (home): </label>
333       <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
334           <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
335     </li>
336     <li>
337       <!-- TMPL_IF NAME="mandatoryphonepro" -->
338       <label for="phonepro" class="required">
339       <!--TMPL_ELSE-->
340       <label for="phonepro">
341       <!-- /TMPL_IF-->
342       Phone (work): </label>
343       <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
344           <!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
345     </li>
346     <li>
347       <!-- TMPL_IF NAME="mandatorymobile" -->
348       <label for="mobile" class="required">
349       <!--TMPL_ELSE-->
350       <label for="mobile">
351       <!-- /TMPL_IF-->
352       Phone (cell): </label>
353       <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
354           <!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
355     </li>
356     <li>
357       <!-- TMPL_IF NAME="mandatoryemail" -->
358       <label for="email" class="required">
359       <!--TMPL_ELSE-->
360       <label for="email">
361       <!-- /TMPL_IF-->
362       E-mail (home): </label>
363       <input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->" />  
364           <!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF -->
365     </li>
366     <li>
367       <!-- TMPL_IF NAME="mandatoryemailpro" --> 
368       <label for="emailpro" class="required">
369       <!--TMPL_ELSE-->
370       <label for="emailpro">
371       <!-- /TMPL_IF-->
372       E-mail (work): </label>
373       <input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->" />
374           <!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
375     </li>
376     <li>
377       <!-- TMPL_IF NAME="mandatoryfax" -->
378       <label for="fax" class="required">
379       <!--TMPL_ELSE-->
380       <label for="fax">
381       <!-- /TMPL_IF-->
382       Fax: </label>
383       <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
384           <!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
385     </li>
386         </ol>
387   </fieldset>
388
389
390 <!-- ************************ STEP_1 *********************** -->
391 <!--/TMPL_IF -->
392 <!--TMPL_IF Name="step_2"-->
393
394                 <fieldset class="rows" id="memberentry_address">
395                 <legend>Alternate address</legend><ol>
396                         <li>
397                                 <!-- TMPL_IF NAME="mandatoryB_address" -->
398                                         <label for="B_address" class="required">
399                                 <!--TMPL_ELSE-->
400                                         <label for="B_address">
401                                 <!-- /TMPL_IF-->
402                                 Address: </label>
403                                 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
404           <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
405                         </li>
406                         <li>
407                                 <!-- TMPL_IF NAME="mandatoryB_city" -->
408                                         <label for="B_city" class="required" >
409                                 <!--TMPL_ELSE-->
410                                         <label for="B_city">
411                                 <!-- /TMPL_IF-->
412                                 City: </label>
413                                 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
414           <!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
415                         </li>
416                         <li>
417                                 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
418                                         <label for="B_zipcode" class="required">
419                                 <!--TMPL_ELSE-->
420                                         <label for="B_zipcode">
421                                 <!-- /TMPL_IF-->
422                                 Zipcode: </label>
423                                 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
424           <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
425                         </li>
426             <li>
427                 <!-- TMPL_IF NAME="mandatoryB_phone" -->
428                 <label for="B_phone" class="required">
429                 <!--TMPL_ELSE-->
430                 <label for="B_phone">
431                 <!-- /TMPL_IF-->
432                 Phone: </label>  
433                 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
434                 <!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
435             </li>
436                         <li> 
437         <!-- TMPL_IF NAME="mandatoryB_email" -->
438           <label for="B_email" class="required">
439         <!--TMPL_ELSE-->
440           <label for="B_email">
441         <!-- /TMPL_IF-->
442         E-mail: </label>
443         <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
444                 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
445             <li>
446                 <!-- TMPL_IF NAME="mandatorycontacnote" -->
447                 <label for="contacnote" class="required">
448                 <!--TMPL_ELSE-->
449                 <label for="contacnote">
450                 <!-- /TMPL_IF-->
451                 Contact note: </label>
452                 <textarea id="contactnote" name="contactnote" cols="40" rows="2"><!-- TMPL_VAR NAME="contactnote" --></textarea>
453         <!-- TMPL_IF NAME="mandatorycontacnote" --><span class="required">Required</span><!-- /TMPL_IF -->
454             </li>
455                         </ol>
456                 </fieldset>
457                 <fieldset class="rows" id="memberentry_address">       
458                     <legend>Alternate Contact</legend><ol>
459                         <li>
460                             <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" -->
461                                 <label for="altcontactfirstname" class="required">
462                                 <!-- TMPL_ELSE -->
463                                 <label for="altcontactfirstname">
464                                 <!-- /TMPL_IF -->
465                                 Firstname:</label>
466                                 <input type="text" name="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->">
467                                 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
468                         </li>
469                         <li>
470                             <!-- TMPL_IF NAME="mandatoryaltcontactsurname" -->
471                                 <label for="altcontactsurname" class="required">
472                                 <!-- TMPL_ELSE -->
473                                 <label for="altcontactsurname">
474                                 <!-- /TMPL_IF -->
475                                 Surname:</label>
476                                 <input type="text" name="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->">
477                                 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
478                         </li>
479                         <li>
480                             <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" -->
481                                 <label for="altcontactaddress1" class="required">
482                                 <!-- TMPL_ELSE -->
483                                 <label for="altcontactaddress1">
484                                 <!-- /TMPL_IF -->
485                                 Address line 1:</label>
486                                 <input type="text" name="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->" size="40">
487                                 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
488                         </li>
489                         <li>
490                             <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" -->
491                                 <label for="altcontactaddress2" class="required">
492                                 <!-- TMPL_ELSE -->
493                                 <label for="altcontactaddress2">
494                                 <!-- /TMPL_IF -->
495                                 Address line 2:</label>
496                                 <input type="text" name="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->" size="40">
497                                 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
498                         </li>
499                         <li>
500                             <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" -->
501                                 <label for="altcontactaddress3" class="required">
502                                 <!-- TMPL_ELSE -->
503                                 <label for="altcontactaddress3">
504                                 <!-- /TMPL_IF -->
505                                 City, State:</label>
506                                 <input type="text" name="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->" size="40">
507                                 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
508                         </li>
509                         <li>
510                             <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" -->
511                                 <label for="altcontactzipcode" class="required">
512                                 <!-- TMPL_ELSE -->
513                                 <label for="altcontactzipcode">
514                                 <!-- /TMPL_IF -->
515                                 ZIP/Post code:</label>
516                                 <input type="text" name="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->" size="5">
517                                 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
518                         </li>
519                         <li>
520                             <!-- TMPL_IF NAME="mandatoryaltcontactphone" -->
521                                 <label for="altcontactphone" class="required">
522                                 <!-- TMPL_ELSE -->
523                                 <label for="altcontactphone">
524                                 <!-- /TMPL_IF -->
525                                 Phone:</label>
526                                 <input type="text" name="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->">
527                                 <!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
528                         </li>
529             </ol>
530         </fieldset>
531
532
533   <!-- TMPL_IF NAME="I" -->
534         <!-- TMPL_IF NAME="memberofinstution" -->
535         <fieldset class="rows" id="memberentry_organisation">
536                 <legend>Organisations</legend><ol>
537                 <li>
538                         <!-- TMPL_IF NAME="mandatoryphone" --> 
539                         <label for="organisations" class="required">
540                         <!--TMPL_ELSE-->
541                         <label for="organisations">
542                         <!-- /TMPL_IF-->
543                         Organisation(s): </label>
544                         <!-- TMPL_VAR NAME="CGIorganisations" -->
545           <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
546                 </li>
547                 </ol>
548         </fieldset>
549         <!-- /TMPL_IF -->
550   <!-- /TMPL_IF -->
551               
552 <!-- /TMPL_IF -->
553 <!--TMPL_IF Name="step_3"-->
554
555   <fieldset class="rows" id="memberentry_library_management">
556     <legend>Library Management</legend><ol>
557    <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
558       <label for="cardnumber" class="required">
559     <!--TMPL_ELSE -->
560       <label for="cardnumber">
561     <!-- /TMPL_IF--> 
562     Card number: </label>
563     <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
564           <!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
565     <li>
566       <!-- TMPL_IF NAME="mandatorybranchcode" -->
567         <label for="branchcode" class="required">
568       <!--TMPL_ELSE-->
569         <label for="branchcode">
570       <!-- /TMPL_IF-->
571       Library: </label>
572       <!-- TMPL_VAR NAME="CGIbranch" -->
573           <!-- TMPL_IF NAME="mandatorybranchcode" --><span class="required">Required</span><!-- /TMPL_IF -->
574     </li>
575     <li>
576     <!-- TMPL_IF NAME="typeloop" -->
577         <label for="categorycode">Category: </label>
578         <select id="categorycode" name="categorycode">
579         <!-- TMPL_LOOP NAME="typeloop" -->
580         <optgroup label="<!-- TMPL_IF EXPR="typename eq 'C'" -->Child<!-- /TMPL_IF --><!-- TMPL_IF EXPR="typename eq 'A'" -->Adult<!-- /TMPL_IF --><!-- TMPL_IF EXPR="typename eq 'S'" -->Staff<!-- /TMPL_IF --><!-- TMPL_IF EXPR="typename eq 'I'" -->Organisation<!-- /TMPL_IF --><!-- TMPL_IF EXPR="typename eq 'P'" -->Professional<!-- /TMPL_IF -->">
581                 <!-- TMPL_LOOP NAME="categoryloop" -->
582                 <option value="<!-- TMPL_VAR NAME="categorycode" -->" <!-- TMPL_IF NAME="categorycodeselected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="categoryname" --></option>
583                 <!-- /TMPL_LOOP -->
584         </optgroup>
585         <!-- /TMPL_LOOP -->
586     <!-- TMPL_ELSE -->
587         <span class="problem">There is no category type to add <!--TMPL_IF Name="A"-->an Adult<!--/TMPL_IF--><!--TMPL_IF Name="C"-->a Child<!--/TMPL_IF--><!--TMPL_IF Name="I"-->an Institution<!--/TMPL_IF--><!--TMPL_IF Name="P"-->a professionnal<!--/TMPL_IF--><!--TMPL_IF Name="S"-->a Staff Member<!--/TMPL_IF-->.</span>
588               <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
589     <!-- /TMPL_IF -->
590     </li>
591     <li>
592       <!-- TMPL_IF NAME="mandatorysort1" -->
593         <label for="sort1" class="required">
594       <!-- TMPL_ELSE -->
595         <label for="sort1">
596       <!-- /TMPL_IF-->
597       Sort 1: </label>
598       <!--TMPL_IF NAME="CGIsort1" --> 
599         <!-- TMPL_VAR NAME="CGIsort1" -->
600       <!--TMPL_ELSE-->
601         <input  type="text" id="sort1" name="sort1" size="20"  value="<!-- TMPL_VAR NAME="sort1" -->" />
602           <!-- TMPL_IF NAME="mandatorysort1" --><span class="required">Required</span><!-- /TMPL_IF -->
603       <!-- /TMPL_IF -->   
604     </li>
605     <li>
606     <!-- TMPL_IF NAME="mandatorysort2" -->
607     <label for="sort2" class="required">
608     <!-- TMPL_ELSE -->
609     <label for="sort2">
610     <!-- /TMPL_IF-->
611     Sort 2: </label>
612     <!--TMPL_IF NAME="CGIsort2" --> 
613       <!-- TMPL_VAR NAME="CGIsort2" -->
614     <!--TMPL_ELSE-->
615       <input  type="text" id="sort2" name="sort2" size="20"  value="<!-- TMPL_VAR NAME="sort2" -->" />
616           <!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
617     <!-- /TMPL_IF --> 
618     </li>
619         </ol>
620   </fieldset>
621         <fieldset class="rows" id="memberentry_subscription">
622         <legend>Library set-up</legend><ol>
623                 <li>
624                         <!-- TMPL_IF NAME="mandatorydateenrolled" -->
625                         <label for="dateenrolled" class="required">
626                         <!--TMPL_ELSE-->
627                         <label for="dateenrolled">
628                         <!-- /TMPL_IF-->
629                         Registration date: </label>
630                         <input type="text" id="dateenrolled" name="dateenrolled"  maxlength="10" size="10" <!-- TMPL_IF NAME="metric" -->onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');"<!-- /TMPL_IF--> value="<!-- TMPL_VAR NAME="dateenrolled" -->" />
631             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
632       <script language="JavaScript" type="text/javascript">
633         Calendar.setup(
634           {
635             inputField : "dateenrolled",
636             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
637             button : "dateenrolled_button"
638           }
639         );
640       </script>
641                 <!-- TMPL_IF NAME="mandatorydateenrolled" --><span class="required">Required</span><!-- /TMPL_IF -->
642                 <!-- TMPL_IF NAME="ERROR_dateenrolled" --><span class="required">(Error)</span><!-- /TMPL_IF -->
643                 </li>
644                 <li>
645                         <!-- TMPL_IF NAME="mandatorydateexpiry" -->
646                         <label for="dateexpiry" class="required">
647                         <!--TMPL_ELSE-->
648                         <label for="dateexpiry">
649                         <!-- /TMPL_IF-->
650                         Expiry date: </label>
651                         <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10"  size="10" <!-- TMPL_IF NAME="metric" -->onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');"<!-- /TMPL_IF--> value="<!-- TMPL_VAR NAME="dateexpiry" -->" />
652             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
653       <script language="JavaScript" type="text/javascript">
654         Calendar.setup(
655           {
656             inputField : "dateexpiry",
657             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
658             button : "dateexpiry_button"
659           }
660         );
661       </script>
662                 <!-- TMPL_IF NAME="mandatorydateexpiry" --><span class="required">Required</span><!-- /TMPL_IF -->
663                 <!-- TMPL_IF NAME="ERROR_dateexpiry" --><span class="required">(Error)</span><!-- /TMPL_IF -->
664                 </li>
665                 <li>
666                         <!-- TMPL_IF NAME="mandatoryopacnote" -->
667                                 <label for="opacnote" class="required">
668                         <!--TMPL_ELSE-->
669                                 <label for="opacnote">
670                         <!-- /TMPL_IF-->        
671                         OPAC note: </label>
672                         <textarea id="opacnote" name="opacnote" cols="40" rows="2"><!-- TMPL_VAR NAME="opacnote" --></textarea>
673           <!-- TMPL_IF NAME="mandatoryopacnote" --><span class="required">Required</span><!-- /TMPL_IF -->
674                 </li>
675                 <li>
676                         <!-- TMPL_IF NAME="mandatoryborrowernotes" -->  
677                                 <label for="borrowernotes" class="required">
678                         <!--TMPL_ELSE-->
679                                 <label for="borrowernotes">
680                         <!-- /TMPL_IF-->
681                         Library note: </label>
682                         <textarea id="borrowernotes" name="borrowernotes" cols="40" rows="2"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
683           <!-- TMPL_IF NAME="mandatoryborrowernotes" --><span class="required">Required</span><!-- /TMPL_IF -->
684                 </li>
685                 </ol>
686         </fieldset>
687         <fieldset class="rows" id="memberentry_userid">
688                 <legend>OPAC login</legend><ol>
689                 <li>
690                         <!-- TMPL_IF NAME="mandatoryuserid" -->
691                         <label for="userid" class="required">
692                         <!--TMPL_ELSE-->
693                         <label for="userid">
694                         <!-- /TMPL_IF-->
695                         OPAC Login: </label>
696                         <input type="text" id="userid" name="userid" size="20" <!-- TMPL_IF NAME="NoUpdateLogin" -->disabled='true'<!-- /TMPL_IF --> value="<!-- TMPL_VAR NAME="userid" -->" />
697           <!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
698                 </li>
699                 <li>
700                         <!-- TMPL_IF NAME="mandatorypassword" -->
701                         <label for="password" class="required">
702                         <!--TMPL_ELSE-->
703                         <label for="password">
704                         <!-- /TMPL_IF-->
705                         Password: </label>
706                         <!--TMPL_IF NAME="opadd"-->
707                                 <input type="text" id="password" name="password" size="20"  <!-- TMPL_IF NAME="NoUpdateLogin" -->disabled='true'<!-- /TMPL_IF --> value="<!-- TMPL_VAR NAME="password" -->" />
708                         <!--TMPL_ELSE-->
709                                 <!--TMPL_IF NAME="password"-->
710                                         <input type="text" id="password" name="password" size="20"  <!-- TMPL_IF NAME="NoUpdateLogin" -->disabled='true'<!-- /TMPL_IF --> value="****" />
711                                 <!--TMPL_ELSE-->
712                                         <input type="text" id="password" name="password" size="20"  <!-- TMPL_IF NAME="NoUpdateLogin" -->disabled='true'<!-- /TMPL_IF --> value="" />
713                                 <!--/TMPL_IF-->
714                         <!--/TMPL_IF-->
715           <!-- TMPL_IF NAME="mandatorypassword" --><span class="required">Required</span><!-- /TMPL_IF -->
716                 </li></ol>
717                 </fieldset>
718                 <!--this zones are not necessary in modif mode -->
719                 <!-- TMPL_UNLESS NAME="opadd" -->
720                 <fieldset class="rows">
721                         <legend>Patron Account Flags</legend>
722                         <ol class="radio">
723                         <!-- TMPL_LOOP NAME="flagloop" -->
724                                 <li><label class="radio" for="yes<!-- TMPL_VAR name="name" -->">
725                                 <!-- TMPL_IF EXPR="key eq 'gonenoaddress'" -->Gone no Address:<!-- /TMPL_IF -->
726                                 <!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
727                                 <!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
728                 </label>
729                                 
730                                 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
731                                 <!-- TMPL_IF NAME="yes" -->
732                                 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
733                                 <!-- TMPL_ELSE -->
734                                 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
735                                 <!-- /TMPL_IF -->
736                                 
737                                 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
738                                 <!-- TMPL_IF NAME="no" -->
739                                 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
740                                 <!-- TMPL_ELSE -->
741                                 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
742                                 <!-- /TMPL_IF -->
743
744 </li>
745                         <!-- /TMPL_LOOP -->
746                         </ol>
747                         </fieldset>
748                 <!-- /TMPL_UNLESS -->   
749 <!-- /TMPL_IF -->
750     <fieldset class="action">
751         <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
752       <!-- TMPL_IF NAME="opadd" -->
753        <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
754            <!-- TMPL_ELSE -->
755           <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Cancel</a>
756            <!-- /TMPL_IF -->
757     </fieldset>
758 </form>
759   
760 </div>
761 </div>
762
763 <div class="yui-b">
764 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
765 </div>
766 </div>
767 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->