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 $("#contact-details").hide().find('a').remove();
12 $("#guarantorid, #contactname, #contactfirstname").each(function () { this.value = "" });
13 $("#contactname, #contactfirstname")
14 .each(function () { this.type = 'text' })
15 .parent().find('span').remove();
16 $("#guarantorsearch").val("Set to Patron");
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;
26 function clear_entry(node) {
27 var original = node.parentNode.parentNode;
28 $("input", original).attr('value', '');
29 $("select", original).attr('value', '');
32 function clone_entry(node) {
33 var original = node.parentNode.parentNode;
34 var clone = original.cloneNode(true);
35 var newId = 50 + parseInt(Math.random() * 100000);
36 $("input", clone).attr('id', function() {
37 return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
39 $("input", clone).attr('name', function() {
40 return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
42 $("select", clone).attr('id', function() {
43 return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
45 $("select", clone).attr('name', function() {
46 return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
48 original.parentNode.insertBefore(clone, original.nextSibling);
55 <!-- TMPL_INCLUDE NAME="header.inc" -->
56 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
58 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> ›
59 <!-- TMPL_IF NAME="opadd" -->
60 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 -->
61 <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
63 <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 -->
64 </strong><!-- /TMPL_IF --></div>
66 <!-- TMPL_IF NAME="opadd" --><div id="doc" class="yui-t7"><!-- TMPL_ELSE --><div id="doc3" class="yui-t2"><!-- /TMPL_IF -->
73 <!-- TMPL_IF NAME="opadd" -->
75 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" -->
79 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 -->
80 <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
84 <!-- TMPL_IF NAME="check_member" -->
86 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
87 <div class="dialog error">
88 <h3>Duplicate suspected</h3>
89 <a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >Detail</a>
91 <a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->&category_type=<!--TMPL_VAR NAME="check_categorytype"-->">Yes</a>
92 No, it is not
93 <!-- TMPL_IF NAME="checked"-->
94 <input type="checkbox" checked="checked" name="answernodouble" >
96 <input type="checkbox" name="answernodouble" />
103 <!-- TMPL_IF Name="debug" -->
105 <div>Debug is on (level <!-- TMPL_VAR NAME="debug" -->)</div>
108 <!-- TMPL_IF Name="nok" -->
109 <div class="dialog error">
110 <p>The following fields are wrong. Please fix them.</p>
112 <!-- TMPL_IF NAME="ERROR_login_exist" -->
113 <li id="ERROR_login_exist">Login/password already exists.</li>
115 <!-- TMPL_IF NAME="ERROR_cardnumber" -->
116 <li id="ERROR_cardnumber">Cardnumber already in use.</li>
118 <!-- TMPL_IF NAME="ERROR_age_limitations" -->
119 <li id="ERROR_age_limitations">Patron's age is incorrect for their category.
120 Ages allowed are <!-- TMPL_VAR NAME="ERROR_age_limitations"-->.</li>
122 <!-- TMPL_IF NAME="ERROR_branch" -->
123 <li id="ERROR_branch">Library is invalid.</li>
125 <!-- TMPL_IF NAME="ERROR_dateofbirth" -->
126 <li id="ERROR_dateofbirth">Date of birth is invalid.</li>
128 <!-- TMPL_IF NAME="ERROR_dateenrolled" -->
129 <li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
131 <!-- TMPL_IF NAME="ERROR_dateexpiry" -->
132 <li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
134 <!-- TMPL_IF NAME="ERROR_extended_unique_id_failed" -->
135 <li id="ERROR_extended_unique_id_failed">The attribute value
136 <!-- TMPL_VAR NAME="ERROR_extended_unique_id_failed" --> is already is use by another patron record.</li>
143 <form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post">
144 <!-- field always hidden in different form (1,2,3) -->
145 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
146 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
147 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
148 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
149 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
150 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
151 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
152 <input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" />
153 <!--TMPL_IF Name="step"--><input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" /><!--/TMPL_IF-->
154 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
156 <!--TMPL_IF Name="step_1"-->
157 <fieldset class="rows" id="memberentry_identity">
158 <legend><!--TMPL_IF Name="I"-->Organisation <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
160 <!-- TMPL_UNLESS name="I" -->
161 <!-- TMPL_IF NAME="title_cgipopup" -->
163 <!-- TMPL_IF NAME="mandatorytitle" -->
164 <label for="btitle" class="required">
169 <!-- TMPL_VAR NAME="borrotitlepopup" -->
170 <!-- TMPL_IF NAME="mandatorytitle" --><span class="required">Required</span><!-- /TMPL_IF -->
173 <!-- /TMPL_UNLESS -->
175 <!-- TMPL_IF NAME="mandatorysurname" -->
176 <label for="surname" class="required">
178 <label for="surname">
181 <!-- TMPL_IF NAME="uppercasesurnames" -->
182 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
184 <input type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
186 <!-- TMPL_IF NAME="mandatorysurname" --><span class="required">Required</span><!-- /TMPL_IF -->
188 <!-- TMPL_UNLESS name="I" -->
190 <!-- TMPL_IF NAME="mandatoryfirstname" -->
191 <label for="firstname" class="required">
193 <label for="firstname">
196 <input type="text" id="firstname" name="firstname" size="20" value="<!-- TMPL_VAR NAME="firstname" -->" />
197 <!-- TMPL_IF NAME="mandatoryfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
200 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
201 <label for="dateofbirth" class="required">
203 <label for="dateofbirth">
205 Date of birth: </label>
207 <!-- TMPL_IF NAME="metric" -->
208 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
210 <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
213 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
214 <script language="JavaScript" type="text/javascript">
217 inputField : "dateofbirth",
218 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
219 button : "dateofbirth_button"
223 <!-- TMPL_IF NAME="mandatorydateofbirth" --><span class="required">Required</span><!-- /TMPL_IF -->
224 <!-- TMPL_IF NAME="ERROR_dateofbirth" --><span class="required">(Error)</span><!-- /TMPL_IF -->
227 <!-- TMPL_IF NAME="mandatoryinitials" -->
228 <label for="initials" class="required">
230 <label for="initials">
233 <input type="text" id="initials" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->" />
234 <!-- TMPL_IF NAME="mandatoryinitials" --><span class="required">Required</span><!-- /TMPL_IF -->
236 <!-- /TMPL_UNLESS -->
238 <!-- TMPL_IF NAME="mandatoryothernames" -->
239 <label for="othernames" class="required">
241 <label for="othernames">
244 <input type="text" id="othernames" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->" />
245 <!-- TMPL_IF NAME="mandatoryothernames" --><span class="required">Required</span><!-- /TMPL_IF -->
246 <!-- TMPL_IF NAME="I" --><input type="hidden" name="sex" value="N" /><!-- /TMPL_IF -->
248 <!--TMPL_UNLESS Name="I"-->
251 <!-- TMPL_IF NAME="female" -->
252 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
254 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
256 <!-- TMPL_IF NAME="male" -->
257 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
259 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
261 <!-- TMPL_IF NAME="none" -->
262 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
264 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
271 <!--TMPL_IF Name="showguarantor"--><input type="hidden" id="guarantorid" name="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->" />
272 <fieldset class="rows">
273 <legend>Guarantor Information</legend>
275 <!-- TMPL_IF NAME="guarantorid" -->
276 <li id="contact-details">
278 <li id="contact-details" style="display: none">
280 <span class="label">Patron #:</span> <!-- TMPL_IF NAME="guarantorid" --> <a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="guarantorid" -->" target="blank"><!-- TMPL_VAR NAME="guarantorid" --></a><!-- /TMPL_IF -->
283 <label for="contactname">Surname: </label>
284 <!-- TMPL_IF NAME="guarantorid" -->
285 <span><!-- TMPL_VAR NAME="contactname" --></span>
286 <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
288 <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
292 <label for="contactfirstname">First name: </label>
293 <!-- TMPL_IF NAME="guarantorid" -->
294 <span><!-- TMPL_VAR NAME="contactfirstname" --></span>
295 <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
297 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
300 <!-- TMPL_IF name="relshiploop" -->
302 <label for="relationship">Relationship: </label>
303 <select name="relationship" id="relationship" >
304 <!-- TMPL_LOOP name="relshiploop" -->
305 <!-- TMPL_IF name="selected" -->
306 <option value="<!-- TMPL_VAR name="relationship" -->" selected="selected" ><!-- TMPL_VAR name="relationship" --></option>
308 <option value="<!-- TMPL_VAR name="relationship" -->"><!-- TMPL_VAR name="relationship" --></option>
315 <span class="label"> </span>
316 <!-- TMPL_IF NAME="guarantorid" -->
317 <input id="guarantorsearch" type="button" value="Change" onclick="Dopopguarantor('guarantor_search.pl');" />
319 <input id="guarantorsearch" type="button" value="Set to Patron" onclick="Dopopguarantor('guarantor_search.pl');" />
321 <input id="guarantordelete" type="button" value="Delete" />
327 <fieldset class="rows">
328 <legend>Main address</legend><ol>
330 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
331 <label for="streetnumber" class="required">
333 <label for="streetnumber">
335 Street number: </label>
336 <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
337 <!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
339 <!-- TMPL_IF NAME="road_cgipopup" -->
341 <!-- TMPL_IF NAME="mandatorystreettype" -->
342 <label for="streettype" class="required">
344 <label for="streettype">
346 Street type: </label>
347 <!-- TMPL_VAR NAME="roadpopup" -->
348 <!-- TMPL_IF NAME="mandatorystreettype" --><span class="required">Required</span><!-- /TMPL_IF -->
352 <!-- TMPL_IF NAME="mandatoryaddress" -->
353 <label for="address" class="required">
355 <label for="address">
358 <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
359 <!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
362 <!-- TMPL_IF NAME="mandatoryaddress2" -->
363 <label for="address2" class="required">
365 <label for="address2">
368 <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
369 <!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
372 <!-- TMPL_IF NAME="mandatorycity" -->
373 <label for="city" class="required">
377 City, State: </label>
379 <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
380 <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong> <!-- TMPL_VAR NAME="citypopup" --><!-- /TMPL_IF -->
381 <!-- TMPL_IF NAME="mandatorycity" --><span class="required">Required</span><!-- /TMPL_IF -->
384 <!-- TMPL_IF NAME="mandatoryzipcode" -->
385 <label for="zipcode" class="required">
387 <label for="zipcode">
390 <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
391 <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
396 <fieldset class="rows" id="memberentry_contact">
397 <legend>Contact</legend><ol>
398 <!--TMPL_IF Name="C"-->
401 <!-- TMPL_IF NAME="mandatoryB_email" -->
402 <label for="B_email" class="required">
404 <label for="B_email">
406 E-mail (home): </label>
407 <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
408 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
411 <!-- TMPL_IF NAME="mandatoryphone" -->
412 <label for="phone" class="required">
416 Phone (home): </label>
417 <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
418 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
421 <!-- TMPL_IF NAME="mandatoryphonepro" -->
422 <label for="phonepro" class="required">
424 <label for="phonepro">
426 Phone (work): </label>
427 <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
428 <!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
431 <!-- TMPL_IF NAME="mandatorymobile" -->
432 <label for="mobile" class="required">
436 Phone (cell): </label>
437 <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
438 <!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
441 <!-- TMPL_IF NAME="mandatoryemail" -->
442 <label for="email" class="required">
446 E-mail (home): </label>
447 <input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->" />
448 <!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF -->
451 <!-- TMPL_IF NAME="mandatoryemailpro" -->
452 <label for="emailpro" class="required">
454 <label for="emailpro">
456 E-mail (work): </label>
457 <input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->" />
458 <!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
461 <!-- TMPL_IF NAME="mandatoryfax" -->
462 <label for="fax" class="required">
467 <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
468 <!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
474 <!-- ************************ STEP_1 *********************** -->
476 <!--TMPL_IF Name="step_2"-->
478 <fieldset class="rows" id="memberentry_address">
479 <legend>Alternate address</legend><ol>
481 <!-- TMPL_IF NAME="mandatoryB_address" -->
482 <label for="B_address" class="required">
484 <label for="B_address">
487 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
488 <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
491 <!-- TMPL_IF NAME="mandatoryB_city" -->
492 <label for="B_city" class="required" >
497 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
498 <!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
501 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
502 <label for="B_zipcode" class="required">
504 <label for="B_zipcode">
507 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
508 <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
511 <!-- TMPL_IF NAME="mandatoryB_phone" -->
512 <label for="B_phone" class="required">
514 <label for="B_phone">
517 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
518 <!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
521 <!-- TMPL_IF NAME="mandatoryB_email" -->
522 <label for="B_email" class="required">
524 <label for="B_email">
527 <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
528 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
530 <!-- TMPL_IF NAME="mandatorycontactnote" -->
531 <label for="contactnote" class="required">
533 <label for="contactnote">
535 Contact note: </label>
536 <textarea id="contactnote" name="contactnote" cols="40" rows="2"><!-- TMPL_VAR NAME="contactnote" --></textarea>
537 <!-- TMPL_IF NAME="mandatorycontactnote" --><span class="required">Required</span><!-- /TMPL_IF -->
541 <fieldset class="rows" id="memberentry_altaddress">
542 <legend>Alternate Contact</legend><ol>
544 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" -->
545 <label for="altcontactfirstname" class="required">
547 <label for="altcontactfirstname">
550 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->" />
551 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
554 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" -->
555 <label for="altcontactsurname" class="required">
557 <label for="altcontactsurname">
560 <input type="text" name="altcontactsurname" id="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->" />
561 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
564 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" -->
565 <label for="altcontactaddress1" class="required">
567 <label for="altcontactaddress1">
569 Address line 1:</label>
570 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->" size="40" />
571 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
574 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" -->
575 <label for="altcontactaddress2" class="required">
577 <label for="altcontactaddress2">
579 Address line 2:</label>
580 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->" size="40" />
581 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
584 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" -->
585 <label for="altcontactaddress3" class="required">
587 <label for="altcontactaddress3">
590 <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->" size="40" />
591 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
594 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" -->
595 <label for="altcontactzipcode" class="required">
597 <label for="altcontactzipcode">
599 ZIP/Post code:</label>
600 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->" size="5" />
601 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
604 <!-- TMPL_IF NAME="mandatoryaltcontactphone" -->
605 <label for="altcontactphone" class="required">
607 <label for="altcontactphone">
610 <input type="text" name="altcontactphone" id="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->" />
611 <!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
617 <!-- TMPL_IF NAME="I" -->
618 <!-- TMPL_IF NAME="memberofinstution" -->
619 <fieldset class="rows" id="memberentry_organisation">
620 <legend>Organisations</legend><ol>
622 <!-- TMPL_IF NAME="mandatoryphone" -->
623 <label for="organisations" class="required">
625 <label for="organisations">
627 Organisation(s): </label>
628 <!-- TMPL_VAR NAME="CGIorganisations" -->
629 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
637 <!--TMPL_IF Name="step_3"-->
639 <fieldset class="rows" id="memberentry_library_management">
640 <legend>Library Management</legend><ol>
641 <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
642 <label for="cardnumber" class="required">
644 <label for="cardnumber">
646 Card number: </label>
647 <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
648 <!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
650 <!-- TMPL_IF NAME="mandatorybranchcode" -->
651 <label for="branchcode" class="required">
653 <label for="branchcode">
656 <!-- TMPL_VAR NAME="CGIbranch" -->
657 <!-- TMPL_IF NAME="mandatorybranchcode" --><span class="required">Required</span><!-- /TMPL_IF -->
660 <!-- TMPL_IF NAME="typeloop" -->
661 <label for="categorycode">Category: </label>
662 <select id="categorycode" name="categorycode">
663 <!-- TMPL_LOOP NAME="typeloop" -->
664 <!-- TMPL_IF EXPR="typename eq 'C'" --><optgroup label="Child"><!-- /TMPL_IF -->
665 <!-- TMPL_IF EXPR="typename eq 'A'" --><optgroup label="Adult"><!-- /TMPL_IF -->
666 <!-- TMPL_IF EXPR="typename eq 'S'" --><optgroup label="Staff"><!-- /TMPL_IF -->
667 <!-- TMPL_IF EXPR="typename eq 'I'" --><optgroup label="Organisation"><!-- /TMPL_IF -->
668 <!-- TMPL_IF EXPR="typename eq 'P'" --><optgroup label="Professional"><!-- /TMPL_IF -->
669 <!-- TMPL_IF EXPR="typename eq 'X'" --><optgroup label="Statistical"><!-- /TMPL_IF -->
670 <!-- TMPL_LOOP NAME="categoryloop" -->
671 <!-- TMPL_IF NAME="categorycodeselected" -->
672 <option value="<!-- TMPL_VAR NAME="categorycode" -->" selected="selected"><!-- TMPL_VAR NAME="categoryname" --></option>
674 <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
681 <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>
682 <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
686 <!-- TMPL_IF NAME="mandatorysort1" -->
687 <label for="sort1" class="required">
692 <!--TMPL_IF NAME="CGIsort1" -->
693 <!-- TMPL_VAR NAME="CGIsort1" -->
695 <input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
696 <!-- TMPL_IF NAME="mandatorysort1" --><span class="required">Required</span><!-- /TMPL_IF -->
700 <!-- TMPL_IF NAME="mandatorysort2" -->
701 <label for="sort2" class="required">
706 <!--TMPL_IF NAME="CGIsort2" -->
707 <!-- TMPL_VAR NAME="CGIsort2" -->
709 <input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" />
710 <!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
715 <fieldset class="rows" id="memberentry_subscription">
716 <legend>Library set-up</legend><ol>
718 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
719 <label for="dateenrolled" class="required">
721 <label for="dateenrolled">
723 Registration date: </label>
724 <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" -->" />
725 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
726 <script language="JavaScript" type="text/javascript">
729 inputField : "dateenrolled",
730 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
731 button : "dateenrolled_button"
735 <!-- TMPL_IF NAME="mandatorydateenrolled" --><span class="required">Required</span><!-- /TMPL_IF -->
736 <!-- TMPL_IF NAME="ERROR_dateenrolled" --><span class="required">(Error)</span><!-- /TMPL_IF -->
739 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
740 <label for="dateexpiry" class="required">
742 <label for="dateexpiry">
744 Expiry date (leave blank for auto calc) </label>
745 <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 -->" />
746 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
747 <script language="JavaScript" type="text/javascript">
750 inputField : "dateexpiry",
751 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
752 button : "dateexpiry_button"
756 <!-- TMPL_IF NAME="mandatorydateexpiry" --><span class="required">Required</span><!-- /TMPL_IF -->
757 <!-- TMPL_IF NAME="ERROR_dateexpiry" --><span class="required">(Error)</span><!-- /TMPL_IF -->
760 <!-- TMPL_IF NAME="mandatoryopacnote" -->
761 <label for="opacnote" class="required">
763 <label for="opacnote">
766 <textarea id="opacnote" name="opacnote" cols="55" rows="5"><!-- TMPL_VAR NAME="opacnote" --></textarea>
767 <!-- TMPL_IF NAME="mandatoryopacnote" --><span class="required">Required</span><!-- /TMPL_IF -->
770 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
771 <label for="borrowernotes" class="required">
773 <label for="borrowernotes">
775 Library note: </label>
776 <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
777 <!-- TMPL_IF NAME="mandatoryborrowernotes" --><span class="required">Required</span><!-- /TMPL_IF -->
781 <fieldset class="rows" id="memberentry_userid">
782 <legend>OPAC login</legend><ol>
784 <!-- TMPL_IF NAME="mandatoryuserid" -->
785 <label for="userid" class="required">
791 <!-- TMPL_IF NAME="NoUpdateLogin" -->
792 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="userid" -->" />
794 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
797 <!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
800 <!-- TMPL_IF NAME="mandatorypassword" -->
801 <label for="password" class="required">
803 <label for="password">
806 <!--TMPL_IF NAME="opadd"-->
807 <!-- TMPL_IF NAME="NoUpdateLogin" -->
808 <input type="text" id="password" name="password" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="password" -->" />
810 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
813 <!--TMPL_IF NAME="password"-->
814 <!-- TMPL_IF NAME="NoUpdateLogin" -->
815 <input type="text" id="password" name="password" size="20" disabled="disabled" value="****" />
817 <input type="text" id="password" name="password" size="20" value="****" />
820 <!-- TMPL_IF NAME="NoUpdateLogin" -->
821 <input type="text" id="password" name="password" size="20" disabled="disabled" value="" />
823 <input type="text" id="password" name="password" size="20" value="" />
827 <!-- TMPL_IF NAME="mandatorypassword" --><span class="required">Required</span><!-- /TMPL_IF -->
830 <!--this zones are not necessary in modif mode -->
831 <!-- TMPL_UNLESS NAME="opadd" -->
832 <fieldset class="rows">
833 <legend>Patron Account Flags</legend>
835 <!-- TMPL_LOOP NAME="flagloop" -->
836 <li><label class="radio" for="yes<!-- TMPL_VAR name="name" -->">
837 <!-- TMPL_IF EXPR="key eq 'gonenoaddress'" -->Gone no Address:<!-- /TMPL_IF -->
838 <!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
839 <!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
842 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
843 <!-- TMPL_IF NAME="yes" -->
844 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
846 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
849 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
850 <!-- TMPL_IF NAME="no" -->
851 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
853 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
860 <!-- /TMPL_UNLESS -->
863 <!-- TMPL_IF NAME="step_4" --><!-- TMPL_IF NAME="ExtendedPatronAttributes" -->
864 <fieldset class="rows" id="memberentry_patron_attributes">
865 <input type="hidden" name="setting_extended_patron_attributes" value="1">
866 <legend>Additional attributes and identifiers</legend>
867 <!-- TMPL_IF NAME="no_patron_attribute_types" -->
868 No patron attribute types defined.
873 <th colspan="2">Value</th>
875 <!-- TMPL_LOOP NAME='patron_attributes' -->
877 <td><!-- TMPL_VAR NAME="code" --> (<!-- TMPL_VAR NAME="description" -->)
880 <input type="hidden" id="<!-- TMPL_VAR NAME="form_id" -->_code" name="<!-- TMPL_VAR NAME="form_id" -->_code"
881 value="<!-- TMPL_VAR NAME="code" -->" />
882 <!-- TMPL_IF NAME="use_dropdown" -->
883 <select id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->">
885 <!-- TMPL_LOOP NAME="auth_val_loop" -->
886 <!-- TMPL_IF NAME="selected" -->
887 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected">
888 <!-- TMPL_VAR NAME="lib" -->
891 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" >
892 <!-- TMPL_VAR NAME="lib" -->
898 <input type="text" maxlength="30" value="<!-- TMPL_VAR NAME="value" -->"
899 id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->" />
901 <!-- TMPL_IF NAME="password_allowed" -->
902 (Password: <input type="password" maxlength="30" value="<!-- TMPL_VAR NAME="password" -->"
903 id="<!-- TMPL_VAR NAME="form_id" -->_password" name="<!-- TMPL_VAR NAME="form_id" -->_password" />)
907 <a href="#" onclick="clear_entry(this); return false;">Clear</a>
908 <!-- TMPL_IF NAME="repeatable" -->
909 <a href="#" onclick="clone_entry(this); return false;">New</a>
917 <!-- /TMPL_IF--><!-- /TMPL_IF -->
919 <fieldset class="action">
920 <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
921 <!-- TMPL_IF NAME="opadd" -->
922 <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
924 <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Cancel</a>
932 <!-- TMPL_UNLESS NAME="opadd" --><div class="yui-b">
933 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
934 </div><!-- /TMPL_UNLESS -->
936 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->