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="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->" />
147 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
148 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
149 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
150 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
151 <input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" />
152 <!--TMPL_IF Name="step"--><input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" /><!--/TMPL_IF-->
153 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
155 <!--TMPL_IF Name="step_1"-->
156 <fieldset class="rows" id="memberentry_identity">
157 <legend><!--TMPL_IF Name="I"-->Organisation <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
159 <!-- TMPL_UNLESS name="I" -->
160 <!-- TMPL_IF NAME="title_cgipopup" -->
162 <!-- TMPL_IF NAME="mandatorytitle" -->
163 <label for="btitle" class="required">
168 <!-- TMPL_VAR NAME="borrotitlepopup" -->
169 <!-- TMPL_IF NAME="mandatorytitle" --><span class="required">Required</span><!-- /TMPL_IF -->
172 <!-- /TMPL_UNLESS -->
174 <!-- TMPL_IF NAME="mandatorysurname" -->
175 <label for="surname" class="required">
177 <label for="surname">
180 <!-- TMPL_IF NAME="uppercasesurnames" -->
181 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
183 <input type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
185 <!-- TMPL_IF NAME="mandatorysurname" --><span class="required">Required</span><!-- /TMPL_IF -->
187 <!-- TMPL_UNLESS name="I" -->
189 <!-- TMPL_IF NAME="mandatoryfirstname" -->
190 <label for="firstname" class="required">
192 <label for="firstname">
195 <input type="text" id="firstname" name="firstname" size="20" value="<!-- TMPL_VAR NAME="firstname" -->" />
196 <!-- TMPL_IF NAME="mandatoryfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
199 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
200 <label for="dateofbirth" class="required">
202 <label for="dateofbirth">
204 Date of birth: </label>
206 <!-- TMPL_IF NAME="metric" -->
207 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
209 <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
212 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
213 <script language="JavaScript" type="text/javascript">
216 inputField : "dateofbirth",
217 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
218 button : "dateofbirth_button"
222 <!-- TMPL_IF NAME="mandatorydateofbirth" --><span class="required">Required</span><!-- /TMPL_IF -->
223 <!-- TMPL_IF NAME="ERROR_dateofbirth" --><span class="required">(Error)</span><!-- /TMPL_IF -->
226 <!-- TMPL_IF NAME="mandatoryinitials" -->
227 <label for="initials" class="required">
229 <label for="initials">
232 <input type="text" id="initials" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->" />
233 <!-- TMPL_IF NAME="mandatoryinitials" --><span class="required">Required</span><!-- /TMPL_IF -->
235 <!-- /TMPL_UNLESS -->
237 <!-- TMPL_IF NAME="mandatoryothernames" -->
238 <label for="othernames" class="required">
240 <label for="othernames">
243 <input type="text" id="othernames" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->" />
244 <!-- TMPL_IF NAME="mandatoryothernames" --><span class="required">Required</span><!-- /TMPL_IF -->
245 <!-- TMPL_IF NAME="I" --><input type="hidden" name="sex" value="N" /><!-- /TMPL_IF -->
247 <!--TMPL_UNLESS Name="I"-->
250 <!-- TMPL_IF NAME="female" -->
251 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
253 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
255 <!-- TMPL_IF NAME="male" -->
256 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
258 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
260 <!-- TMPL_IF NAME="none" -->
261 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
263 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
267 <!--TMPL_IF EXPR="showguarantor"--> <li><label for="">Guarantor: </label>
268 <select name="relationship" id="relationship" >
269 <!-- TMPL_LOOP name="relshiploop" -->
270 <!-- TMPL_IF name="selected" -->
271 <option value="<!-- TMPL_VAR name="relationship" -->" selected="selected" ><!-- TMPL_VAR name="relationship" --></option>
273 <option value="<!-- TMPL_VAR name="relationship" -->"><!-- TMPL_VAR name="relationship" --></option>
277 <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
278 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
279 <!-- TMPL_IF NAME="guarantorid"-->
280 <input id="guarantorsearch" type="button" value="Modify Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
282 <input id="guarantorsearch" type="button" value="Find guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
283 <!-- /TMPL_IF --> <input id="guarantordelete" type="button" value="Delete Guarantor" />
288 <fieldset class="rows">
289 <legend>Main address</legend><ol>
291 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
292 <label for="streetnumber" class="required">
294 <label for="streetnumber">
296 Street number: </label>
297 <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
298 <!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
300 <!-- TMPL_IF NAME="road_cgipopup" -->
302 <!-- TMPL_IF NAME="mandatorystreettype" -->
303 <label for="streettype" class="required">
305 <label for="streettype">
307 Street type: </label>
308 <!-- TMPL_VAR NAME="roadpopup" -->
309 <!-- TMPL_IF NAME="mandatorystreettype" --><span class="required">Required</span><!-- /TMPL_IF -->
313 <!-- TMPL_IF NAME="mandatoryaddress" -->
314 <label for="address" class="required">
316 <label for="address">
319 <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
320 <!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
323 <!-- TMPL_IF NAME="mandatoryaddress2" -->
324 <label for="address2" class="required">
326 <label for="address2">
329 <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
330 <!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
333 <!-- TMPL_IF NAME="mandatorycity" -->
334 <label for="city" class="required">
338 City, State: </label>
340 <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
341 <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong> <!-- TMPL_VAR NAME="citypopup" --><!-- /TMPL_IF -->
342 <!-- TMPL_IF NAME="mandatorycity" --><span class="required">Required</span><!-- /TMPL_IF -->
345 <!-- TMPL_IF NAME="mandatoryzipcode" -->
346 <label for="zipcode" class="required">
348 <label for="zipcode">
351 <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
352 <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
357 <fieldset class="rows" id="memberentry_contact">
358 <legend>Contact</legend><ol>
359 <!--TMPL_IF Name="C"-->
362 <!-- TMPL_IF NAME="mandatoryB_email" -->
363 <label for="B_email" class="required">
365 <label for="B_email">
367 E-mail (home): </label>
368 <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
369 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
372 <!-- TMPL_IF NAME="mandatoryphone" -->
373 <label for="phone" class="required">
377 Phone (home): </label>
378 <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
379 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
382 <!-- TMPL_IF NAME="mandatoryphonepro" -->
383 <label for="phonepro" class="required">
385 <label for="phonepro">
387 Phone (work): </label>
388 <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
389 <!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
392 <!-- TMPL_IF NAME="mandatorymobile" -->
393 <label for="mobile" class="required">
397 Phone (cell): </label>
398 <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
399 <!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
402 <!-- TMPL_IF NAME="mandatoryemail" -->
403 <label for="email" class="required">
407 E-mail (home): </label>
408 <input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->" />
409 <!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF -->
412 <!-- TMPL_IF NAME="mandatoryemailpro" -->
413 <label for="emailpro" class="required">
415 <label for="emailpro">
417 E-mail (work): </label>
418 <input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->" />
419 <!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
422 <!-- TMPL_IF NAME="mandatoryfax" -->
423 <label for="fax" class="required">
428 <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
429 <!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
435 <!-- ************************ STEP_1 *********************** -->
437 <!--TMPL_IF Name="step_2"-->
439 <fieldset class="rows" id="memberentry_address">
440 <legend>Alternate address</legend><ol>
442 <!-- TMPL_IF NAME="mandatoryB_address" -->
443 <label for="B_address" class="required">
445 <label for="B_address">
448 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
449 <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
452 <!-- TMPL_IF NAME="mandatoryB_city" -->
453 <label for="B_city" class="required" >
458 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
459 <!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
462 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
463 <label for="B_zipcode" class="required">
465 <label for="B_zipcode">
468 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
469 <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
472 <!-- TMPL_IF NAME="mandatoryB_phone" -->
473 <label for="B_phone" class="required">
475 <label for="B_phone">
478 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
479 <!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
482 <!-- TMPL_IF NAME="mandatoryB_email" -->
483 <label for="B_email" class="required">
485 <label for="B_email">
488 <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
489 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
491 <!-- TMPL_IF NAME="mandatorycontactnote" -->
492 <label for="contactnote" class="required">
494 <label for="contactnote">
496 Contact note: </label>
497 <textarea id="contactnote" name="contactnote" cols="40" rows="2"><!-- TMPL_VAR NAME="contactnote" --></textarea>
498 <!-- TMPL_IF NAME="mandatorycontactnote" --><span class="required">Required</span><!-- /TMPL_IF -->
502 <fieldset class="rows" id="memberentry_altaddress">
503 <legend>Alternate Contact</legend><ol>
505 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" -->
506 <label for="altcontactfirstname" class="required">
508 <label for="altcontactfirstname">
511 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->" />
512 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
515 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" -->
516 <label for="altcontactsurname" class="required">
518 <label for="altcontactsurname">
521 <input type="text" name="altcontactsurname" id="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->" />
522 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
525 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" -->
526 <label for="altcontactaddress1" class="required">
528 <label for="altcontactaddress1">
530 Address line 1:</label>
531 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->" size="40" />
532 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
535 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" -->
536 <label for="altcontactaddress2" class="required">
538 <label for="altcontactaddress2">
540 Address line 2:</label>
541 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->" size="40" />
542 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
545 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" -->
546 <label for="altcontactaddress3" class="required">
548 <label for="altcontactaddress3">
551 <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->" size="40" />
552 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
555 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" -->
556 <label for="altcontactzipcode" class="required">
558 <label for="altcontactzipcode">
560 ZIP/Post code:</label>
561 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->" size="5" />
562 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
565 <!-- TMPL_IF NAME="mandatoryaltcontactphone" -->
566 <label for="altcontactphone" class="required">
568 <label for="altcontactphone">
571 <input type="text" name="altcontactphone" id="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->" />
572 <!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
578 <!-- TMPL_IF NAME="I" -->
579 <!-- TMPL_IF NAME="memberofinstution" -->
580 <fieldset class="rows" id="memberentry_organisation">
581 <legend>Organisations</legend><ol>
583 <!-- TMPL_IF NAME="mandatoryphone" -->
584 <label for="organisations" class="required">
586 <label for="organisations">
588 Organisation(s): </label>
589 <!-- TMPL_VAR NAME="CGIorganisations" -->
590 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
598 <!--TMPL_IF Name="step_3"-->
600 <fieldset class="rows" id="memberentry_library_management">
601 <legend>Library Management</legend><ol>
602 <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
603 <label for="cardnumber" class="required">
605 <label for="cardnumber">
607 Card number: </label>
608 <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
609 <!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
611 <!-- TMPL_IF NAME="mandatorybranchcode" -->
612 <label for="branchcode" class="required">
614 <label for="branchcode">
617 <!-- TMPL_VAR NAME="CGIbranch" -->
618 <!-- TMPL_IF NAME="mandatorybranchcode" --><span class="required">Required</span><!-- /TMPL_IF -->
621 <!-- TMPL_IF NAME="typeloop" -->
622 <label for="categorycode">Category: </label>
623 <select id="categorycode" name="categorycode">
624 <!-- TMPL_LOOP NAME="typeloop" -->
625 <!-- TMPL_IF EXPR="typename eq 'C'" --><optgroup label="Child"><!-- /TMPL_IF -->
626 <!-- TMPL_IF EXPR="typename eq 'A'" --><optgroup label="Adult"><!-- /TMPL_IF -->
627 <!-- TMPL_IF EXPR="typename eq 'S'" --><optgroup label="Staff"><!-- /TMPL_IF -->
628 <!-- TMPL_IF EXPR="typename eq 'I'" --><optgroup label="Organisation"><!-- /TMPL_IF -->
629 <!-- TMPL_IF EXPR="typename eq 'P'" --><optgroup label="Professional"><!-- /TMPL_IF -->
630 <!-- TMPL_IF EXPR="typename eq 'X'" --><optgroup label="Statistical"><!-- /TMPL_IF -->
631 <!-- TMPL_LOOP NAME="categoryloop" -->
632 <!-- TMPL_IF NAME="categorycodeselected" -->
633 <option value="<!-- TMPL_VAR NAME="categorycode" -->" selected="selected"><!-- TMPL_VAR NAME="categoryname" --></option>
635 <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
642 <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>
643 <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
647 <!-- TMPL_IF NAME="mandatorysort1" -->
648 <label for="sort1" class="required">
653 <!--TMPL_IF NAME="CGIsort1" -->
654 <!-- TMPL_VAR NAME="CGIsort1" -->
656 <input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
657 <!-- TMPL_IF NAME="mandatorysort1" --><span class="required">Required</span><!-- /TMPL_IF -->
661 <!-- TMPL_IF NAME="mandatorysort2" -->
662 <label for="sort2" class="required">
667 <!--TMPL_IF NAME="CGIsort2" -->
668 <!-- TMPL_VAR NAME="CGIsort2" -->
670 <input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" />
671 <!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
676 <fieldset class="rows" id="memberentry_subscription">
677 <legend>Library set-up</legend><ol>
679 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
680 <label for="dateenrolled" class="required">
682 <label for="dateenrolled">
684 Registration date: </label>
685 <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" -->" />
686 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
687 <script language="JavaScript" type="text/javascript">
690 inputField : "dateenrolled",
691 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
692 button : "dateenrolled_button"
696 <!-- TMPL_IF NAME="mandatorydateenrolled" --><span class="required">Required</span><!-- /TMPL_IF -->
697 <!-- TMPL_IF NAME="ERROR_dateenrolled" --><span class="required">(Error)</span><!-- /TMPL_IF -->
700 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
701 <label for="dateexpiry" class="required">
703 <label for="dateexpiry">
705 Expiry date: </label>
706 <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" -->" />
707 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
708 <script language="JavaScript" type="text/javascript">
711 inputField : "dateexpiry",
712 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
713 button : "dateexpiry_button"
717 <!-- TMPL_IF NAME="mandatorydateexpiry" --><span class="required">Required</span><!-- /TMPL_IF -->
718 <!-- TMPL_IF NAME="ERROR_dateexpiry" --><span class="required">(Error)</span><!-- /TMPL_IF -->
721 <!-- TMPL_IF NAME="mandatoryopacnote" -->
722 <label for="opacnote" class="required">
724 <label for="opacnote">
727 <textarea id="opacnote" name="opacnote" cols="55" rows="5"><!-- TMPL_VAR NAME="opacnote" --></textarea>
728 <!-- TMPL_IF NAME="mandatoryopacnote" --><span class="required">Required</span><!-- /TMPL_IF -->
731 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
732 <label for="borrowernotes" class="required">
734 <label for="borrowernotes">
736 Library note: </label>
737 <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
738 <!-- TMPL_IF NAME="mandatoryborrowernotes" --><span class="required">Required</span><!-- /TMPL_IF -->
742 <fieldset class="rows" id="memberentry_userid">
743 <legend>OPAC login</legend><ol>
745 <!-- TMPL_IF NAME="mandatoryuserid" -->
746 <label for="userid" class="required">
752 <!-- TMPL_IF NAME="NoUpdateLogin" -->
753 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="userid" -->" />
755 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
758 <!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
761 <!-- TMPL_IF NAME="mandatorypassword" -->
762 <label for="password" class="required">
764 <label for="password">
767 <!--TMPL_IF NAME="opadd"-->
768 <!-- TMPL_IF NAME="NoUpdateLogin" -->
769 <input type="text" id="password" name="password" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="password" -->" />
771 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
774 <!--TMPL_IF NAME="password"-->
775 <!-- TMPL_IF NAME="NoUpdateLogin" -->
776 <input type="text" id="password" name="password" size="20" disabled="disabled" value="****" />
778 <input type="text" id="password" name="password" size="20" value="****" />
781 <!-- TMPL_IF NAME="NoUpdateLogin" -->
782 <input type="text" id="password" name="password" size="20" disabled="disabled" value="" />
784 <input type="text" id="password" name="password" size="20" value="" />
788 <!-- TMPL_IF NAME="mandatorypassword" --><span class="required">Required</span><!-- /TMPL_IF -->
791 <!--this zones are not necessary in modif mode -->
792 <!-- TMPL_UNLESS NAME="opadd" -->
793 <fieldset class="rows">
794 <legend>Patron Account Flags</legend>
796 <!-- TMPL_LOOP NAME="flagloop" -->
797 <li><label class="radio" for="yes<!-- TMPL_VAR name="name" -->">
798 <!-- TMPL_IF EXPR="key eq 'gonenoaddress'" -->Gone no Address:<!-- /TMPL_IF -->
799 <!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
800 <!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
803 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
804 <!-- TMPL_IF NAME="yes" -->
805 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
807 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
810 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
811 <!-- TMPL_IF NAME="no" -->
812 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
814 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
821 <!-- /TMPL_UNLESS -->
824 <!-- TMPL_IF NAME="step_4" --><!-- TMPL_IF NAME="ExtendedPatronAttributes" -->
825 <fieldset class="rows" id="memberentry_patron_attributes">
826 <input type="hidden" name="setting_extended_patron_attributes" value="1">
827 <legend>Additional attributes and identifiers</legend>
828 <!-- TMPL_IF NAME="no_patron_attribute_types" -->
829 No patron attribute types defined.
834 <th colspan="2">Value</th>
836 <!-- TMPL_LOOP NAME='patron_attributes' -->
838 <td><!-- TMPL_VAR NAME="code" --> (<!-- TMPL_VAR NAME="description" -->)
841 <input type="hidden" id="<!-- TMPL_VAR NAME="form_id" -->_code" name="<!-- TMPL_VAR NAME="form_id" -->_code"
842 value="<!-- TMPL_VAR NAME="code" -->" />
843 <!-- TMPL_IF NAME="use_dropdown" -->
844 <select id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->">
846 <!-- TMPL_LOOP NAME="auth_val_loop" -->
847 <!-- TMPL_IF NAME="selected" -->
848 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected">
849 <!-- TMPL_VAR NAME="lib" -->
852 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" >
853 <!-- TMPL_VAR NAME="lib" -->
859 <input type="text" maxlength="30" value="<!-- TMPL_VAR NAME="value" -->"
860 id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->" />
862 <!-- TMPL_IF NAME="password_allowed" -->
863 (Password: <input type="password" maxlength="30" value="<!-- TMPL_VAR NAME="password" -->"
864 id="<!-- TMPL_VAR NAME="form_id" -->_password" name="<!-- TMPL_VAR NAME="form_id" -->_password" />)
868 <a href="#" onclick="clear_entry(this); return false;">Clear</a>
869 <!-- TMPL_IF NAME="repeatable" -->
870 <a href="#" onclick="clone_entry(this); return false;">New</a>
878 <!-- /TMPL_IF--><!-- /TMPL_IF -->
880 <fieldset class="action">
881 <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
882 <!-- TMPL_IF NAME="opadd" -->
883 <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
885 <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Cancel</a>
893 <!-- TMPL_UNLESS NAME="opadd" --><div class="yui-b">
894 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
895 </div><!-- /TMPL_UNLESS -->
897 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->