1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Patrons ›
3 <!-- TMPL_IF NAME="opadd" --> Add<!-- TMPL_ELSE --> Modify<!--/TMPL_IF--> <!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organisation patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF --><!--TMPL_UNLESS Name="opadd"--> <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR name="firstname" --><!--/TMPL_UNLESS--></title>
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/members.js"></script>
6 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
7 <script type="text/JavaScript" language="JavaScript">
9 $(document).ready(function() {
10 $("#guarantordelete").click(function() {
11 $("#guarantorid").attr("value","");
12 $("#contactname").attr("value","");
13 $("#contactfirstname").attr("value","");
14 $("#guarantorsearch").attr("value","Find guarantor");
16 $("#select_city").change(function(){
17 var myRegEx=new RegExp(/(.*)\|(.*)/);
18 document.form.select_city.value.match(myRegEx);
19 document.form.zipcode.value=RegExp.$1;
20 document.form.city.value=RegExp.$2;
24 function clear_entry(node) {
25 var original = node.parentNode.parentNode;
26 $("input", original).attr('value', '');
27 $("select", original).attr('value', '');
30 function clone_entry(node) {
31 var original = node.parentNode.parentNode;
32 var clone = original.cloneNode(true);
33 var newId = 50 + parseInt(Math.random() * 100000);
34 $("input", clone).attr('id', function() {
35 return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
37 $("input", clone).attr('name', function() {
38 return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
40 $("select", clone).attr('id', function() {
41 return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
43 $("select", clone).attr('name', function() {
44 return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
46 original.parentNode.insertBefore(clone, original.nextSibling);
53 <!-- TMPL_INCLUDE NAME="header.inc" -->
54 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
56 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> ›
57 <!-- TMPL_IF NAME="opadd" -->
58 Add<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organisation patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF -->
59 <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
61 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> › <strong>Modify<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organisation patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF -->
62 </strong><!-- /TMPL_IF --></div>
64 <!-- TMPL_IF NAME="opadd" --><div id="doc" class="yui-t7"><!-- TMPL_ELSE --><div id="doc3" class="yui-t2"><!-- /TMPL_IF -->
71 <!-- TMPL_IF NAME="opadd" -->
73 Add<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organisation patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF --> <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
77 Modify<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organisation patron<!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult patron<!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child patron<!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional patron<!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff patron<!--/TMPL_IF --><!--/TMPL_IF -->
78 <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
82 <!-- TMPL_IF NAME="check_member" -->
84 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
85 <div class="dialog error">
86 <h3>Duplicate suspected</h3>
87 <a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >Detail</a>
89 <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->&category_type=<!--TMPL_VAR NAME="check_categorytype"-->">Yes</a>
90 No, it is not
91 <!-- TMPL_IF NAME="checked"-->
92 <input type="checkbox" checked="checked" name="answernodouble" >
94 <input type="checkbox" name="answernodouble" />
101 <!-- TMPL_IF Name="debug" -->
103 <div>Debug is on (level <!-- TMPL_VAR NAME="debug" -->)</div>
106 <!-- TMPL_IF Name="nok" -->
107 <div class="dialog error">
108 <p>The following fields are wrong. Please fix them.</p>
110 <!-- TMPL_IF NAME="ERROR_login_exist" -->
111 <li id="ERROR_login_exist">Login/password already exists.</li>
113 <!-- TMPL_IF NAME="ERROR_cardnumber" -->
114 <li id="ERROR_cardnumber">Cardnumber already in use.</li>
116 <!-- TMPL_IF NAME="ERROR_age_limitations" -->
117 <li id="ERROR_age_limitations">Patron's age is incorrect for their category.
118 Ages allowed are <!-- TMPL_VAR NAME="ERROR_age_limitations"-->.</li>
120 <!-- TMPL_IF NAME="ERROR_branch" -->
121 <li id="ERROR_branch">Library is invalid.</li>
123 <!-- TMPL_IF NAME="ERROR_dateofbirth" -->
124 <li id="ERROR_dateofbirth">Date of birth is invalid.</li>
126 <!-- TMPL_IF NAME="ERROR_dateenrolled" -->
127 <li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
129 <!-- TMPL_IF NAME="ERROR_dateexpiry" -->
130 <li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
132 <!-- TMPL_IF NAME="ERROR_extended_unique_id_failed" -->
133 <li id="ERROR_extended_unique_id_failed">The attribute value
134 <!-- TMPL_VAR NAME="ERROR_extended_unique_id_failed" --> is already is use by another patron record.</li>
141 <form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post">
142 <!-- field always hidden in different form (1,2,3) -->
143 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
144 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
145 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
146 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
147 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
148 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
149 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
150 <input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" />
151 <!--TMPL_IF Name="step"--><input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" /><!--/TMPL_IF-->
152 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
154 <!--TMPL_IF Name="step_1"-->
155 <fieldset class="rows" id="memberentry_identity">
156 <legend><!--TMPL_IF Name="I"-->Organisation <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
158 <!-- TMPL_UNLESS name="I" -->
159 <!-- TMPL_IF NAME="title_cgipopup" -->
161 <!-- TMPL_IF NAME="mandatorytitle" -->
162 <label for="btitle" class="required">
167 <!-- TMPL_VAR NAME="borrotitlepopup" -->
168 <!-- TMPL_IF NAME="mandatorytitle" --><span class="required">Required</span><!-- /TMPL_IF -->
171 <!-- /TMPL_UNLESS -->
173 <!-- TMPL_IF NAME="mandatorysurname" -->
174 <label for="surname" class="required">
176 <label for="surname">
179 <!-- TMPL_IF NAME="uppercasesurnames" -->
180 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
182 <input type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
184 <!-- TMPL_IF NAME="mandatorysurname" --><span class="required">Required</span><!-- /TMPL_IF -->
186 <!-- TMPL_UNLESS name="I" -->
188 <!-- TMPL_IF NAME="mandatoryfirstname" -->
189 <label for="firstname" class="required">
191 <label for="firstname">
194 <input type="text" id="firstname" name="firstname" size="20" value="<!-- TMPL_VAR NAME="firstname" -->" />
195 <!-- TMPL_IF NAME="mandatoryfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
198 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
199 <label for="dateofbirth" class="required">
201 <label for="dateofbirth">
203 Date of birth: </label>
205 <!-- TMPL_IF NAME="metric" -->
206 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
208 <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
211 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
212 <script language="JavaScript" type="text/javascript">
215 inputField : "dateofbirth",
216 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
217 button : "dateofbirth_button"
221 <!-- TMPL_IF NAME="mandatorydateofbirth" --><span class="required">Required</span><!-- /TMPL_IF -->
222 <!-- TMPL_IF NAME="ERROR_dateofbirth" --><span class="required">(Error)</span><!-- /TMPL_IF -->
225 <!-- TMPL_IF NAME="mandatoryinitials" -->
226 <label for="initials" class="required">
228 <label for="initials">
231 <input type="text" id="initials" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->" />
232 <!-- TMPL_IF NAME="mandatoryinitials" --><span class="required">Required</span><!-- /TMPL_IF -->
234 <!-- /TMPL_UNLESS -->
236 <!-- TMPL_IF NAME="mandatoryothernames" -->
237 <label for="othernames" class="required">
239 <label for="othernames">
242 <input type="text" id="othernames" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->" />
243 <!-- TMPL_IF NAME="mandatoryothernames" --><span class="required">Required</span><!-- /TMPL_IF -->
244 <!-- TMPL_IF NAME="I" --><input type="hidden" name="sex" value="N" /><!-- /TMPL_IF -->
246 <!--TMPL_UNLESS Name="I"-->
249 <!-- TMPL_IF NAME="female" -->
250 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
252 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
254 <!-- TMPL_IF NAME="male" -->
255 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
257 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
259 <!-- TMPL_IF NAME="none" -->
260 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
262 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
269 <!--TMPL_IF Name="showguarantor"--><input type="hidden" id="guarantorid" name="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->" />
270 <fieldset class="rows">
271 <legend>Guarantor Information</legend>
274 <label for="contactname">First Name: </label><input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
276 <li><label for="contactfirstname">Last Name: </label><input name="contactfirstname" id="contactfirstname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" /></li>
277 <!-- TMPL_IF name="relshiploop" --><li><label for="relationship">Relationship: </label>
278 <select name="relationship" id="relationship" >
279 <!-- TMPL_LOOP name="relshiploop" -->
280 <!-- TMPL_IF name="selected" -->
281 <option value="<!-- TMPL_VAR name="relationship" -->" selected="selected" ><!-- TMPL_VAR name="relationship" --></option>
283 <option value="<!-- TMPL_VAR name="relationship" -->"><!-- TMPL_VAR name="relationship" --></option>
288 <li><span class="label"> </span><!-- TMPL_IF NAME="guarantorid"-->
289 <input id="guarantorsearch" type="button" value="Change Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
291 <input id="guarantorsearch" type="button" value="Find Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
292 <!-- /TMPL_IF --> <input id="guarantordelete" type="button" value="Delete Guarantor" /></li>
297 <fieldset class="rows">
298 <legend>Main address</legend><ol>
300 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
301 <label for="streetnumber" class="required">
303 <label for="streetnumber">
305 Street number: </label>
306 <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
307 <!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
309 <!-- TMPL_IF NAME="road_cgipopup" -->
311 <!-- TMPL_IF NAME="mandatorystreettype" -->
312 <label for="streettype" class="required">
314 <label for="streettype">
316 Street type: </label>
317 <!-- TMPL_VAR NAME="roadpopup" -->
318 <!-- TMPL_IF NAME="mandatorystreettype" --><span class="required">Required</span><!-- /TMPL_IF -->
322 <!-- TMPL_IF NAME="mandatoryaddress" -->
323 <label for="address" class="required">
325 <label for="address">
328 <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
329 <!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
332 <!-- TMPL_IF NAME="mandatoryaddress2" -->
333 <label for="address2" class="required">
335 <label for="address2">
338 <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
339 <!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
342 <!-- TMPL_IF NAME="mandatorycity" -->
343 <label for="city" class="required">
347 City, State: </label>
349 <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
350 <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong> <!-- TMPL_VAR NAME="citypopup" --><!-- /TMPL_IF -->
351 <!-- TMPL_IF NAME="mandatorycity" --><span class="required">Required</span><!-- /TMPL_IF -->
354 <!-- TMPL_IF NAME="mandatoryzipcode" -->
355 <label for="zipcode" class="required">
357 <label for="zipcode">
360 <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
361 <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
366 <fieldset class="rows" id="memberentry_contact">
367 <legend>Contact</legend><ol>
368 <!--TMPL_IF Name="C"-->
371 <!-- TMPL_IF NAME="mandatoryB_email" -->
372 <label for="B_email" class="required">
374 <label for="B_email">
376 E-mail (home): </label>
377 <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
378 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
381 <!-- TMPL_IF NAME="mandatoryphone" -->
382 <label for="phone" class="required">
386 Phone (home): </label>
387 <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
388 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
391 <!-- TMPL_IF NAME="mandatoryphonepro" -->
392 <label for="phonepro" class="required">
394 <label for="phonepro">
396 Phone (work): </label>
397 <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
398 <!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
401 <!-- TMPL_IF NAME="mandatorymobile" -->
402 <label for="mobile" class="required">
406 Phone (cell): </label>
407 <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
408 <!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
411 <!-- TMPL_IF NAME="mandatoryemail" -->
412 <label for="email" class="required">
416 E-mail (home): </label>
417 <input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->" />
418 <!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF -->
421 <!-- TMPL_IF NAME="mandatoryemailpro" -->
422 <label for="emailpro" class="required">
424 <label for="emailpro">
426 E-mail (work): </label>
427 <input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->" />
428 <!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
431 <!-- TMPL_IF NAME="mandatoryfax" -->
432 <label for="fax" class="required">
437 <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
438 <!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
444 <!-- ************************ STEP_1 *********************** -->
446 <!--TMPL_IF Name="step_2"-->
448 <fieldset class="rows" id="memberentry_address">
449 <legend>Alternate address</legend><ol>
451 <!-- TMPL_IF NAME="mandatoryB_address" -->
452 <label for="B_address" class="required">
454 <label for="B_address">
457 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
458 <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
461 <!-- TMPL_IF NAME="mandatoryB_city" -->
462 <label for="B_city" class="required" >
467 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
468 <!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
471 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
472 <label for="B_zipcode" class="required">
474 <label for="B_zipcode">
477 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
478 <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
481 <!-- TMPL_IF NAME="mandatoryB_phone" -->
482 <label for="B_phone" class="required">
484 <label for="B_phone">
487 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
488 <!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
491 <!-- TMPL_IF NAME="mandatoryB_email" -->
492 <label for="B_email" class="required">
494 <label for="B_email">
497 <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
498 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
500 <!-- TMPL_IF NAME="mandatorycontactnote" -->
501 <label for="contactnote" class="required">
503 <label for="contactnote">
505 Contact note: </label>
506 <textarea id="contactnote" name="contactnote" cols="40" rows="2"><!-- TMPL_VAR NAME="contactnote" --></textarea>
507 <!-- TMPL_IF NAME="mandatorycontactnote" --><span class="required">Required</span><!-- /TMPL_IF -->
511 <fieldset class="rows" id="memberentry_altaddress">
512 <legend>Alternate Contact</legend><ol>
514 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" -->
515 <label for="altcontactfirstname" class="required">
517 <label for="altcontactfirstname">
520 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->" />
521 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
524 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" -->
525 <label for="altcontactsurname" class="required">
527 <label for="altcontactsurname">
530 <input type="text" name="altcontactsurname" id="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->" />
531 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
534 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" -->
535 <label for="altcontactaddress1" class="required">
537 <label for="altcontactaddress1">
539 Address line 1:</label>
540 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->" size="40" />
541 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
544 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" -->
545 <label for="altcontactaddress2" class="required">
547 <label for="altcontactaddress2">
549 Address line 2:</label>
550 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->" size="40" />
551 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
554 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" -->
555 <label for="altcontactaddress3" class="required">
557 <label for="altcontactaddress3">
560 <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->" size="40" />
561 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
564 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" -->
565 <label for="altcontactzipcode" class="required">
567 <label for="altcontactzipcode">
569 ZIP/Post code:</label>
570 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->" size="5" />
571 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
574 <!-- TMPL_IF NAME="mandatoryaltcontactphone" -->
575 <label for="altcontactphone" class="required">
577 <label for="altcontactphone">
580 <input type="text" name="altcontactphone" id="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->" />
581 <!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
587 <!-- TMPL_IF NAME="I" -->
588 <!-- TMPL_IF NAME="memberofinstution" -->
589 <fieldset class="rows" id="memberentry_organisation">
590 <legend>Organisations</legend><ol>
592 <!-- TMPL_IF NAME="mandatoryphone" -->
593 <label for="organisations" class="required">
595 <label for="organisations">
597 Organisation(s): </label>
598 <!-- TMPL_VAR NAME="CGIorganisations" -->
599 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
607 <!--TMPL_IF Name="step_3"-->
609 <fieldset class="rows" id="memberentry_library_management">
610 <legend>Library Management</legend><ol>
611 <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
612 <label for="cardnumber" class="required">
614 <label for="cardnumber">
616 Card number: </label>
617 <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
618 <!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
620 <!-- TMPL_IF NAME="mandatorybranchcode" -->
621 <label for="branchcode" class="required">
623 <label for="branchcode">
626 <!-- TMPL_VAR NAME="CGIbranch" -->
627 <!-- TMPL_IF NAME="mandatorybranchcode" --><span class="required">Required</span><!-- /TMPL_IF -->
630 <!-- TMPL_IF NAME="typeloop" -->
631 <label for="categorycode">Category: </label>
632 <select id="categorycode" name="categorycode">
633 <!-- TMPL_LOOP NAME="typeloop" -->
634 <!-- TMPL_IF EXPR="typename eq 'C'" --><optgroup label="Child"><!-- /TMPL_IF -->
635 <!-- TMPL_IF EXPR="typename eq 'A'" --><optgroup label="Adult"><!-- /TMPL_IF -->
636 <!-- TMPL_IF EXPR="typename eq 'S'" --><optgroup label="Staff"><!-- /TMPL_IF -->
637 <!-- TMPL_IF EXPR="typename eq 'I'" --><optgroup label="Organisation"><!-- /TMPL_IF -->
638 <!-- TMPL_IF EXPR="typename eq 'P'" --><optgroup label="Professional"><!-- /TMPL_IF -->
639 <!-- TMPL_IF EXPR="typename eq 'X'" --><optgroup label="Statistical"><!-- /TMPL_IF -->
640 <!-- TMPL_LOOP NAME="categoryloop" -->
641 <!-- TMPL_IF NAME="categorycodeselected" -->
642 <option value="<!-- TMPL_VAR NAME="categorycode" -->" selected="selected"><!-- TMPL_VAR NAME="categoryname" --></option>
644 <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
651 <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>
652 <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
656 <!-- TMPL_IF NAME="mandatorysort1" -->
657 <label for="sort1" class="required">
662 <!--TMPL_IF NAME="CGIsort1" -->
663 <!-- TMPL_VAR NAME="CGIsort1" -->
665 <input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
666 <!-- TMPL_IF NAME="mandatorysort1" --><span class="required">Required</span><!-- /TMPL_IF -->
670 <!-- TMPL_IF NAME="mandatorysort2" -->
671 <label for="sort2" class="required">
676 <!--TMPL_IF NAME="CGIsort2" -->
677 <!-- TMPL_VAR NAME="CGIsort2" -->
679 <input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" />
680 <!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
685 <fieldset class="rows" id="memberentry_subscription">
686 <legend>Library set-up</legend><ol>
688 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
689 <label for="dateenrolled" class="required">
691 <label for="dateenrolled">
693 Registration date: </label>
694 <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" -->" />
695 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
696 <script language="JavaScript" type="text/javascript">
699 inputField : "dateenrolled",
700 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
701 button : "dateenrolled_button"
705 <!-- TMPL_IF NAME="mandatorydateenrolled" --><span class="required">Required</span><!-- /TMPL_IF -->
706 <!-- TMPL_IF NAME="ERROR_dateenrolled" --><span class="required">(Error)</span><!-- /TMPL_IF -->
709 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
710 <label for="dateexpiry" class="required">
712 <label for="dateexpiry">
714 Expiry date (leave blank for auto calc) </label>
715 <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_UNLESS NAME="opadd" --><!-- TMPL_VAR NAME="dateexpiry" --><!-- /TMPL_UNLESS -->" />
716 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
717 <script language="JavaScript" type="text/javascript">
720 inputField : "dateexpiry",
721 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
722 button : "dateexpiry_button"
726 <!-- TMPL_IF NAME="mandatorydateexpiry" --><span class="required">Required</span><!-- /TMPL_IF -->
727 <!-- TMPL_IF NAME="ERROR_dateexpiry" --><span class="required">(Error)</span><!-- /TMPL_IF -->
730 <!-- TMPL_IF NAME="mandatoryopacnote" -->
731 <label for="opacnote" class="required">
733 <label for="opacnote">
736 <textarea id="opacnote" name="opacnote" cols="55" rows="5"><!-- TMPL_VAR NAME="opacnote" --></textarea>
737 <!-- TMPL_IF NAME="mandatoryopacnote" --><span class="required">Required</span><!-- /TMPL_IF -->
740 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
741 <label for="borrowernotes" class="required">
743 <label for="borrowernotes">
745 Library note: </label>
746 <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
747 <!-- TMPL_IF NAME="mandatoryborrowernotes" --><span class="required">Required</span><!-- /TMPL_IF -->
751 <fieldset class="rows" id="memberentry_userid">
752 <legend>OPAC login</legend><ol>
754 <!-- TMPL_IF NAME="mandatoryuserid" -->
755 <label for="userid" class="required">
761 <!-- TMPL_IF NAME="NoUpdateLogin" -->
762 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="userid" -->" />
764 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
767 <!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
770 <!-- TMPL_IF NAME="mandatorypassword" -->
771 <label for="password" class="required">
773 <label for="password">
776 <!--TMPL_IF NAME="opadd"-->
777 <!-- TMPL_IF NAME="NoUpdateLogin" -->
778 <input type="text" id="password" name="password" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="password" -->" />
780 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
783 <!--TMPL_IF NAME="password"-->
784 <!-- TMPL_IF NAME="NoUpdateLogin" -->
785 <input type="text" id="password" name="password" size="20" disabled="disabled" value="****" />
787 <input type="text" id="password" name="password" size="20" value="****" />
790 <!-- TMPL_IF NAME="NoUpdateLogin" -->
791 <input type="text" id="password" name="password" size="20" disabled="disabled" value="" />
793 <input type="text" id="password" name="password" size="20" value="" />
797 <!-- TMPL_IF NAME="mandatorypassword" --><span class="required">Required</span><!-- /TMPL_IF -->
800 <!--this zones are not necessary in modif mode -->
801 <!-- TMPL_UNLESS NAME="opadd" -->
802 <fieldset class="rows">
803 <legend>Patron Account Flags</legend>
805 <!-- TMPL_LOOP NAME="flagloop" -->
806 <li><label class="radio" for="yes<!-- TMPL_VAR name="name" -->">
807 <!-- TMPL_IF EXPR="key eq 'gonenoaddress'" -->Gone no Address:<!-- /TMPL_IF -->
808 <!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
809 <!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
812 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
813 <!-- TMPL_IF NAME="yes" -->
814 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
816 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
819 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
820 <!-- TMPL_IF NAME="no" -->
821 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
823 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
830 <!-- /TMPL_UNLESS -->
833 <!-- TMPL_IF NAME="step_4" --><!-- TMPL_IF NAME="ExtendedPatronAttributes" -->
834 <fieldset class="rows" id="memberentry_patron_attributes">
835 <input type="hidden" name="setting_extended_patron_attributes" value="1">
836 <legend>Additional attributes and identifiers</legend>
837 <!-- TMPL_IF NAME="no_patron_attribute_types" -->
838 No patron attribute types defined.
843 <th colspan="2">Value</th>
845 <!-- TMPL_LOOP NAME='patron_attributes' -->
847 <td><!-- TMPL_VAR NAME="code" --> (<!-- TMPL_VAR NAME="description" -->)
850 <input type="hidden" id="<!-- TMPL_VAR NAME="form_id" -->_code" name="<!-- TMPL_VAR NAME="form_id" -->_code"
851 value="<!-- TMPL_VAR NAME="code" -->" />
852 <!-- TMPL_IF NAME="use_dropdown" -->
853 <select id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->">
855 <!-- TMPL_LOOP NAME="auth_val_loop" -->
856 <!-- TMPL_IF NAME="selected" -->
857 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected">
858 <!-- TMPL_VAR NAME="lib" -->
861 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" >
862 <!-- TMPL_VAR NAME="lib" -->
868 <input type="text" maxlength="30" value="<!-- TMPL_VAR NAME="value" -->"
869 id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->" />
871 <!-- TMPL_IF NAME="password_allowed" -->
872 (Password: <input type="password" maxlength="30" value="<!-- TMPL_VAR NAME="password" -->"
873 id="<!-- TMPL_VAR NAME="form_id" -->_password" name="<!-- TMPL_VAR NAME="form_id" -->_password" />)
877 <a href="#" onclick="clear_entry(this); return false;">Clear</a>
878 <!-- TMPL_IF NAME="repeatable" -->
879 <a href="#" onclick="clone_entry(this); return false;">New</a>
887 <!-- /TMPL_IF--><!-- /TMPL_IF -->
889 <fieldset class="action">
890 <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
891 <!-- TMPL_IF NAME="opadd" -->
892 <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
894 <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Cancel</a>
902 <!-- TMPL_UNLESS NAME="opadd" --><div class="yui-b">
903 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
904 </div><!-- /TMPL_UNLESS -->
906 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->