1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Patrons ›
3 <!-- TMPL_IF NAME="opadd" --> Add<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff <!--/TMPL_IF -->
4 patron <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR name="firstname" --><!-- TMPL_ELSE -->Modify<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF --><!--TMPL_IF Name="S"--> Staff<!--/TMPL_IF -->
5 patron <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR name="firstname" --><!-- /TMPL_IF --></title>
6 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
7 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/members.js"></script>
8 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
9 <script type="text/JavaScript" language="JavaScript">
11 $(document).ready(function() {
12 $("#guarantordelete").click(function() {
13 $("#guarantorid").attr("value","");
14 $("#contactname").attr("value","");
15 $("#contactfirstname").attr("value","");
16 $("#guarantorsearch").attr("value","Find guarantor");
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="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF --> <!--TMPL_IF Name="S"--> Staff <!--/TMPL_IF -->
61 patron <!-- 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="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF --><!--TMPL_IF Name="S"-->Staff <!--/TMPL_IF -->
64 patron </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 <!--TMPL_IF Name="I"--> Add Organisation patron <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Add Adult patron <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Add Child patron <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Add Professional patron <!--/TMPL_IF --><!--TMPL_IF Name="S"--> Add Staff patron <!--/TMPL_IF -->
76 <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
80 <!--TMPL_IF Name="I"--> Modify Organisation patron <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Modify Adult patron <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Modify Child patron <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Modify Professional patron <!--/TMPL_IF --><!--TMPL_IF Name="S"--> Modify Staff patron <!--/TMPL_IF -->
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 error">
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?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 error">
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_extended_unique_id_failed" -->
136 <li id="ERROR_extended_unique_id_failed">The attribute value
137 <!-- TMPL_VAR NAME="ERROR_extended_unique_id_failed" --> is already is use by another patron record.</li>
144 <form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post">
145 <!-- field always hidden in different form (1,2,3) -->
146 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
147 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
148 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
149 <input type="hidden" name="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->" />
150 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
151 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
152 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
153 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
154 <input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" />
155 <!--TMPL_IF Name="step"--><input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" /><!--/TMPL_IF-->
156 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
158 <!--TMPL_IF Name="step_1"-->
159 <fieldset class="rows" id="memberentry_identity">
160 <legend><!--TMPL_IF Name="I"-->Organisation <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
162 <!-- TMPL_UNLESS name="I" -->
163 <!-- TMPL_IF NAME="title_cgipopup" -->
165 <!-- TMPL_IF NAME="mandatorytitle" -->
166 <label for="btitle" class="required">
171 <!-- TMPL_VAR NAME="borrotitlepopup" -->
172 <!-- TMPL_IF NAME="mandatorytitle" --><span class="required">Required</span><!-- /TMPL_IF -->
175 <!-- /TMPL_UNLESS -->
177 <!-- TMPL_IF NAME="mandatorysurname" -->
178 <label for="surname" class="required">
180 <label for="surname">
183 <!-- TMPL_IF NAME="uppercasesurnames" -->
184 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
186 <input type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" />
188 <!-- TMPL_IF NAME="mandatorysurname" --><span class="required">Required</span><!-- /TMPL_IF -->
190 <!-- TMPL_UNLESS name="I" -->
192 <!-- TMPL_IF NAME="mandatoryfirstname" -->
193 <label for="firstname" class="required">
195 <label for="firstname">
198 <input type="text" id="firstname" name="firstname" size="20" value="<!-- TMPL_VAR NAME="firstname" -->" />
199 <!-- TMPL_IF NAME="mandatoryfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
202 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
203 <label for="dateofbirth" class="required">
205 <label for="dateofbirth">
207 Date of birth: </label>
209 <!-- TMPL_IF NAME="metric" -->
210 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
212 <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="<!-- TMPL_VAR NAME="dateofbirth" -->" />
215 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
216 <script language="JavaScript" type="text/javascript">
219 inputField : "dateofbirth",
220 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
221 button : "dateofbirth_button"
225 <!-- TMPL_IF NAME="mandatorydateofbirth" --><span class="required">Required</span><!-- /TMPL_IF -->
226 <!-- TMPL_IF NAME="ERROR_dateofbirth" --><span class="required">(Error)</span><!-- /TMPL_IF -->
229 <!-- TMPL_IF NAME="mandatoryinitials" -->
230 <label for="initials" class="required">
232 <label for="initials">
235 <input type="text" id="initials" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->" />
236 <!-- TMPL_IF NAME="mandatoryinitials" --><span class="required">Required</span><!-- /TMPL_IF -->
238 <!-- /TMPL_UNLESS -->
240 <!-- TMPL_IF NAME="mandatoryothernames" -->
241 <label for="othernames" class="required">
243 <label for="othernames">
246 <input type="text" id="othernames" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->" />
247 <!-- TMPL_IF NAME="mandatoryothernames" --><span class="required">Required</span><!-- /TMPL_IF -->
248 <!-- TMPL_IF NAME="I" --><input type="hidden" name="sex" value="N" /><!-- /TMPL_IF -->
250 <!--TMPL_UNLESS Name="I"-->
253 <!-- TMPL_IF NAME="female" -->
254 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
256 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
258 <!-- TMPL_IF NAME="male" -->
259 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
261 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
263 <!-- TMPL_IF NAME="none" -->
264 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
266 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
270 <!--TMPL_IF EXPR="showguarantor"--> <li><label for="">Guarantor: </label>
271 <select name="relationship" id="relationship" >
272 <!-- TMPL_LOOP name="relshiploop" -->
273 <!-- TMPL_IF name="selected" -->
274 <option value="<!-- TMPL_VAR name="relationship" -->" selected="selected" ><!-- TMPL_VAR name="relationship" --></option>
276 <option value="<!-- TMPL_VAR name="relationship" -->"><!-- TMPL_VAR name="relationship" --></option>
280 <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
281 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
282 <!-- TMPL_IF NAME="guarantorid"-->
283 <input id="guarantorsearch" type="button" value="Modify Guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
285 <input id="guarantorsearch" type="button" value="Find guarantor" onclick="Dopopguarantor('guarantor_search.pl');" />
286 <!-- /TMPL_IF --> <input id="guarantordelete" type="button" value="Delete Guarantor" />
291 <fieldset class="rows">
292 <legend>Main address</legend><ol>
294 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
295 <label for="streetnumber" class="required">
297 <label for="streetnumber">
299 Street number: </label>
300 <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->" />
301 <!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
303 <!-- TMPL_IF NAME="road_cgipopup" -->
305 <!-- TMPL_IF NAME="mandatorystreettype" -->
306 <label for="streettype" class="required">
308 <label for="streettype">
310 Street type: </label>
311 <!-- TMPL_VAR NAME="roadpopup" -->
312 <!-- TMPL_IF NAME="mandatorystreettype" --><span class="required">Required</span><!-- /TMPL_IF -->
316 <!-- TMPL_IF NAME="mandatoryaddress" -->
317 <label for="address" class="required">
319 <label for="address">
322 <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->" />
323 <!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
326 <!-- TMPL_IF NAME="mandatoryaddress2" -->
327 <label for="address2" class="required">
329 <label for="address2">
332 <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->" />
333 <!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
336 <!-- TMPL_IF NAME="mandatorycity" -->
337 <label for="city" class="required">
341 City, State: </label>
343 <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
344 <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong> <!-- TMPL_VAR NAME="citypopup" --><!-- /TMPL_IF -->
345 <!-- TMPL_IF NAME="mandatorycity" --><span class="required">Required</span><!-- /TMPL_IF -->
348 <!-- TMPL_IF NAME="mandatoryzipcode" -->
349 <label for="zipcode" class="required">
351 <label for="zipcode">
354 <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" />
355 <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
360 <fieldset class="rows" id="memberentry_contact">
361 <legend>Contact</legend><ol>
362 <!--TMPL_IF Name="C"-->
365 <!-- TMPL_IF NAME="mandatoryB_email" -->
366 <label for="B_email" class="required">
368 <label for="B_email">
370 E-mail (home): </label>
371 <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
372 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
375 <!-- TMPL_IF NAME="mandatoryphone" -->
376 <label for="phone" class="required">
380 Phone (home): </label>
381 <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->" />
382 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
385 <!-- TMPL_IF NAME="mandatoryphonepro" -->
386 <label for="phonepro" class="required">
388 <label for="phonepro">
390 Phone (work): </label>
391 <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" />
392 <!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
395 <!-- TMPL_IF NAME="mandatorymobile" -->
396 <label for="mobile" class="required">
400 Phone (cell): </label>
401 <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->" />
402 <!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
405 <!-- TMPL_IF NAME="mandatoryemail" -->
406 <label for="email" class="required">
410 E-mail (home): </label>
411 <input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->" />
412 <!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF -->
415 <!-- TMPL_IF NAME="mandatoryemailpro" -->
416 <label for="emailpro" class="required">
418 <label for="emailpro">
420 E-mail (work): </label>
421 <input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->" />
422 <!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
425 <!-- TMPL_IF NAME="mandatoryfax" -->
426 <label for="fax" class="required">
431 <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
432 <!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
438 <!-- ************************ STEP_1 *********************** -->
440 <!--TMPL_IF Name="step_2"-->
442 <fieldset class="rows" id="memberentry_address">
443 <legend>Alternate address</legend><ol>
445 <!-- TMPL_IF NAME="mandatoryB_address" -->
446 <label for="B_address" class="required">
448 <label for="B_address">
451 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->" />
452 <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
455 <!-- TMPL_IF NAME="mandatoryB_city" -->
456 <label for="B_city" class="required" >
461 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->" />
462 <!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
465 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
466 <label for="B_zipcode" class="required">
468 <label for="B_zipcode">
471 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="5" size="5" value="<!-- TMPL_VAR NAME="B_zipcode" -->" />
472 <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
475 <!-- TMPL_IF NAME="mandatoryB_phone" -->
476 <label for="B_phone" class="required">
478 <label for="B_phone">
481 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
482 <!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
485 <!-- TMPL_IF NAME="mandatoryB_email" -->
486 <label for="B_email" class="required">
488 <label for="B_email">
491 <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
492 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
494 <!-- TMPL_IF NAME="mandatorycontactnote" -->
495 <label for="contactnote" class="required">
497 <label for="contactnote">
499 Contact note: </label>
500 <textarea id="contactnote" name="contactnote" cols="40" rows="2"><!-- TMPL_VAR NAME="contactnote" --></textarea>
501 <!-- TMPL_IF NAME="mandatorycontactnote" --><span class="required">Required</span><!-- /TMPL_IF -->
505 <fieldset class="rows" id="memberentry_altaddress">
506 <legend>Alternate Contact</legend><ol>
508 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" -->
509 <label for="altcontactfirstname" class="required">
511 <label for="altcontactfirstname">
514 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->" />
515 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
518 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" -->
519 <label for="altcontactsurname" class="required">
521 <label for="altcontactsurname">
524 <input type="text" name="altcontactsurname" id="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->" />
525 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
528 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" -->
529 <label for="altcontactaddress1" class="required">
531 <label for="altcontactaddress1">
533 Address line 1:</label>
534 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->" size="40" />
535 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
538 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" -->
539 <label for="altcontactaddress2" class="required">
541 <label for="altcontactaddress2">
543 Address line 2:</label>
544 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->" size="40" />
545 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
548 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" -->
549 <label for="altcontactaddress3" class="required">
551 <label for="altcontactaddress3">
554 <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->" size="40" />
555 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
558 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" -->
559 <label for="altcontactzipcode" class="required">
561 <label for="altcontactzipcode">
563 ZIP/Post code:</label>
564 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->" size="5" />
565 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
568 <!-- TMPL_IF NAME="mandatoryaltcontactphone" -->
569 <label for="altcontactphone" class="required">
571 <label for="altcontactphone">
574 <input type="text" name="altcontactphone" id="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->" />
575 <!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
581 <!-- TMPL_IF NAME="I" -->
582 <!-- TMPL_IF NAME="memberofinstution" -->
583 <fieldset class="rows" id="memberentry_organisation">
584 <legend>Organisations</legend><ol>
586 <!-- TMPL_IF NAME="mandatoryphone" -->
587 <label for="organisations" class="required">
589 <label for="organisations">
591 Organisation(s): </label>
592 <!-- TMPL_VAR NAME="CGIorganisations" -->
593 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
601 <!--TMPL_IF Name="step_3"-->
603 <fieldset class="rows" id="memberentry_library_management">
604 <legend>Library Management</legend><ol>
605 <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
606 <label for="cardnumber" class="required">
608 <label for="cardnumber">
610 Card number: </label>
611 <input type="text" id="cardnumber" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
612 <!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
614 <!-- TMPL_IF NAME="mandatorybranchcode" -->
615 <label for="branchcode" class="required">
617 <label for="branchcode">
620 <!-- TMPL_VAR NAME="CGIbranch" -->
621 <!-- TMPL_IF NAME="mandatorybranchcode" --><span class="required">Required</span><!-- /TMPL_IF -->
624 <!-- TMPL_IF NAME="typeloop" -->
625 <label for="categorycode">Category: </label>
626 <select id="categorycode" name="categorycode">
627 <!-- TMPL_LOOP NAME="typeloop" -->
628 <!-- TMPL_IF EXPR="typename eq 'C'" --><optgroup label="Child"><!-- /TMPL_IF -->
629 <!-- TMPL_IF EXPR="typename eq 'A'" --><optgroup label="Adult"><!-- /TMPL_IF -->
630 <!-- TMPL_IF EXPR="typename eq 'S'" --><optgroup label="Staff"><!-- /TMPL_IF -->
631 <!-- TMPL_IF EXPR="typename eq 'I'" --><optgroup label="Organisation"><!-- /TMPL_IF -->
632 <!-- TMPL_IF EXPR="typename eq 'P'" --><optgroup label="Professional"><!-- /TMPL_IF -->
633 <!-- TMPL_IF EXPR="typename eq 'X'" --><optgroup label="Statistical"><!-- /TMPL_IF -->
634 <!-- TMPL_LOOP NAME="categoryloop" -->
635 <!-- TMPL_IF NAME="categorycodeselected" -->
636 <option value="<!-- TMPL_VAR NAME="categorycode" -->" selected="selected"><!-- TMPL_VAR NAME="categoryname" --></option>
638 <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
645 <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>
646 <a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
650 <!-- TMPL_IF NAME="mandatorysort1" -->
651 <label for="sort1" class="required">
656 <!--TMPL_IF NAME="CGIsort1" -->
657 <!-- TMPL_VAR NAME="CGIsort1" -->
659 <input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
660 <!-- TMPL_IF NAME="mandatorysort1" --><span class="required">Required</span><!-- /TMPL_IF -->
664 <!-- TMPL_IF NAME="mandatorysort2" -->
665 <label for="sort2" class="required">
670 <!--TMPL_IF NAME="CGIsort2" -->
671 <!-- TMPL_VAR NAME="CGIsort2" -->
673 <input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->" />
674 <!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
679 <fieldset class="rows" id="memberentry_subscription">
680 <legend>Library set-up</legend><ol>
682 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
683 <label for="dateenrolled" class="required">
685 <label for="dateenrolled">
687 Registration date: </label>
688 <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" -->" />
689 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
690 <script language="JavaScript" type="text/javascript">
693 inputField : "dateenrolled",
694 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
695 button : "dateenrolled_button"
699 <!-- TMPL_IF NAME="mandatorydateenrolled" --><span class="required">Required</span><!-- /TMPL_IF -->
700 <!-- TMPL_IF NAME="ERROR_dateenrolled" --><span class="required">(Error)</span><!-- /TMPL_IF -->
703 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
704 <label for="dateexpiry" class="required">
706 <label for="dateexpiry">
708 Expiry date: </label>
709 <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" -->" />
710 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
711 <script language="JavaScript" type="text/javascript">
714 inputField : "dateexpiry",
715 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
716 button : "dateexpiry_button"
720 <!-- TMPL_IF NAME="mandatorydateexpiry" --><span class="required">Required</span><!-- /TMPL_IF -->
721 <!-- TMPL_IF NAME="ERROR_dateexpiry" --><span class="required">(Error)</span><!-- /TMPL_IF -->
724 <!-- TMPL_IF NAME="mandatoryopacnote" -->
725 <label for="opacnote" class="required">
727 <label for="opacnote">
730 <textarea id="opacnote" name="opacnote" cols="55" rows="5"><!-- TMPL_VAR NAME="opacnote" --></textarea>
731 <!-- TMPL_IF NAME="mandatoryopacnote" --><span class="required">Required</span><!-- /TMPL_IF -->
734 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
735 <label for="borrowernotes" class="required">
737 <label for="borrowernotes">
739 Library note: </label>
740 <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
741 <!-- TMPL_IF NAME="mandatoryborrowernotes" --><span class="required">Required</span><!-- /TMPL_IF -->
745 <fieldset class="rows" id="memberentry_userid">
746 <legend>OPAC login</legend><ol>
748 <!-- TMPL_IF NAME="mandatoryuserid" -->
749 <label for="userid" class="required">
755 <!-- TMPL_IF NAME="NoUpdateLogin" -->
756 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="userid" -->" />
758 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->" />
761 <!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
764 <!-- TMPL_IF NAME="mandatorypassword" -->
765 <label for="password" class="required">
767 <label for="password">
770 <!--TMPL_IF NAME="opadd"-->
771 <!-- TMPL_IF NAME="NoUpdateLogin" -->
772 <input type="text" id="password" name="password" size="20" disabled="disabled" value="<!-- TMPL_VAR NAME="password" -->" />
774 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->" />
777 <!--TMPL_IF NAME="password"-->
778 <!-- TMPL_IF NAME="NoUpdateLogin" -->
779 <input type="text" id="password" name="password" size="20" disabled="disabled" value="****" />
781 <input type="text" id="password" name="password" size="20" value="****" />
784 <!-- TMPL_IF NAME="NoUpdateLogin" -->
785 <input type="text" id="password" name="password" size="20" disabled="disabled" value="" />
787 <input type="text" id="password" name="password" size="20" value="" />
791 <!-- TMPL_IF NAME="mandatorypassword" --><span class="required">Required</span><!-- /TMPL_IF -->
794 <!--this zones are not necessary in modif mode -->
795 <!-- TMPL_UNLESS NAME="opadd" -->
796 <fieldset class="rows">
797 <legend>Patron Account Flags</legend>
799 <!-- TMPL_LOOP NAME="flagloop" -->
800 <li><label class="radio" for="yes<!-- TMPL_VAR name="name" -->">
801 <!-- TMPL_IF EXPR="key eq 'gonenoaddress'" -->Gone no Address:<!-- /TMPL_IF -->
802 <!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
803 <!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
806 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
807 <!-- TMPL_IF NAME="yes" -->
808 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
810 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
813 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
814 <!-- TMPL_IF NAME="no" -->
815 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
817 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
824 <!-- /TMPL_UNLESS -->
827 <!-- TMPL_IF NAME="step_4" --><!-- TMPL_IF NAME="ExtendedPatronAttributes" -->
828 <fieldset class="rows" id="memberentry_patron_attributes">
829 <input type="hidden" name="setting_extended_patron_attributes" value="1">
830 <legend>Additional attributes and identifiers</legend>
831 <!-- TMPL_IF NAME="no_patron_attribute_types" -->
832 No patron attribute types defined.
837 <th colspan="2">Value</th>
839 <!-- TMPL_LOOP NAME='patron_attributes' -->
841 <td><!-- TMPL_VAR NAME="code" --> (<!-- TMPL_VAR NAME="description" -->)
844 <input type="hidden" id="<!-- TMPL_VAR NAME="form_id" -->_code" name="<!-- TMPL_VAR NAME="form_id" -->_code"
845 value="<!-- TMPL_VAR NAME="code" -->" />
846 <!-- TMPL_IF NAME="use_dropdown" -->
847 <select id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->">
849 <!-- TMPL_LOOP NAME="auth_val_loop" -->
850 <!-- TMPL_IF NAME="selected" -->
851 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected">
852 <!-- TMPL_VAR NAME="lib" -->
855 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" >
856 <!-- TMPL_VAR NAME="lib" -->
862 <input type="text" maxlength="30" value="<!-- TMPL_VAR NAME="value" -->"
863 id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->" />
865 <!-- TMPL_IF NAME="password_allowed" -->
866 (Password: <input type="password" maxlength="30" value="<!-- TMPL_VAR NAME="password" -->"
867 id="<!-- TMPL_VAR NAME="form_id" -->_password" name="<!-- TMPL_VAR NAME="form_id" -->_password" />)
871 <a href="#" onclick="clear_entry(this); return false;">Clear</a>
872 <!-- TMPL_IF NAME="repeatable" -->
873 <a href="#" onclick="clone_entry(this); return false;">New</a>
881 <!-- /TMPL_IF--><!-- /TMPL_IF -->
883 <fieldset class="action">
884 <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
885 <!-- TMPL_IF NAME="opadd" -->
886 <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
888 <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Cancel</a>
896 <!-- TMPL_UNLESS NAME="opadd" --><div class="yui-b">
897 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
898 </div><!-- /TMPL_UNLESS -->
900 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->