1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Patrons ›
3 <!-- TMPL_IF NAME="opadd" -->Add<!-- TMPL_ELSIF NAME="opduplicate" -->Duplicate<!-- 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 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
6 <script type="text/JavaScript" language="JavaScript">
8 $(document).ready(function() {
9 $("fieldset.rows input").keydown(function(e){ return checkEnter(e); });
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[type=text]", 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 $("input#patron_attr_" + newId, clone).attr('value','');
49 $("select#patron_attr_" + newId, clone).attr('value','');
50 original.parentNode.insertBefore(clone, original.nextSibling);
52 var MSG_SEPARATOR = _("Separator must be / in field ");
53 var MSG_INCORRECT_DAY = _("Invalid day entered in field ");
54 var MSG_INCORRECT_MONTH = _("Invalid month entered in field ");
55 var MSG_INCORRECT_YEAR = _("Invalid year entered in field ");
56 var MSG_DUPLICATE_PATRON = _("Warning: Duplicate patron");
57 var MSG_DUPLICATE_ORGANIZATION = _("Warning: Duplicate organization");
58 var MSG_LATE_EXPIRY = _("Warning: Expiration date falls before enrollment date");
59 var MSG_MISSING_MANDATORY = _("The following fields are mandatory:");
60 var MSG_DUPLICATE_SUSPICION = _("Please confirm whether this is a duplicate patron");
63 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/members.js"></script>
66 <!-- TMPL_INCLUDE NAME="header.inc" -->
67 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
69 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> ›
70 <!-- TMPL_IF NAME="opadd" -->
71 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 -->
72 <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
74 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> › <strong><!-- TMPL_IF NAME="opduplicate" -->Duplicate<!-- 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 -->
75 </strong><!-- /TMPL_IF --></div>
76 <!-- TMPL_IF NAME="opduplicate" -->tast<!-- /TMPL_IF -->
77 <!-- TMPL_IF NAME="opadd" --><div id="doc" class="yui-t7"><!-- TMPL_ELSE --><div id="doc3" class="yui-t2"><!-- /TMPL_IF -->
83 <!-- TMPL_IF NAME="no_add" --><div class="dialog alert"><h3>Cannot add patron</h3>
84 <!-- TMPL_IF NAME="no_branches" --><p>There are <strong>no libraries defined</strong>. <!-- TMPL_IF NAME="CAN_user_parameters" -->Please <a href="/cgi-bin/koha/admin/branches.pl">add a library</a>.<!-- TMPL_ELSE -->An administrator must define at least one library.<!-- /TMPL_IF --></p><!-- /TMPL_IF -->
85 <!-- TMPL_IF NAME="no_categories" --><p>There are <strong>no patron categories defined</strong>. <!-- TMPL_IF NAME="CAN_user_parameters" -->Please <a href="/cgi-bin/koha/admin/categorie.pl">add a patron category</a>.<!-- TMPL_ELSE -->An administrator must define at least one patron category.</p><!-- /TMPL_IF --><!-- /TMPL_IF --></div><!-- /TMPL_IF -->
87 <!-- TMPL_UNLESS NAME="no_add" -->
88 <!-- TMPL_IF NAME="opadd" -->
90 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" -->
94 <!-- TMPL_IF NAME="opduplicate" -->Duplicate<!-- 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 -->
95 <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
99 <!-- TMPL_IF NAME="check_member" -->
100 <div class="dialog alert">
101 <h3>Duplicate patron record?</h3>
102 <p><a class="popup" href="javascript:Dopop('moremember.pl?print=brief&borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" >View existing record</a></p>
103 <form action="/cgi-bin/koha/members/memberentry.pl" method="get"><input type="hidden" name="op" value="modify" /><input type="hidden" name="borrowernumber" value="<!--TMPL_VAR NAME="check_member"-->" /><input type="hidden" name="category_type" value="<!--TMPL_VAR NAME="check_categorytype"-->" /><input class="edit" type="submit" value="It is a duplicate. Edit existing record" /></form>
105 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
106 <input type="hidden" name="nodouble" value="1" />
107 <input class="new" type="submit" value="Not a duplicate. Save as new record" />
111 <!-- TMPL_IF Name="debug" -->
113 <div>Debug is on (level <!-- TMPL_VAR NAME="debug" -->)</div>
116 <!-- TMPL_IF Name="nok" -->
117 <div class="dialog alert">
118 <p>The following fields are wrong. Please fix them.</p>
120 <!-- TMPL_IF NAME="ERROR_login_exist" -->
121 <li id="ERROR_login_exist">Login/password already exists.</li>
123 <!-- TMPL_IF NAME="ERROR_cardnumber" -->
124 <li id="ERROR_cardnumber">Cardnumber already in use.</li>
126 <!-- TMPL_IF NAME="ERROR_age_limitations" -->
127 <li id="ERROR_age_limitations">Patron's age is incorrect for their category.
128 Ages allowed are <!-- TMPL_VAR NAME="ERROR_age_limitations"-->.</li>
130 <!-- TMPL_IF NAME="ERROR_branch" -->
131 <li id="ERROR_branch">Library is invalid.</li>
133 <!-- TMPL_IF NAME="ERROR_dateofbirth" -->
134 <li id="ERROR_dateofbirth">Date of birth is invalid.</li>
136 <!-- TMPL_IF NAME="ERROR_dateenrolled" -->
137 <li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
139 <!-- TMPL_IF NAME="ERROR_dateexpiry" -->
140 <li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
142 <!-- TMPL_IF NAME="ERROR_short_password" -->
143 <li id="ERROR_short_password">Password must be at least <!-- TMPL_VAR NAME="minPasswordLength" --> characters long.</li>
145 <!-- TMPL_IF NAME="ERROR_extended_unique_id_failed" -->
146 <li id="ERROR_extended_unique_id_failed">The attribute value
147 <!-- TMPL_VAR NAME="ERROR_extended_unique_id_failed" --> is already is use by another patron record.</li>
154 <!-- TMPL_UNLESS NAME="check_member" --><form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post">
155 <input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" /> <!-- /TMPL_UNLESS -->
156 <!-- field always hidden in different form (1,2,3) -->
157 <input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->" />
158 <input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->" />
159 <input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->" />
160 <input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->" />
161 <input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
162 <input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
163 <input type="hidden" name="borrowernumber" value="<!-- TMPL_IF NAME="opduplicate" --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="borrowernumber" --><!-- /TMPL_IF -->" />
164 <input type="hidden" name="nodouble" value="<!-- TMPL_IF NAME="opduplicate" --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="nodouble" --><!-- /TMPL_IF -->" />
165 <!--TMPL_IF Name="step"--><input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->" /><!--/TMPL_IF-->
166 <!-- TMPL_IF NAME="opadd" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSIF NAME="opduplicate" --><input type="hidden" name="op" value="insert" /><!-- TMPL_ELSE --><input type="hidden" name="op" value="save" /><!-- /TMPL_IF -->
168 <!--TMPL_IF Name="step_1"-->
169 <fieldset class="rows" id="memberentry_identity">
170 <legend><!--TMPL_IF Name="I"-->Organization <!--TMPL_ELSE-->Patron <!--/TMPL_IF-->identity</legend>
172 <!-- TMPL_UNLESS name="I" -->
173 <!-- TMPL_IF NAME="title_cgipopup" -->
175 <!-- TMPL_IF NAME="mandatorytitle" -->
176 <label for="btitle" class="required">
181 <!-- TMPL_VAR NAME="borrotitlepopup" -->
182 <!-- TMPL_IF NAME="mandatorytitle" --><span class="required">Required</span><!-- /TMPL_IF -->
185 <!-- /TMPL_UNLESS -->
187 <!-- TMPL_IF NAME="mandatorysurname" -->
188 <label for="surname" class="required">
190 <label for="surname">
193 <!-- TMPL_IF NAME="uppercasesurnames" -->
194 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
196 <input type="text" id="surname" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
198 <!-- TMPL_IF NAME="mandatorysurname" --><span class="required">Required</span><!-- /TMPL_IF -->
200 <!-- TMPL_UNLESS name="I" -->
202 <!-- TMPL_IF NAME="mandatoryfirstname" -->
203 <label for="firstname" class="required">
205 <label for="firstname">
208 <input type="text" id="firstname" name="firstname" size="20" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="firstname" --><!-- /TMPL_IF -->" />
209 <!-- TMPL_IF NAME="mandatoryfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
212 <!-- TMPL_IF NAME="mandatorydateofbirth" -->
213 <label for="dateofbirth" class="required">
215 <label for="dateofbirth">
217 Date of birth: </label>
219 <!-- TMPL_IF NAME="metric" -->
220 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="dateofbirth" --><!-- /TMPL_IF -->" />
222 <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="dateofbirth" --><!-- /TMPL_IF -->" />
225 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
226 <script language="JavaScript" type="text/javascript">
229 inputField : "dateofbirth",
230 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
231 button : "dateofbirth_button"
235 <!-- TMPL_IF NAME="mandatorydateofbirth" --><span class="required">Required</span><!-- /TMPL_IF -->
236 <!-- TMPL_IF NAME="ERROR_dateofbirth" --><span class="required">(Error)</span><!-- /TMPL_IF -->
237 <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
240 <!-- TMPL_IF NAME="mandatoryinitials" -->
241 <label for="initials" class="required">
243 <label for="initials">
246 <input type="text" id="initials" name="initials" size="20" value="<!-- TMPL_VAR NAME="initials" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
247 <!-- TMPL_IF NAME="mandatoryinitials" --><span class="required">Required</span><!-- /TMPL_IF -->
249 <!-- /TMPL_UNLESS -->
251 <!-- TMPL_IF NAME="mandatoryothernames" -->
252 <label for="othernames" class="required">
254 <label for="othernames">
257 <input type="text" id="othernames" name="othernames" size="20" value="<!-- TMPL_VAR NAME="othernames" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
258 <!-- TMPL_IF NAME="mandatoryothernames" --><span class="required">Required</span><!-- /TMPL_IF -->
259 <!-- TMPL_IF NAME="I" --><input type="hidden" name="sex" value="N" /><!-- /TMPL_IF -->
261 <!--TMPL_UNLESS Name="I"-->
264 <!-- TMPL_IF NAME="female" -->
265 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
267 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
269 <!-- TMPL_IF NAME="male" -->
270 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
272 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
274 <!-- TMPL_IF NAME="none" -->
275 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
277 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
284 <!--TMPL_IF Name="showguarantor"--><input type="hidden" id="guarantorid" name="guarantorid" value="<!-- TMPL_VAR NAME="guarantorid" -->" />
285 <fieldset class="rows">
286 <legend>Guarantor Information</legend>
288 <!--TMPL_IF Name="P"-->
289 <!-- TMPL_IF NAME="guarantorid" -->
290 <li id="contact-details">
292 <li id="contact-details" style="display: none">
294 <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 -->
297 <label for="contactname">Organization name: </label>
298 <!-- TMPL_IF NAME="guarantorid" -->
299 <span><!-- TMPL_VAR NAME="contactname" --></span>
300 <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
302 <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
306 <!-- TMPL_IF NAME="C" -->
307 <!-- TMPL_IF NAME="guarantorid" -->
308 <li id="contact-details">
310 <li id="contact-details" style="display: none">
312 <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 -->
315 <label for="contactname">Surname: </label>
316 <!-- TMPL_IF NAME="guarantorid" -->
317 <span><!-- TMPL_VAR NAME="contactname" --></span>
318 <input name="contactname" id="contactname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
320 <input name="contactname" id="contactname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
324 <label for="contactfirstname">First name: </label>
325 <!-- TMPL_IF NAME="guarantorid" -->
326 <span><!-- TMPL_VAR NAME="contactfirstname" --></span>
327 <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
329 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
332 <!-- TMPL_IF name="relshiploop" -->
334 <label for="relationship">Relationship: </label>
335 <select name="relationship" id="relationship" >
336 <!-- TMPL_LOOP name="relshiploop" -->
337 <!-- TMPL_IF name="selected" -->
338 <option value="<!-- TMPL_VAR name="relationship" -->" selected="selected" ><!-- TMPL_VAR name="relationship" --></option>
340 <option value="<!-- TMPL_VAR name="relationship" -->"><!-- TMPL_VAR name="relationship" --></option>
349 <span class="label"> </span>
350 <!-- TMPL_IF NAME="guarantorid" -->
351 <input id="guarantorsearch" type="button" value="Change" onclick="Dopopguarantor('guarantor_search.pl?category_type=<!-- TMPL_VAR NAME="category_type" -->');" />
353 <input id="guarantorsearch" type="button" value="Set to Patron" onclick="Dopopguarantor('guarantor_search.pl?category_type=<!-- TMPL_VAR NAME="category_type" -->');" />
355 <input id="guarantordelete" type="button" value="Delete" />
361 <fieldset class="rows">
362 <legend>Main address</legend><ol>
364 <!-- TMPL_IF NAME="mandatorystreetnumber" -->
365 <label for="streetnumber" class="required">
367 <label for="streetnumber">
369 Street number: </label>
370 <input type="text" id="streetnumber" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
371 <!-- TMPL_IF NAME="mandatorystreetnumber" --><span class="required">Required</span><!-- /TMPL_IF -->
373 <!-- TMPL_IF NAME="road_cgipopup" -->
375 <!-- TMPL_IF NAME="mandatorystreettype" -->
376 <label for="streettype" class="required">
378 <label for="streettype">
380 Street type: </label>
381 <!-- TMPL_VAR NAME="roadpopup" -->
382 <!-- TMPL_IF NAME="mandatorystreettype" --><span class="required">Required</span><!-- /TMPL_IF -->
386 <!-- TMPL_IF NAME="mandatoryaddress" -->
387 <label for="address" class="required">
389 <label for="address">
392 <input type="text" id="address" name="address" size="35" value="<!-- TMPL_VAR NAME="address" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
393 <!-- TMPL_IF NAME="mandatoryaddress" --><span class="required">Required</span><!-- /TMPL_IF -->
396 <!-- TMPL_IF NAME="mandatoryaddress2" -->
397 <label for="address2" class="required">
399 <label for="address2">
402 <input type="text" id="address2" name="address2" size="35" value="<!-- TMPL_VAR NAME="address2" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
403 <!-- TMPL_IF NAME="mandatoryaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
406 <!-- TMPL_IF NAME="mandatorycity" -->
407 <label for="city" class="required">
411 City, State: </label>
413 <input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
414 <!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong>
415 <select id="select_city" name="select_city">
416 <!-- TMPL_LOOP NAME="city_loop" -->
417 <!-- TMPL_IF NAME="selected" -->
418 <option value="<!-- TMPL_VAR NAME="city_zipcode"-->|<!-- TMPL_VAR NAME="city_name" -->" selected="selected">
420 <option value="<!-- TMPL_VAR NAME="city_zipcode"-->|<!-- TMPL_VAR NAME="city_name" -->">
422 <!-- TMPL_VAR NAME="city_name" --> <!-- TMPL_VAR NAME="city_zipcode" -->
427 <!-- TMPL_IF NAME="mandatorycity" --><span class="required">Required</span><!-- /TMPL_IF -->
430 <!-- TMPL_IF NAME="mandatoryzipcode" -->
431 <label for="zipcode" class="required">
433 <label for="zipcode">
435 Zip/Postal code: </label>
436 <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
437 <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
441 <!-- TMPL_IF NAME="mandatorycountry" -->
442 <label for="country" class="required">
444 <label for="country">
447 <input type="text" name="country" id="country" size="20" value="<!-- TMPL_VAR NAME="country" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
448 <!-- TMPL_IF NAME="mandatorycountry" --><span class="required">Required</span><!-- /TMPL_IF -->
453 <fieldset class="rows" id="memberentry_contact">
454 <legend>Contact</legend><ol>
456 <!-- TMPL_IF NAME="mandatoryphone" -->
457 <label for="phone" class="required">
461 Phone (home): </label>
462 <input type="text" id="phone" name="phone" value="<!-- TMPL_VAR NAME="phone" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
463 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF --><div class="hint">Shows on transit slips</div>
467 <!-- TMPL_IF NAME="mandatoryphonepro" -->
468 <label for="phonepro" class="required">
470 <label for="phonepro">
472 Phone (work): </label>
473 <input type="text" id="phonepro" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
474 <!-- TMPL_IF NAME="mandatoryphonepro" --><span class="required">Required</span><!-- /TMPL_IF -->
477 <!-- TMPL_IF NAME="mandatorymobile" -->
478 <label for="mobile" class="required">
482 Phone (cell): </label>
483 <input type="text" id="mobile" name="mobile" value="<!-- TMPL_VAR NAME="mobile" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
484 <!-- TMPL_IF NAME="mandatorymobile" --><span class="required">Required</span><!-- /TMPL_IF -->
487 <!-- TMPL_IF NAME="mandatoryemail" -->
488 <label for="email" class="required">
492 Primary Email: </label>
493 <input type="text" id="email" name="email" size="45" value="<!-- TMPL_VAR NAME="email" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
494 <!-- TMPL_IF NAME="mandatoryemail" --><span class="required">Required</span><!-- /TMPL_IF --><div class="hint">Shows on transit slips</div>
498 <!-- TMPL_IF NAME="mandatoryemailpro" -->
499 <label for="emailpro" class="required">
501 <label for="emailpro">
503 Secondary Email: </label>
504 <input type="text" id="emailpro" name="emailpro" size="45" value="<!-- TMPL_VAR NAME="emailpro" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
505 <!-- TMPL_IF NAME="mandatoryemailpro" --><span class="required">Required</span><!-- /TMPL_IF -->
508 <!-- TMPL_IF NAME="mandatoryfax" -->
509 <label for="fax" class="required">
514 <input type="text" id="fax" name="fax" value="<!-- TMPL_VAR NAME="fax" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
515 <!-- TMPL_IF NAME="mandatoryfax" --><span class="required">Required</span><!-- /TMPL_IF -->
521 <!-- ************************ STEP_1 *********************** -->
523 <!--TMPL_IF Name="step_6"-->
525 <fieldset class="rows" id="memberentry_address">
526 <legend>Alternate address</legend><ol>
528 <!-- TMPL_IF NAME="mandatoryB_address" -->
529 <label for="B_address" class="required">
531 <label for="B_address">
534 <input type="text" id="B_address" name="B_address" size="40" value="<!-- TMPL_VAR NAME="B_address" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
535 <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF -->
538 <!-- TMPL_IF NAME="mandatoryB_address2" -->
539 <label for="B_address2" class="required">
541 <label for="B_address2">
544 <input type="text" id="B_address2" name="B_address2" size="40" value="<!-- TMPL_VAR NAME="B_address2" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
545 <!-- TMPL_IF NAME="mandatoryB_address2" --><span class="required">Required</span><!-- /TMPL_IF -->
548 <!-- TMPL_IF NAME="mandatoryB_city" -->
549 <label for="B_city" class="required" >
553 City, State: </label>
554 <input type="text" id="B_city" name="B_city" size="20" value="<!-- TMPL_VAR NAME="B_city" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
555 <!-- TMPL_IF NAME="mandatoryB_city" --><span class="required">Required</span><!-- /TMPL_IF -->
558 <!-- TMPL_IF NAME="mandatoryB_zipcode" -->
559 <label for="B_zipcode" class="required">
561 <label for="B_zipcode">
563 Zip/Postal code: </label>
564 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="<!-- TMPL_VAR NAME="B_zipcode" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
565 <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
568 <!-- TMPL_IF NAME="mandatoryB_country" -->
569 <label for="B_country" class="required">
571 <label for="B_country">
574 <input type="text" id="B_country" name="B_country" size="20" value="<!-- TMPL_VAR NAME="B_country" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
575 <!-- TMPL_IF NAME="mandatoryB_country" --><span class="required">Required</span><!-- /TMPL_IF -->
578 <!-- TMPL_IF NAME="mandatoryB_phone" -->
579 <label for="B_phone" class="required">
581 <label for="B_phone">
584 <input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
585 <!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
588 <!-- TMPL_IF NAME="mandatoryB_email" -->
589 <label for="B_email" class="required">
591 <label for="B_email">
594 <input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
595 <!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
597 <!-- TMPL_IF NAME="mandatorycontactnote" -->
598 <label for="contactnote" class="required">
600 <label for="contactnote">
602 Contact note: </label>
603 <textarea id="contactnote" name="contactnote" cols="40" rows="2"><!-- TMPL_VAR NAME="contactnote" --></textarea>
604 <!-- TMPL_IF NAME="mandatorycontactnote" --><span class="required">Required</span><!-- /TMPL_IF -->
609 <!--TMPL_IF Name="step_2"-->
610 <fieldset class="rows" id="memberentry_altaddress">
611 <legend>Alternate Contact</legend><ol>
613 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" -->
614 <label for="altcontactsurname" class="required">
616 <label for="altcontactsurname">
619 <input type="text" name="altcontactsurname" id="altcontactsurname" value="<!-- TMPL_VAR NAME="altcontactsurname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
620 <!-- TMPL_IF NAME="mandatoryaltcontactsurname" --><span class="required">Required</span><!-- /TMPL_IF -->
623 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" -->
624 <label for="altcontactfirstname" class="required">
626 <label for="altcontactfirstname">
629 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="<!-- TMPL_VAR NAME="altcontactfirstname" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
630 <!-- TMPL_IF NAME="mandatoryaltcontactfirstname" --><span class="required">Required</span><!-- /TMPL_IF -->
633 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" -->
634 <label for="altcontactaddress1" class="required">
636 <label for="altcontactaddress1">
639 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="<!-- TMPL_VAR NAME="altcontactaddress1" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> size="40" />
640 <!-- TMPL_IF NAME="mandatoryaltcontactaddress1" --><span class="required">Required</span><!-- /TMPL_IF -->
643 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" -->
644 <label for="altcontactaddress2" class="required">
646 <label for="altcontactaddress2">
649 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="<!-- TMPL_VAR NAME="altcontactaddress2" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> size="40" />
650 <!-- TMPL_IF NAME="mandatoryaltcontactaddress2" --><span class="required">Required</span><!-- /TMPL_IF -->
653 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" -->
654 <label for="altcontactaddress3" class="required">
656 <label for="altcontactaddress3">
659 <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="<!-- TMPL_VAR NAME="altcontactaddress3" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> size="40" />
660 <!-- TMPL_IF NAME="mandatoryaltcontactaddress3" --><span class="required">Required</span><!-- /TMPL_IF -->
663 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" -->
664 <label for="altcontactzipcode" class="required">
666 <label for="altcontactzipcode">
668 Zip/Postal code:</label>
669 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="<!-- TMPL_VAR NAME="altcontactzipcode" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> size="5" />
670 <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF -->
673 <!-- TMPL_IF NAME="mandatoryaltcontactcountry" -->
674 <label for="altcontactcountry" class="required">
676 <label for="altcontactcountry">
679 <input type="text" name="altcontactcountry" id="altcontactcountry" value="<!-- TMPL_VAR NAME="altcontactcountry" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> size="20" />
680 <!-- TMPL_IF NAME="mandatoryaltcontactcountry" --><span class="required">Required</span><!-- /TMPL_IF -->
683 <!-- TMPL_IF NAME="mandatoryaltcontactphone" -->
684 <label for="altcontactphone" class="required">
686 <label for="altcontactphone">
689 <input type="text" name="altcontactphone" id="altcontactphone" value="<!-- TMPL_VAR NAME="altcontactphone" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
690 <!-- TMPL_IF NAME="mandatoryaltcontactphone" --><span class="required">Required</span><!-- /TMPL_IF -->
696 <!-- TMPL_IF NAME="I" -->
697 <!-- TMPL_IF NAME="memberofinstution" -->
698 <fieldset class="rows" id="memberentry_organisation">
699 <legend>Organizations</legend><ol>
701 <!-- TMPL_IF NAME="mandatoryphone" -->
702 <label for="organisations" class="required">
704 <label for="organisations">
706 Organization(s): </label>
707 <!-- TMPL_VAR NAME="CGIorganisations" -->
708 <!-- TMPL_IF NAME="mandatoryphone" --><span class="required">Required</span><!-- /TMPL_IF -->
716 <!--TMPL_IF Name="step_3"-->
718 <fieldset class="rows" id="memberentry_library_management">
719 <legend>Library Management</legend><ol>
720 <li> <!-- TMPL_IF NAME="mandatorycardnumber" -->
721 <label for="cardnumber" class="required">
723 <label for="cardnumber">
725 Card number: </label>
726 <input type="text" id="cardnumber" name="cardnumber" size="20" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="cardnumber" --><!-- /TMPL_IF -->" />
727 <!-- TMPL_IF NAME="mandatorycardnumber" --><span class="required">Required</span><!-- /TMPL_IF --></li>
729 <!-- TMPL_IF NAME="mandatorybranchcode" -->
730 <label for="branchcode" class="required">
732 <label for="branchcode">
735 <!-- TMPL_VAR NAME="CGIbranch" -->
736 <!-- TMPL_IF NAME="mandatorybranchcode" --><span class="required">Required</span><!-- /TMPL_IF -->
739 <label for="categorycode">Category: </label>
740 <select id="categorycode" name="categorycode">
741 <!-- TMPL_LOOP NAME="typeloop" -->
742 <!-- TMPL_LOOP NAME="categoryloop" -->
743 <!-- TMPL_IF NAME="__first__" -->
744 <!-- TMPL_IF NAME="typename_C" --><optgroup label="Child"><!-- /TMPL_IF -->
745 <!-- TMPL_IF NAME="typename_A" --><optgroup label="Adult"><!-- /TMPL_IF -->
746 <!-- TMPL_IF NAME="typename_S" --><optgroup label="Staff"><!-- /TMPL_IF -->
747 <!-- TMPL_IF NAME="typename_I" --><optgroup label="Organization"><!-- /TMPL_IF -->
748 <!-- TMPL_IF NAME="typename_P" --><optgroup label="Professional"><!-- /TMPL_IF -->
749 <!-- TMPL_IF NAME="typename_X" --><optgroup label="Statistical"><!-- /TMPL_IF -->
751 <!-- TMPL_IF NAME="categorycodeselected" -->
752 <option value="<!-- TMPL_VAR NAME="categorycode" -->" selected="selected"><!-- TMPL_VAR NAME="categoryname" --></option>
754 <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
756 <!-- TMPL_IF NAME="__last__" -->
764 <!-- TMPL_IF NAME="mandatorysort1" -->
765 <label for="sort1" class="required">
770 <!--TMPL_IF NAME="CGIsort1" -->
771 <!-- TMPL_VAR NAME="CGIsort1" -->
773 <input type="text" id="sort1" name="sort1" size="20" value="<!-- TMPL_VAR NAME="sort1" -->" />
774 <!-- TMPL_IF NAME="mandatorysort1" --><span class="required">Required</span><!-- /TMPL_IF -->
778 <!-- TMPL_IF NAME="mandatorysort2" -->
779 <label for="sort2" class="required">
784 <!--TMPL_IF NAME="CGIsort2" -->
785 <!-- TMPL_VAR NAME="CGIsort2" -->
787 <input type="text" id="sort2" name="sort2" size="20" value="<!-- TMPL_VAR NAME="sort2" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
788 <!-- TMPL_IF NAME="mandatorysort2" --><span class="required">Required</span><!-- /TMPL_IF -->
793 <fieldset class="rows" id="memberentry_subscription">
794 <legend>Library set-up</legend><ol>
796 <!-- TMPL_IF NAME="mandatorydateenrolled" -->
797 <label for="dateenrolled" class="required">
799 <label for="dateenrolled">
801 Registration date: </label>
802 <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" -->" />
803 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
804 <script language="JavaScript" type="text/javascript">
807 inputField : "dateenrolled",
808 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
809 button : "dateenrolled_button"
813 <!-- TMPL_IF NAME="mandatorydateenrolled" --><span class="required">Required</span><!-- /TMPL_IF -->
814 <!-- TMPL_IF NAME="ERROR_dateenrolled" --><span class="required">(Error)</span><!-- /TMPL_IF -->
815 <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
818 <!-- TMPL_IF NAME="mandatorydateexpiry" -->
819 <label for="dateexpiry" class="required">
821 <label for="dateexpiry">
823 Expiry date (leave blank for auto calc) </label>
824 <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 -->" />
825 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
826 <script language="JavaScript" type="text/javascript">
829 inputField : "dateexpiry",
830 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
831 button : "dateexpiry_button"
835 <!-- TMPL_IF NAME="mandatorydateexpiry" --><span class="required">Required</span><!-- /TMPL_IF -->
836 <!-- TMPL_IF NAME="ERROR_dateexpiry" --><span class="required">(Error)</span><!-- /TMPL_IF -->
837 <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
840 <!-- TMPL_IF NAME="mandatoryopacnote" -->
841 <label for="opacnote" class="required">
843 <label for="opacnote">
846 <textarea id="opacnote" name="opacnote" cols="55" rows="5"><!-- TMPL_VAR NAME="opacnote" --></textarea>
847 <div class="hint">This message appears on this patron's user page in the OPAC</div>
848 <!-- TMPL_IF NAME="mandatoryopacnote" --><span class="required">Required</span><!-- /TMPL_IF -->
851 <!-- TMPL_IF NAME="mandatoryborrowernotes" -->
852 <label for="borrowernotes" class="required">
854 <label for="borrowernotes">
856 Circulation note: </label>
857 <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
858 <div class="hint">This message displays when checking out to this patron</div>
859 <!-- TMPL_IF NAME="mandatoryborrowernotes" --><span class="required">Required</span><!-- /TMPL_IF -->
863 <fieldset class="rows" id="memberentry_userid">
864 <legend>OPAC login</legend><ol>
866 <!-- TMPL_IF NAME="mandatoryuserid" -->
867 <label for="userid" class="required">
873 <!-- TMPL_IF NAME="NoUpdateLogin" -->
874 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="userid" --><!-- /TMPL_IF -->" />
876 <input type="text" id="userid" name="userid" size="20" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="userid" --><!-- /TMPL_IF -->" />
879 <!-- TMPL_IF NAME="mandatoryuserid" --><span class="required">Required</span><!-- /TMPL_IF -->
882 <!-- TMPL_IF NAME="mandatorypassword" -->
883 <label for="password" class="required">
885 <label for="password">
888 <!--TMPL_IF NAME="opadd"-->
889 <!-- TMPL_IF NAME="NoUpdateLogin" -->
890 <input type="text" id="password" name="password" size="20" disabled="disabled" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="password" --><!-- /TMPL_IF -->" />
892 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE--><!-- TMPL_VAR NAME="password" --><!-- /TMPL_IF -->" />
895 <!--TMPL_IF NAME="password"-->
896 <!-- TMPL_IF NAME="NoUpdateLogin" -->
897 <input type="text" id="password" name="password" size="20" disabled="disabled" value="****" />
899 <input type="text" id="password" name="password" size="20" value="<!-- TMPL_IF NAME="opduplicate" --><!--TMPL_ELSE-->****<!-- /TMPL_IF -->" />
902 <!-- TMPL_IF NAME="NoUpdateLogin" -->
903 <input type="text" id="password" name="password" size="20" disabled="disabled" value="" />
905 <input type="text" id="password" name="password" size="20" value="" />
909 <!-- 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 -->
910 <!-- TMPL_IF NAME="minPasswordLength" --><div class="hint">Minimum password length: <!-- TMPL_VAR NAME="minPasswordLength" --></div><!-- /TMPL_IF -->
913 <!--this zones are not necessary in modif mode -->
914 <!-- TMPL_UNLESS NAME="opadd" -->
915 <fieldset class="rows">
916 <legend>Patron Account Flags</legend>
918 <!-- TMPL_LOOP NAME="flagloop" -->
919 <li><label class="radio" for="yes<!-- TMPL_VAR name="name" -->">
920 <!-- TMPL_IF EXPR="key eq 'gonenoaddress'" -->Gone no Address:<!-- /TMPL_IF -->
921 <!-- TMPL_IF EXPR="key eq 'debarred'" -->Debarred:<!-- /TMPL_IF -->
922 <!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -->
924 <label for="yes<!-- TMPL_VAR NAME="name" -->">Yes </label>
925 <!-- TMPL_IF NAME="yes" -->
926 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" checked="checked" />
928 <input type="radio" id="yes<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="1" />
930 <label for="no<!-- TMPL_VAR NAME="name" -->">No </label>
931 <!-- TMPL_IF NAME="no" -->
932 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" checked="checked"/>
934 <input type="radio" id="no<!-- TMPL_VAR NAME="name" -->" name="<!-- TMPL_VAR NAME="name" -->" value="0" />
941 <!-- /TMPL_UNLESS -->
945 <!-- TMPL_IF NAME="step_4" --><!-- TMPL_IF NAME="ExtendedPatronAttributes" --><!-- TMPL_UNLESS NAME="no_patron_attribute_types" -->
946 <fieldset class="rows" id="memberentry_patron_attributes">
947 <input type="hidden" name="setting_extended_patron_attributes" value="1" />
948 <legend>Additional attributes and identifiers</legend>
952 <th colspan="2">Value</th>
954 <!-- TMPL_LOOP NAME='patron_attributes' -->
956 <td><!-- TMPL_VAR NAME="code" --> (<!-- TMPL_VAR NAME="description" -->)
959 <input type="hidden" id="<!-- TMPL_VAR NAME="form_id" -->_code" name="<!-- TMPL_VAR NAME="form_id" -->_code" value="<!-- TMPL_VAR NAME="code" ESCAPE="HTML" -->" />
960 <!-- TMPL_IF NAME="use_dropdown" -->
961 <select id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->">
963 <!-- TMPL_LOOP NAME="auth_val_loop" -->
964 <!-- TMPL_IF NAME="selected" -->
965 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected">
966 <!-- TMPL_VAR NAME="lib" -->
969 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" >
970 <!-- TMPL_VAR NAME="lib" -->
976 <input type="text" maxlength="64" value="<!-- TMPL_VAR NAME="value" -->"
977 id="<!-- TMPL_VAR NAME="form_id" -->" name="<!-- TMPL_VAR NAME="form_id" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
979 <!-- TMPL_IF NAME="password_allowed" -->
980 (Password: <input type="password" maxlength="64" value="<!-- TMPL_VAR NAME="password" -->"
981 id="<!-- TMPL_VAR NAME="form_id" -->_password" name="<!-- TMPL_VAR NAME="form_id" -->_password" />)
985 <a href="#" onclick="clear_entry(this); return false;">Clear</a>
986 <!-- TMPL_IF NAME="repeatable" -->
987 <a href="#" onclick="clone_entry(this); return false;">New</a>
994 <!-- /TMPL_IF--><!-- /TMPL_IF --><!-- /TMPL_UNLESS -->
996 <!-- TMPL_IF NAME="step_5" --><!-- TMPL_IF NAME="EnhancedMessagingPreferences" -->
997 <fieldset class="rows" id="memberentry_messaging_prefs">
998 <!-- TMPL_IF NAME="opadd" -->
999 <!-- handle changing prefs if creating new patron and changing
1002 <script language="javascript" type="text/javascript">//<![CDATA[
1003 $(document).ready(function(){
1004 var message_prefs_dirty = false;
1005 $('#memberentry_messaging_prefs > *').change(function() {
1006 message_prefs_dirty = true;
1008 $('#categorycode').change(function() {
1009 var categorycode = $(this).val();
1010 if (message_prefs_dirty) {
1011 if (!confirm('Change messaging preferences to default for this category?')) {
1015 $.getJSON('/cgi-bin/koha/members/default_messageprefs.pl?categorycode=' + categorycode,
1017 $.each(data.messaging_preferences, function(i, item) {
1018 var attrid = item.message_attribute_id;
1019 var transports = ['email', 'rss', 'sms'];
1020 $.each(transports, function(j, transport) {
1021 if (item['transport-' + transport] != ' ') {
1022 $('#' + transport + attrid).attr('checked', item['transport-' + transport]);
1024 $('#' + transport + attrid).removeAttr('checked');
1027 if (item.digest && item.digest != ' ') {
1028 $('#digest' + attrid).attr('checked', item.digest);
1030 $('#digest' + attrid).removeAttr('checked');
1032 if (item.takes_days == '1') {
1033 $('[name=' + attrid + '-DAYS]').val('' + item.days_in_advance);
1036 message_prefs_dirty = false;
1044 <input type="hidden" name="setting_messaging_prefs" value="1" />
1045 <legend>Patron messaging preferences</legend>
1046 <!-- TMPL_INCLUDE NAME="messaging-preference-form.inc" -->
1047 <!-- TMPL_IF NAME="SMSSendDriver" -->
1048 <p><label for="SMSnumber">SMS number:</label>
1049 <input type="text" id="SMSnumber" name="SMSnumber" value="<!-- TMPL_VAR NAME="SMSnumber" -->"<!--TMPL_IF NAME="opduplicate"--> onclick="this.value=''"<!-- /TMPL_IF --> />
1053 <!-- /TMPL_IF --> <!-- /TMPL_IF -->
1055 <fieldset class="action">
1056 <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
1057 <!-- TMPL_IF NAME="opadd" -->
1058 <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
1060 <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Cancel</a>
1068 <!-- TMPL_UNLESS NAME="opadd" --><div class="yui-b">
1069 <!-- TMPL_INCLUDE NAME="members-menu.inc" -->
1070 </div><!-- /TMPL_UNLESS -->
1071 <!-- /TMPL_UNLESS -->
1073 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->