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"--> Organization 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 $("fieldset.rows input").keydown(function(e){ return checkEnter(e); });
11 $("#guarantordelete").click(function() {
12 $("#contact-details").hide().find('a').remove();
13 $("#guarantorid, #contactname, #contactfirstname").each(function () { this.value = "" });
14 $("#contactname, #contactfirstname")
15 .each(function () { this.type = 'text' })
16 .parent().find('span').remove();
17 $("#guarantorsearch").val("Set to Patron");
19 $("#select_city").change(function(){
20 var myRegEx=new RegExp(/(.*)\|(.*)/);
21 document.form.select_city.value.match(myRegEx);
22 document.form.zipcode.value=RegExp.$1;
23 document.form.city.value=RegExp.$2;
27 function clear_entry(node) {
28 var original = node.parentNode.parentNode;
29 $("input", original).attr('value', '');
30 $("select", original).attr('value', '');
33 function clone_entry(node) {
34 var original = node.parentNode.parentNode;
35 var clone = original.cloneNode(true);
36 var newId = 50 + parseInt(Math.random() * 100000);
37 $("input", clone).attr('id', function() {
38 return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
40 $("input", clone).attr('name', function() {
41 return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
43 $("select", clone).attr('id', function() {
44 return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
46 $("select", clone).attr('name', function() {
47 return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
49 original.parentNode.insertBefore(clone, original.nextSibling);
56 <!-- TMPL_INCLUDE NAME="header.inc" -->
57 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
59 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> ›
60 <!-- TMPL_IF NAME="opadd" -->
61 Add<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organization 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 <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
64 <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"--> Organization 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 -->
65 </strong><!-- /TMPL_IF --></div>
67 <!-- TMPL_IF NAME="opadd" --><div id="doc" class="yui-t7"><!-- TMPL_ELSE --><div id="doc3" class="yui-t2"><!-- /TMPL_IF -->
74 <!-- TMPL_IF NAME="opadd" -->
76 Add<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organization 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" -->
80 Modify<!--TMPL_IF Name="categoryname"--> <!--TMPL_VAR Name="categoryname"--> patron<!-- TMPL_ELSE --><!--TMPL_IF Name="I"--> Organization 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 -->
81 <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
85 <!-- TMPL_IF NAME="check_member" -->
87 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
88 <div class="dialog alert">
89 <h3>Duplicate suspected</h3>
90 <a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >Detail</a>
92 <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&borrowernumber=<!--TMPL_VAR NAME="check_member"-->&category_type=<!--TMPL_VAR NAME="check_categorytype"-->">Yes</a>
93 No, it is not
94 <!-- TMPL_IF NAME="checked"-->
95 <input type="checkbox" checked="checked" name="answernodouble" >
97 <input type="checkbox" name="answernodouble" />
104 <!-- TMPL_IF Name="debug" -->
106 <div>Debug is on (level <!-- TMPL_VAR NAME="debug" -->)</div>
109 <!-- TMPL_IF Name="nok" -->
110 <div class="dialog alert">
111 <p>The following fields are wrong. Please fix them.</p>
113 <!-- TMPL_IF NAME="ERROR_login_exist" -->
114 <li id="ERROR_login_exist">Login/password already exists.</li>
116 <!-- TMPL_IF NAME="ERROR_cardnumber" -->
117 <li id="ERROR_cardnumber">Cardnumber already in use.</li>
119 <!-- TMPL_IF NAME="ERROR_age_limitations" -->
120 <li id="ERROR_age_limitations">Patron's age is incorrect for their category.
121 Ages allowed are <!-- TMPL_VAR NAME="ERROR_age_limitations"-->.</li>
123 <!-- TMPL_IF NAME="ERROR_branch" -->
124 <li id="ERROR_branch">Library is invalid.</li>
126 <!-- TMPL_IF NAME="ERROR_dateofbirth" -->
127 <li id="ERROR_dateofbirth">Date of birth is invalid.</li>
129 <!-- TMPL_IF NAME="ERROR_dateenrolled" -->
130 <li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
132 <!-- TMPL_IF NAME="ERROR_dateexpiry" -->
133 <li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
135 <!-- TMPL_IF NAME="ERROR_short_password" -->
136 <li id="ERROR_short_password">Password must be at least <!-- TMPL_VAR NAME="minPasswordLength" --> characters long.</li>
138 <!-- TMPL_IF NAME="ERROR_extended_unique_id_failed" -->
139 <li id="ERROR_extended_unique_id_failed">The attribute value
140 <!-- TMPL_VAR NAME="ERROR_extended_unique_id_failed" --> is already is use by another patron record.</li>
147 <form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post">
148 <!-- field always hidden in different form (1,2,3) -->
149 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
150 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
151 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
152 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
153 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
154 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
155 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
156 <input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" />
157 <!--TMPL_IF Name="step"--><input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" /><!--/TMPL_IF-->
158 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
160 <!--TMPL_IF Name="step_1"-->
161 <fieldset class="rows" id="memberentry_identity">
162 <legend><!--TMPL_IF Name="I"-->Organization <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
164 <!-- TMPL_UNLESS name="I" -->
165 <!-- TMPL_IF NAME="title_cgipopup" -->
167 <!-- TMPL_IF NAME="mandatorytitle" -->
168 <label for="btitle" class="required">
173 <!-- TMPL_VAR NAME="borrotitlepopup" -->
174 <!-- TMPL_IF NAME="mandatorytitle" --><span class="required">Required</span><!-- /TMPL_IF -->
177 <!-- /TMPL_UNLESS -->
179 <!-- TMPL_IF NAME="mandatorysurname" -->
180 <label for="surname" class="required">
182 <label for="surname">
185 <!-- TMPL_IF NAME="uppercasesurnames" -->
186 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
188 <input type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
190 <!-- TMPL_IF NAME="mandatorysurname" --><span class="required">Required</span><!-- /TMPL_IF -->
192 <!-- TMPL_UNLESS name="I" -->
194 <!-- TMPL_IF NAME="mandatoryfirstname" -->
195 <label for="firstname" class="required">
197 <label for="firstname">
200 <input type="text" id="firstname" name="firstname" size="20" value="<!-- TMPL_VAR NAME="firstname" -->" />
201 <!-- TMPL_IF NAME="mandatoryfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
204 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
205 <label for="dateofbirth" class="required">
207 <label for="dateofbirth">
209 Date of birth: </label>
211 <!-- TMPL_IF NAME="metric" -->
212 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
214 <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
217 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
218 <script language="JavaScript" type="text/javascript">
221 inputField : "dateofbirth",
222 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
223 button : "dateofbirth_button"
227 <!-- TMPL_IF NAME="mandatorydateofbirth" --><span class="required">Required</span><!-- /TMPL_IF -->
228 <!-- TMPL_IF NAME="ERROR_dateofbirth" --><span class="required">(Error)</span><!-- /TMPL_IF -->
231 <!-- TMPL_IF NAME="mandatoryinitials" -->
232 <label for="initials" class="required">
234 <label for="initials">
237 <input type="text" id="initials" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->" />
238 <!-- TMPL_IF NAME="mandatoryinitials" --><span class="required">Required</span><!-- /TMPL_IF -->
240 <!-- /TMPL_UNLESS -->
242 <!-- TMPL_IF NAME="mandatoryothernames" -->
243 <label for="othernames" class="required">
245 <label for="othernames">
248 <input type="text" id="othernames" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->" />
249 <!-- TMPL_IF NAME="mandatoryothernames" --><span class="required">Required</span><!-- /TMPL_IF -->
250 <!-- TMPL_IF NAME="I" --><input type="hidden" name="sex" value="N" /><!-- /TMPL_IF -->
252 <!--TMPL_UNLESS Name="I"-->
255 <!-- TMPL_IF NAME="female" -->
256 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
258 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
260 <!-- TMPL_IF NAME="male" -->
261 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
263 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
265 <!-- TMPL_IF NAME="none" -->
266 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
268 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
275 <!--TMPL_IF Name="showguarantor"--><input type="hidden" id="guarantorid" name="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->" />
276 <fieldset class="rows">
277 <legend>Guarantor Information</legend>
279 <!--TMPL_IF Name="P"-->
280 <!-- TMPL_IF NAME="guarantorid" -->
281 <li id="contact-details">
283 <li id="contact-details" style="display: none">
285 <span class="label">Organization #:</span> <!-- TMPL_IF NAME="guarantorid" --> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="guarantorid" -->" target="blank"><!-- TMPL_VAR NAME="guarantorid" --></a><!-- /TMPL_IF -->
288 <label for="contactname">Organization name: </label>
289 <!-- TMPL_IF NAME="guarantorid" -->
290 <span><!-- TMPL_VAR NAME="contactname" --></span>
291 <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
293 <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
297 <!-- TMPL_IF NAME="C" -->
298 <!-- TMPL_IF NAME="guarantorid" -->
299 <li id="contact-details">
301 <li id="contact-details" style="display: none">
303 <span class="label">Patron #:</span> <!-- TMPL_IF NAME="guarantorid" --> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="guarantorid" -->" target="blank"><!-- TMPL_VAR NAME="guarantorid" --></a><!-- /TMPL_IF -->
306 <label for="contactname">Surname: </label>
307 <!-- TMPL_IF NAME="guarantorid" -->
308 <span><!-- TMPL_VAR NAME="contactname" --></span>
309 <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
311 <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
315 <label for="contactfirstname">First name: </label>
316 <!-- TMPL_IF NAME="guarantorid" -->
317 <span><!-- TMPL_VAR NAME="contactfirstname" --></span>
318 <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
320 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
323 <!-- TMPL_IF name="relshiploop" -->
325 <label for="relationship">Relationship: </label>
326 <select name="relationship" id="relationship" >
327 <!-- TMPL_LOOP name="relshiploop" -->
328 <!-- TMPL_IF name="selected" -->
329 <option value="<!-- TMPL_VAR name="relationship" -->" selected="selected" ><!-- TMPL_VAR name="relationship" --></option>
331 <option value="<!-- TMPL_VAR name="relationship" -->"><!-- TMPL_VAR name="relationship" --></option>
340 <span class="label"> </span>
341 <!-- TMPL_IF NAME="guarantorid" -->
342 <input id="guarantorsearch" type="button" value="Change" onclick="Dopopguarantor('guarantor_search.pl');" />
344 <input id="guarantorsearch" type="button" value="Set to Patron" onclick="Dopopguarantor('guarantor_search.pl');" />
346 <input id="guarantordelete" type="button" value="Delete" />
352 <fieldset class="rows">
353 <legend>Main address</legend><ol>
355 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
356 <label for="streetnumber" class="required">
358 <label for="streetnumber">
360 Street number: </label>
361 <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
362 <!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
364 <!-- TMPL_IF NAME="road_cgipopup" -->
366 <!-- TMPL_IF NAME="mandatorystreettype" -->
367 <label for="streettype" class="required">
369 <label for="streettype">
371 Street type: </label>
372 <!-- TMPL_VAR NAME="roadpopup" -->
373 <!-- TMPL_IF NAME="mandatorystreettype" --><span class="required">Required</span><!-- /TMPL_IF -->
377 <!-- TMPL_IF NAME="mandatoryaddress" -->
378 <label for="address" class="required">
380 <label for="address">
383 <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
384 <!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
387 <!-- TMPL_IF NAME="mandatoryaddress2" -->
388 <label for="address2" class="required">
390 <label for="address2">
393 <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
394 <!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
397 <!-- TMPL_IF NAME="mandatorycity" -->
398 <label for="city" class="required">
402 City, State: </label>
404 <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
405 <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong> <!-- TMPL_VAR NAME="citypopup" --><!-- /TMPL_IF -->
406 <!-- TMPL_IF NAME="mandatorycity" --><span class="required">Required</span><!-- /TMPL_IF -->
409 <!-- TMPL_IF NAME="mandatoryzipcode" -->
410 <label for="zipcode" class="required">
412 <label for="zipcode">
415 <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
416 <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
421 <fieldset class="rows" id="memberentry_contact">
422 <legend>Contact</legend><ol>
424 <!-- TMPL_IF NAME="mandatoryphone" -->
425 <label for="phone" class="required">
429 Phone (home): </label>
430 <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
431 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
434 <!-- TMPL_IF NAME="mandatoryphonepro" -->
435 <label for="phonepro" class="required">
437 <label for="phonepro">
439 Phone (work): </label>
440 <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
441 <!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
444 <!-- TMPL_IF NAME="mandatorymobile" -->
445 <label for="mobile" class="required">
449 Phone (cell): </label>
450 <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
451 <!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
454 <!-- TMPL_IF NAME="mandatoryemail" -->
455 <label for="email" class="required">
459 Email (home): </label>
460 <input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->" />
461 <!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF -->
464 <!-- TMPL_IF NAME="mandatoryemailpro" -->
465 <label for="emailpro" class="required">
467 <label for="emailpro">
469 Email (work): </label>
470 <input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->" />
471 <!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
474 <!-- TMPL_IF NAME="mandatoryfax" -->
475 <label for="fax" class="required">
480 <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
481 <!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
487 <!-- ************************ STEP_1 *********************** -->
489 <!--TMPL_IF Name="step_2"-->
491 <fieldset class="rows" id="memberentry_address">
492 <legend>Alternate address</legend><ol>
494 <!-- TMPL_IF NAME="mandatoryB_address" -->
495 <label for="B_address" class="required">
497 <label for="B_address">
500 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
501 <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
504 <!-- TMPL_IF NAME="mandatoryB_city" -->
505 <label for="B_city" class="required" >
510 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
511 <!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
514 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
515 <label for="B_zipcode" class="required">
517 <label for="B_zipcode">
520 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
521 <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
524 <!-- TMPL_IF NAME="mandatoryB_phone" -->
525 <label for="B_phone" class="required">
527 <label for="B_phone">
530 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
531 <!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
534 <!-- TMPL_IF NAME="mandatoryB_email" -->
535 <label for="B_email" class="required">
537 <label for="B_email">
540 <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
541 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
543 <!-- TMPL_IF NAME="mandatorycontactnote" -->
544 <label for="contactnote" class="required">
546 <label for="contactnote">
548 Contact note: </label>
549 <textarea id="contactnote" name="contactnote" cols="40" rows="2"><!-- TMPL_VAR NAME="contactnote" --></textarea>
550 <!-- TMPL_IF NAME="mandatorycontactnote" --><span class="required">Required</span><!-- /TMPL_IF -->
554 <fieldset class="rows" id="memberentry_altaddress">
555 <legend>Alternate Contact</legend><ol>
557 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" -->
558 <label for="altcontactfirstname" class="required">
560 <label for="altcontactfirstname">
563 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->" />
564 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
567 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" -->
568 <label for="altcontactsurname" class="required">
570 <label for="altcontactsurname">
573 <input type="text" name="altcontactsurname" id="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->" />
574 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
577 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" -->
578 <label for="altcontactaddress1" class="required">
580 <label for="altcontactaddress1">
582 Address line 1:</label>
583 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->" size="40" />
584 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
587 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" -->
588 <label for="altcontactaddress2" class="required">
590 <label for="altcontactaddress2">
592 Address line 2:</label>
593 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->" size="40" />
594 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
597 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" -->
598 <label for="altcontactaddress3" class="required">
600 <label for="altcontactaddress3">
603 <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->" size="40" />
604 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
607 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" -->
608 <label for="altcontactzipcode" class="required">
610 <label for="altcontactzipcode">
612 ZIP/Post code:</label>
613 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->" size="5" />
614 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
617 <!-- TMPL_IF NAME="mandatoryaltcontactphone" -->
618 <label for="altcontactphone" class="required">
620 <label for="altcontactphone">
623 <input type="text" name="altcontactphone" id="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->" />
624 <!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
630 <!-- TMPL_IF NAME="I" -->
631 <!-- TMPL_IF NAME="memberofinstution" -->
632 <fieldset class="rows" id="memberentry_organisation">
633 <legend>Organizations</legend><ol>
635 <!-- TMPL_IF NAME="mandatoryphone" -->
636 <label for="organisations" class="required">
638 <label for="organisations">
640 Organization(s): </label>
641 <!-- TMPL_VAR NAME="CGIorganisations" -->
642 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
650 <!--TMPL_IF Name="step_3"-->
652 <fieldset class="rows" id="memberentry_library_management">
653 <legend>Library Management</legend><ol>
654 <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
655 <label for="cardnumber" class="required">
657 <label for="cardnumber">
659 Card number: </label>
660 <input type="text" id="cardnumber" name="cardnumber" size="20" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
661 <!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
663 <!-- TMPL_IF NAME="mandatorybranchcode" -->
664 <label for="branchcode" class="required">
666 <label for="branchcode">
669 <!-- TMPL_VAR NAME="CGIbranch" -->
670 <!-- TMPL_IF NAME="mandatorybranchcode" --><span class="required">Required</span><!-- /TMPL_IF -->
673 <!-- TMPL_IF NAME="typeloop" -->
674 <label for="categorycode">Category: </label>
675 <select id="categorycode" name="categorycode">
676 <!-- TMPL_LOOP NAME="typeloop" -->
677 <!-- TMPL_IF EXPR="typename eq 'C'" --><optgroup label="Child"><!-- /TMPL_IF -->
678 <!-- TMPL_IF EXPR="typename eq 'A'" --><optgroup label="Adult"><!-- /TMPL_IF -->
679 <!-- TMPL_IF EXPR="typename eq 'S'" --><optgroup label="Staff"><!-- /TMPL_IF -->
680 <!-- TMPL_IF EXPR="typename eq 'I'" --><optgroup label="Organization"><!-- /TMPL_IF -->
681 <!-- TMPL_IF EXPR="typename eq 'P'" --><optgroup label="Professional"><!-- /TMPL_IF -->
682 <!-- TMPL_IF EXPR="typename eq 'X'" --><optgroup label="Statistical"><!-- /TMPL_IF -->
683 <!-- TMPL_LOOP NAME="categoryloop" -->
684 <!-- TMPL_IF NAME="categorycodeselected" -->
685 <option value="<!-- TMPL_VAR NAME="categorycode" -->" selected="selected"><!-- TMPL_VAR NAME="categoryname" --></option>
687 <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
694 <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>
695 <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
699 <!-- TMPL_IF NAME="mandatorysort1" -->
700 <label for="sort1" class="required">
705 <!--TMPL_IF NAME="CGIsort1" -->
706 <!-- TMPL_VAR NAME="CGIsort1" -->
708 <input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
709 <!-- TMPL_IF NAME="mandatorysort1" --><span class="required">Required</span><!-- /TMPL_IF -->
713 <!-- TMPL_IF NAME="mandatorysort2" -->
714 <label for="sort2" class="required">
719 <!--TMPL_IF NAME="CGIsort2" -->
720 <!-- TMPL_VAR NAME="CGIsort2" -->
722 <input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" />
723 <!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
728 <fieldset class="rows" id="memberentry_subscription">
729 <legend>Library set-up</legend><ol>
731 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
732 <label for="dateenrolled" class="required">
734 <label for="dateenrolled">
736 Registration date: </label>
737 <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" -->" />
738 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
739 <script language="JavaScript" type="text/javascript">
742 inputField : "dateenrolled",
743 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
744 button : "dateenrolled_button"
748 <!-- TMPL_IF NAME="mandatorydateenrolled" --><span class="required">Required</span><!-- /TMPL_IF -->
749 <!-- TMPL_IF NAME="ERROR_dateenrolled" --><span class="required">(Error)</span><!-- /TMPL_IF -->
752 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
753 <label for="dateexpiry" class="required">
755 <label for="dateexpiry">
757 Expiry date (leave blank for auto calc) </label>
758 <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 -->" />
759 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
760 <script language="JavaScript" type="text/javascript">
763 inputField : "dateexpiry",
764 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
765 button : "dateexpiry_button"
769 <!-- TMPL_IF NAME="mandatorydateexpiry" --><span class="required">Required</span><!-- /TMPL_IF -->
770 <!-- TMPL_IF NAME="ERROR_dateexpiry" --><span class="required">(Error)</span><!-- /TMPL_IF -->
773 <!-- TMPL_IF NAME="mandatoryopacnote" -->
774 <label for="opacnote" class="required">
776 <label for="opacnote">
779 <textarea id="opacnote" name="opacnote" cols="55" rows="5"><!-- TMPL_VAR NAME="opacnote" --></textarea>
780 <div class="hint">This message appears on this patron's user page in the OPAC</div>
781 <!-- TMPL_IF NAME="mandatoryopacnote" --><span class="required">Required</span><!-- /TMPL_IF -->
784 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
785 <label for="borrowernotes" class="required">
787 <label for="borrowernotes">
789 Circulation note: </label>
790 <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
791 <div class="hint">This message displays when checking out to this patron</div>
792 <!-- TMPL_IF NAME="mandatoryborrowernotes" --><span class="required">Required</span><!-- /TMPL_IF -->
796 <fieldset class="rows" id="memberentry_userid">
797 <legend>OPAC login</legend><ol>
799 <!-- TMPL_IF NAME="mandatoryuserid" -->
800 <label for="userid" class="required">
806 <!-- TMPL_IF NAME="NoUpdateLogin" -->
807 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="userid" -->" />
809 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
812 <!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
815 <!-- TMPL_IF NAME="mandatorypassword" -->
816 <label for="password" class="required">
818 <label for="password">
821 <!--TMPL_IF NAME="opadd"-->
822 <!-- TMPL_IF NAME="NoUpdateLogin" -->
823 <input type="text" id="password" name="password" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="password" -->" />
825 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
828 <!--TMPL_IF NAME="password"-->
829 <!-- TMPL_IF NAME="NoUpdateLogin" -->
830 <input type="text" id="password" name="password" size="20" disabled="disabled" value="****" />
832 <input type="text" id="password" name="password" size="20" value="****" />
835 <!-- TMPL_IF NAME="NoUpdateLogin" -->
836 <input type="text" id="password" name="password" size="20" disabled="disabled" value="" />
838 <input type="text" id="password" name="password" size="20" value="" />
842 <!-- TMPL_IF NAME="mandatorypassword" --><span class="required">Required</span><!-- /TMPL_IF --><!-- TMPL_IF NAME="ERROR_short_password" --><span class="required">Password is too short</span><!-- /TMPL_IF -->
843 <!-- TMPL_IF NAME="minPasswordLength" --><div class="hint">Minimum password length: <!-- TMPL_VAR NAME="minPasswordLength" --></div><!-- /TMPL_IF -->
846 <!--this zones are not necessary in modif mode -->
847 <!-- TMPL_UNLESS NAME="opadd" -->
848 <fieldset class="rows">
849 <legend>Patron Account Flags</legend>
851 <!-- TMPL_LOOP NAME="flagloop" -->
852 <li><label class="radio" for="yes<!-- TMPL_VAR name="name" -->">
853 <!-- TMPL_IF EXPR="key eq 'gonenoaddress'" -->Gone no Address:<!-- /TMPL_IF -->
854 <!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
855 <!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
858 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
859 <!-- TMPL_IF NAME="yes" -->
860 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
862 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
865 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
866 <!-- TMPL_IF NAME="no" -->
867 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
869 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
876 <!-- /TMPL_UNLESS -->
880 <!-- TMPL_IF NAME="step_4" --><!-- TMPL_IF NAME="ExtendedPatronAttributes" --><!-- TMPL_UNLESS NAME="no_patron_attribute_types" -->
881 <fieldset class="rows" id="memberentry_patron_attributes">
882 <input type="hidden" name="setting_extended_patron_attributes" value="1" />
883 <legend>Additional attributes and identifiers</legend>
887 <th colspan="2">Value</th>
889 <!-- TMPL_LOOP NAME='patron_attributes' -->
891 <td><!-- TMPL_VAR NAME="code" --> (<!-- TMPL_VAR NAME="description" -->)
894 <input type="hidden" id="<!-- TMPL_VAR NAME="form_id" -->_code" name="<!-- TMPL_VAR NAME="form_id" -->_code"
895 value="<!-- TMPL_VAR NAME="code" -->" />
896 <!-- TMPL_IF NAME="use_dropdown" -->
897 <select id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->">
899 <!-- TMPL_LOOP NAME="auth_val_loop" -->
900 <!-- TMPL_IF NAME="selected" -->
901 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected">
902 <!-- TMPL_VAR NAME="lib" -->
905 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" >
906 <!-- TMPL_VAR NAME="lib" -->
912 <input type="text" maxlength="64" value="<!-- TMPL_VAR NAME="value" -->"
913 id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->" />
915 <!-- TMPL_IF NAME="password_allowed" -->
916 (Password: <input type="password" maxlength="64" value="<!-- TMPL_VAR NAME="password" -->"
917 id="<!-- TMPL_VAR NAME="form_id" -->_password" name="<!-- TMPL_VAR NAME="form_id" -->_password" />)
921 <a href="#" onclick="clear_entry(this); return false;">Clear</a>
922 <!-- TMPL_IF NAME="repeatable" -->
923 <a href="#" onclick="clone_entry(this); return false;">New</a>
930 <!-- /TMPL_IF--><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
932 <fieldset class="action">
933 <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
934 <!-- TMPL_IF NAME="opadd" -->
935 <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
937 <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Cancel</a>
945 <!-- TMPL_UNLESS NAME="opadd" --><div class="yui-b">
946 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
947 </div><!-- /TMPL_UNLESS -->
949 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->