1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Patrons ›
3 [% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] [% IF ( categoryname ) %] [% categoryname %] patron[% ELSE %][% IF ( I ) %] Organization patron[% END %][% IF ( A ) %] Adult patron[% END %][% IF ( C ) %] Child patron[% END %][% IF ( P ) %] Professional patron[% END %][% IF ( S ) %] Staff patron[% END %][% END %][% UNLESS ( opadd ) %] [% surname %], [% firstname %][% END %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'calendar.inc' %]
6 <script type="text/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;
23 document.form.state.value=RegExp.$3;
24 document.form.country.value=RegExp.$4;
28 update_category_code( "[% categorycode %]" );
30 if ( $("#categorycode").length > 0 ){
31 var category_code = $("#categorycode").find("option:selected").val();
32 update_category_code( category_code );
35 $("#dateofbirth").datepicker({ maxDate: "-1D" });
36 $("#entryform").preventDoubleFormSubmit();
39 function clear_entry(node) {
40 var original = $(node).parent();
41 $("textarea", original).attr('value', '');
42 $("select", original).attr('value', '');
45 function clone_entry(node) {
46 var original = $(node).parent();
47 var clone = original.clone();
49 var newId = 50 + parseInt(Math.random() * 100000);
50 $("input,select,textarea", clone).attr('id', function() {
51 return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
53 $("input,select,textarea", clone).attr('name', function() {
54 return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
56 $("label", clone).attr('for', function() {
57 return $(this).attr("for").replace(/patron_attr_\d+/, 'patron_attr_' + newId);
59 $("input#patron_attr_" + newId, clone).attr('value','');
60 $("select#patron_attr_" + newId, clone).attr('value','');
61 $(original).after(clone);
65 function update_category_code(category_code) {
66 if ( $(category_code).is("select") ) {
67 category_code = $("#categorycode").find("option:selected").val();
69 var mytables = $(".attributes_table");
70 $(mytables).find("li").hide();
71 $(mytables).find(" li[data-category_code="+category_code+"]").show();
72 $(mytables).find(" li[data-category_code='']").show();
75 var MSG_SEPARATOR = _("Separator must be / in field ");
76 var MSG_INCORRECT_DAY = _("Invalid day entered in field ");
77 var MSG_INCORRECT_MONTH = _("Invalid month entered in field ");
78 var MSG_INCORRECT_YEAR = _("Invalid year entered in field ");
79 var MSG_DUPLICATE_PATRON = _("Warning: Duplicate patron");
80 var MSG_DUPLICATE_ORGANIZATION = _("Warning: Duplicate organization");
81 var MSG_LATE_EXPIRY = _("Warning: Expiration date falls before enrollment date");
82 var MSG_MISSING_MANDATORY = _("The following fields are mandatory:");
83 var MSG_DUPLICATE_SUSPICION = _("Please confirm whether this is a duplicate patron");
84 var MSG_PASSWORD_MISMATCH = _("The passwords entered do not match");
87 <script type="text/javascript" src="[% themelang %]/js/members.js"></script>
89 <body id="pat_memberentrygen" class="pat">
90 [% INCLUDE 'header.inc' %]
91 [% INCLUDE 'patron-search.inc' %]
93 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> ›
95 Add[% IF ( categoryname ) %] [% categoryname %] patron[% ELSE %][% IF ( I ) %] Organization patron[% END %][% IF ( A ) %] Adult patron[% END %][% IF ( C ) %] Child patron[% END %][% IF ( P ) %] Professional patron[% END %][% IF ( S ) %] Staff patron[% END %][% END %]
96 [% surname %] [% firstname %]
98 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% firstname %] [% surname %]</a> › <strong>[% IF ( opduplicate ) %]Duplicate[% ELSE %]Modify[% END %][% IF ( categoryname ) %] [% categoryname %] patron[% ELSE %][% IF ( I ) %] Organization patron[% END %][% IF ( A ) %] Adult patron[% END %][% IF ( C ) %] Child patron[% END %][% IF ( P ) %] Professional patron[% END %][% IF ( S ) %] Staff patron[% END %][% END %]
99 </strong>[% END %]</div>
100 [% IF ( opadd ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
107 [% IF ( error_alert == "no_email" ) %]
108 <div class="error">This member has no email</div>
110 <div class="error">[% error_alert %]</div>
114 <div class="dialog message">Email has been sent.</div>
117 [% IF ( no_add ) %]<div class="dialog alert"><h3>Cannot add patron</h3>
118 [% IF ( no_branches ) %]<p>There are <strong>no libraries defined</strong>. [% IF ( CAN_user_parameters ) %]Please <a href="/cgi-bin/koha/admin/branches.pl">add a library</a>.[% ELSE %]An administrator must define at least one library.[% END %]</p>[% END %]
119 [% IF ( no_categories ) %]<p>There are <strong>no patron categories defined</strong>. [% IF ( CAN_user_parameters ) %]Please <a href="/cgi-bin/koha/admin/categorie.pl">add a patron category</a>.[% ELSE %]An administrator must define at least one patron category.</p>[% END %][% END %]</div>[% END %]
121 [% UNLESS ( no_add ) %]
124 Add[% IF ( categoryname ) %] [% categoryname %] patron[% ELSE %][% IF ( I ) %] Organization patron[% END %][% IF ( A ) %] Adult patron[% END %][% IF ( C ) %] Child patron[% END %][% IF ( P ) %] Professional patron[% END %][% IF ( S ) %] Staff patron[% END %][% END %] [% firstname %] [% surname %]
128 [% IF ( opduplicate ) %]Duplicate[% ELSE %]Modify[% END %][% IF ( categoryname ) %] [% categoryname %] patron[% ELSE %][% IF ( I ) %] Organization patron[% END %][% IF ( A ) %] Adult patron[% END %][% IF ( C ) %] Child patron[% END %][% IF ( P ) %] Professional patron[% END %][% IF ( S ) %] Staff patron[% END %][% END %]
129 [% firstname %] [% surname %]
133 [% IF ( check_member ) %]
134 <div class="dialog alert">
135 <h3>Duplicate patron record?</h3>
136 <p><a class="popup" href="javascript:Dopop('moremember.pl?print=brief&borrowernumber=[% check_member %]');" >View existing record</a></p>
137 <form action="/cgi-bin/koha/members/memberentry.pl" method="get"><input type="hidden" name="op" value="modify" /><input type="hidden" name="borrowernumber" value="[% check_member %]" /><input type="hidden" name="category_type" value="[% check_categorytype %]" /><input class="edit" type="submit" value="It is a duplicate. Edit existing record" /></form>
139 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off">
140 <input type="hidden" name="nodouble" value="1" />
141 <input class="new" type="submit" value="Not a duplicate. Save as new record" />
146 <div class="dialog alert">
147 <p>The following fields are wrong. Please fix them.</p>
149 [% IF ( ERROR_login_exist ) %]
150 <li id="ERROR_login_exist">Username/password already exists.</li>
152 [% IF ( ERROR_cardnumber ) %]
153 <li id="ERROR_cardnumber">Cardnumber already in use.</li>
155 [% IF ( ERROR_age_limitations ) %]
156 <li id="ERROR_age_limitations">Patron's age is incorrect for their category.
157 Ages allowed are [% age_low %]-[% age_high %].</li>
159 [% IF ( ERROR_branch ) %]
160 <li id="ERROR_branch">Library is invalid.</li>
162 [% IF ( ERROR_dateofbirth ) %]
163 <li id="ERROR_dateofbirth">Date of birth is invalid.</li>
165 [% IF ( ERROR_dateenrolled ) %]
166 <li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
168 [% IF ( ERROR_dateexpiry ) %]
169 <li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
171 [% IF ( ERROR_short_password ) %]
172 <li id="ERROR_short_password">Password must be at least [% minPasswordLength %] characters long.</li>
174 [% IF ( ERROR_password_mismatch ) %]
175 <li id="ERROR_password_mismatch">Passwords do not match.</li>
177 [% IF ( ERROR_extended_unique_id_failed ) %]
178 <li id="ERROR_extended_unique_id_failed">The attribute value
179 [% ERROR_extended_unique_id_failed %] is already is use by another patron record.</li>
186 [% UNLESS ( check_member ) %]<form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off">
187 <input type="hidden" name="nodouble" value="[% nodouble %]" /> [% END %]
188 <!-- field always hidden in different form (1,2,3) -->
189 <input type="hidden" name="BorrowerMandatoryField" value="[% BorrowerMandatoryField %]" />
190 <input type="hidden" name="category_type" value="[% category_type %]" />
191 <input type="hidden" name="updtype" value="[% updtype %]" />
192 <input type="hidden" name="select_roadtype" value="[% select_roadtype %]" />
193 <input type="hidden" name="destination" value="[% destination %]" />
194 <input type="hidden" name="check_member" value="[% check_member %]" />
195 <input type="hidden" name="borrowernumber" value="[% IF ( opduplicate ) %][% ELSE %][% borrowernumber %][% END %]" />
196 <input type="hidden" name="nodouble" value="[% IF ( opduplicate ) %][% ELSE %][% nodouble %][% END %]" />
197 [% IF ( step ) %]<input type="hidden" name="step" value="[% step %]" />[% END %]
198 [% IF ( opadd ) %]<input type="hidden" name="op" value="insert" />
199 [% ELSIF ( opduplicate ) %]
200 <input type="hidden" name="op" value="insert" />
202 <input type="hidden" name="op" value="save" />
203 [% IF step == 4 || step == 5 || step == 6 || step == 2 || step == 1 %]
204 [%# Only put the cardnumber if we arent showing it in the form later %]
206 <input type="hidden" name="cardnumber" value="[% cardnumber %]" />
212 [%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
213 <fieldset class="rows" id="memberentry_identity">
214 <legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
218 [% IF ( title_cgipopup ) %]
220 [% IF ( mandatorytitle ) %]
221 <label for="btitle" class="required">
226 [% borrotitlepopup %]
227 [% IF ( mandatorytitle ) %]<span class="required">Required</span>[% END %]
232 [% UNLESS nosurname %]
234 [% IF ( mandatorysurname ) %]
235 <label for="surname" class="required">
237 <label for="surname">
240 [% IF ( uppercasesurnames ) %]
241 [% IF ( opduplicate ) %]
242 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% surname %]" onclick="this.value=''" />
244 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% surname %]" />
247 [% IF ( opduplicate ) %]
248 <input type="text" id="surname" name="surname" size="20" value="[% surname %]" onclick="this.value=''" />
250 <input type="text" id="surname" name="surname" size="20" value="[% surname %]" />
253 [% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %]
257 [% UNLESS nofirstname %]
259 [% IF ( mandatoryfirstname ) %]
260 <label for="firstname" class="required">
262 <label for="firstname">
265 <input type="text" id="firstname" name="firstname" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% firstname %][% END %]" />
266 [% IF ( mandatoryfirstname ) %]<span class="required">Required</span>[% END %]
269 [% UNLESS nodateofbirth %]
271 [% IF ( mandatorydateofbirth ) %]
272 <label for="dateofbirth" class="required">
274 <label for="dateofbirth">
276 Date of birth: </label>
279 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="[% IF ( opduplicate ) %][% ELSE %][% dateofbirth %][% END %]" />
281 <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% dateofbirth %][% END %]" />
284 [% IF ( mandatorydateofbirth ) %]<span class="required">Required</span>[% END %]
285 [% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %]
286 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
289 [% UNLESS noinitials %]
291 [% IF ( mandatoryinitials ) %]
292 <label for="initials" class="required">
294 <label for="initials">
297 [% IF ( opduplicate ) %]
298 <input type="text" id="initials" name="initials" size="20" value="[% initials %]" onclick="this.value=''" />
300 <input type="text" id="initials" name="initials" size="20" value="[% initials %]" />
302 [% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %]
306 [% UNLESS noothernames %]
308 [% IF ( mandatoryothernames ) %]
309 <label for="othernames" class="required">
311 <label for="othernames">
314 [% IF ( opduplicate ) %]
315 <input type="text" id="othernames" name="othernames" size="20" value="[% othernames %]" onclick="this.value=''" />
317 <input type="text" id="othernames" name="othernames" size="20" value="[% othernames %]" />
319 [% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %]
320 [% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]
328 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
330 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
333 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
335 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
338 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
340 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
347 [% END # hide fieldset %]
349 [% IF ( showguarantor ) %]<input type="hidden" id="guarantorid" name="guarantorid" value="[% guarantorid %]" />
350 <fieldset class="rows">
351 <legend>Guarantor information</legend>
354 [% IF ( guarantorid ) %]
355 <li id="contact-details">
357 <li id="contact-details" style="display: none">
359 <span class="label">Organization #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
362 <label for="contactname">Organization name: </label>
363 [% IF ( guarantorid ) %]
364 <span>[% contactname %]</span>
365 <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname %]" />
367 [% IF ( opduplicate ) %]
368 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" onclick="this.value=''" />
370 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" />
376 [% IF ( guarantorid ) %]
377 <li id="contact-details">
379 <li id="contact-details" style="display: none">
381 <span class="label">Patron #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
383 [% UNLESS nocontactname %]
385 <label for="contactname">Surname: </label>
386 [% IF ( guarantorid ) %]
387 <span>[% contactname %]</span>
388 <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname %]" />
390 [% IF ( opduplicate ) %]
391 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" onclick="this.value=''" />
393 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" />
398 [% UNLESS nocontactfirstname %]
400 <label for="contactfirstname">First name: </label>
401 [% IF ( guarantorid ) %]
402 <span>[% contactfirstname %]</span>
403 <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="[% contactfirstname %]" />
405 [% IF ( opduplicate ) %]
406 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="[% contactfirstname %]" onclick="this.value=''" />
408 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="[% contactfirstname %]" />
413 [% IF ( relshiploop ) %]
415 <label for="relationship">Relationship: </label>
416 <select name="relationship" id="relationship" >
417 [% FOREACH relshiploo IN relshiploop %]
418 [% IF ( relshiploo.selected ) %]
419 <option value="[% relshiploo.relationship %]" selected="selected" >[% relshiploo.relationship %]</option>
421 <option value="[% relshiploo.relationship %]">[% relshiploo.relationship %]</option>
430 <span class="label"> </span>
431 [% IF ( guarantorid ) %]
432 <input id="guarantorsearch" type="button" value="Change" onclick="Dopopguarantor('guarantor_search.pl?category_type=[% category_type %]');" />
434 <input id="guarantorsearch" type="button" value="Set to patron" onclick="Dopopguarantor('guarantor_search.pl?category_type=[% category_type %]');" />
436 <input id="guarantordelete" type="button" value="Delete" />
442 [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
443 <fieldset class="rows">
444 <legend id="main_address_lgd">Main address</legend><ol>
445 [% UNLESS nostreetnumber %]
447 [% IF ( mandatorystreetnumber ) %]
448 <label for="streetnumber" class="required">
450 <label for="streetnumber">
452 Street number: </label>
453 [% IF ( opduplicate ) %]
454 <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" onclick="this.value=''" />
456 <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" />
458 [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %]
461 [% UNLESS nostreettype %]
462 [% IF ( road_cgipopup ) %]
464 [% IF ( mandatorystreettype ) %]
465 <label for="streettype" class="required">
467 <label for="streettype">
469 Street type: </label>
471 [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %]
475 [% UNLESS noaddress %]
477 [% IF ( mandatoryaddress ) %]
478 <label for="address" class="required">
480 <label for="address">
483 [% IF ( opduplicate ) %]
484 <input type="text" id="address" name="address" size="35" value="[% address %]" onclick="this.value=''" />
486 <input type="text" id="address" name="address" size="35" value="[% address %]" />
488 [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
491 [% UNLESS noaddress2 %]
493 [% IF ( mandatoryaddress2 ) %]
494 <label for="address2" class="required">
496 <label for="address2">
499 [% IF ( opduplicate ) %]
500 <input type="text" id="address2" name="address2" size="35" value="[% address2 %]" onclick="this.value=''" />
502 <input type="text" id="address2" name="address2" size="35" value="[% address2 %]" />
504 [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
509 [% IF ( mandatorycity ) %]
510 <label for="city" class="required">
515 [% IF ( opduplicate ) %]
516 <input type="text" id="city" name="city" size="20" value="[% city %]" onclick="this.value=''" />
518 <input type="text" id="city" name="city" size="20" value="[% city %]" />
520 [% IF ( city_cgipopup ) %]or <strong>choose</strong>
521 <select id="select_city" name="select_city">
522 [% FOREACH city_loo IN city_loop %]
523 [% IF ( city_loo.selected ) %]
524 <option value="[% city_loo.city_zipcode %]|[% city_loo.city_name %]|[% city_loo.city_state %]|[% city_loo.city_country %]" selected="selected">
526 <option value="[% city_loo.city_zipcode %]|[% city_loo.city_name %]|[% city_loo.city_state %]|[% city_loo.city_country %]">
528 [% city_loo.city_name %] [% city_loo.city_state %] [% city_loo.city_zipcode %]
533 [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %]
538 [% IF ( mandatorystate ) %]
539 <label for="state" class="required">
544 <input type="text" name="state" id="state" size="20" value="[% state %]" />
545 [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %]
548 [% UNLESS nozipcode %]
550 [% IF ( mandatoryzipcode ) %]
551 <label for="zipcode" class="required">
553 <label for="zipcode">
555 Zip/Postal code: </label>
556 [% IF ( opduplicate ) %]
557 <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" onclick="this.value=''" />
559 <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" />
561 [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
564 [% UNLESS nocountry %]
566 [% IF ( mandatorycountry ) %]
567 <label for="country" class="required">
569 <label for="country">
572 [% IF ( opduplicate ) %]
573 <input type="text" name="country" id="country" size="20" value="[% country %]" onclick="this.value=''" />
575 <input type="text" name="country" id="country" size="20" value="[% country %]" />
577 [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]
582 [% END # nostreet && nocity etc group%]
584 [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
585 <fieldset class="rows" id="memberentry_contact">
586 <legend id="contact_lgd">Contact</legend><ol>
589 [% IF ( mandatoryphone ) %]
590 <label for="phone" class="required">
594 Primary phone: </label>
595 [% IF ( opduplicate ) %]
596 <input type="text" id="phone" name="phone" value="[% phone %]" onclick="this.value=''" />
598 <input type="text" id="phone" name="phone" value="[% phone %]" />
600 [% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
604 [% UNLESS nophonepro %]
606 [% IF ( mandatoryphonepro ) %]
607 <label for="phonepro" class="required">
609 <label for="phonepro">
611 Secondary phone: </label>
612 [% IF ( opduplicate ) %]
613 <input type="text" id="phonepro" name="phonepro" value="[% phonepro %]" onclick="this.value=''" />
615 <input type="text" id="phonepro" name="phonepro" value="[% phonepro %]" />
617 [% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %]
620 [% UNLESS nomobile %]
622 [% IF ( mandatorymobile ) %]
623 <label for="mobile" class="required">
627 Other phone: </label>
628 [% IF ( opduplicate ) %]
629 <input type="text" id="mobile" name="mobile" value="[% mobile %]" onclick="this.value=''" />
631 <input type="text" id="mobile" name="mobile" value="[% mobile %]" />
633 [% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %]
638 [% IF ( mandatoryemail ) %]
639 <label for="email" class="required">
643 Primary email: </label>
644 [% IF ( opduplicate ) %]
645 <input type="text" id="email" name="email" size="45" value="[% email %]" onclick="this.value=''" />
647 <input type="text" id="email" name="email" size="45" value="[% email %]" />
649 [% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
653 [% UNLESS noemailpro %]
655 [% IF ( mandatoryemailpro ) %]
656 <label for="emailpro" class="required">
658 <label for="emailpro">
660 Secondary email: </label>
661 [% IF ( opduplicate ) %]
662 <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro %]" onclick="this.value=''" />
664 <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro %]" />
666 [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
671 [% IF ( mandatoryfax ) %]
672 <label for="fax" class="required">
677 [% IF ( opduplicate ) %]
678 <input type="text" id="fax" name="fax" value="[% fax %]" onclick="this.value=''" />
680 <input type="text" id="fax" name="fax" value="[% fax %]" />
682 [% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %]
687 [%END # hide fieldset %]
689 <!-- ************************ STEP_1 *********************** -->
693 [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
694 <fieldset class="rows" id="memberentry_address">
695 <legend id="alt_address_lgd">Alternate address</legend><ol>
696 [% UNLESS noB_address %]
698 [% IF ( mandatoryB_address ) %]
699 <label for="B_address" class="required">
701 <label for="B_address">
704 [% IF ( opduplicate ) %]
705 <input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" onclick="this.value=''" />
707 <input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" />
709 [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
712 [% UNLESS noB_address2 %]
714 [% IF ( mandatoryB_address2 ) %]
715 <label for="B_address2" class="required">
717 <label for="B_address2">
720 [% IF ( opduplicate ) %]
721 <input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" onclick="this.value=''" />
723 <input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" />
725 [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
728 [% UNLESS noB_city %]
730 [% IF ( mandatoryB_city ) %]
731 <label for="B_city" class="required" >
736 <input type="text" id="B_city" name="B_city" size="20" value="[% B_city %]" />
737 [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %]
740 [% UNLESS noB_state %]
742 [% IF ( mandatoryB_state ) %]
743 <label for="B_state" class="required" >
745 <label for="B_state">
748 <input type="text" id="B_state" name="B_state" size="20" value="[% B_state %]" />
749 [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %]
752 [% UNLESS noB_zipcode %]
754 [% IF ( mandatoryB_zipcode ) %]
755 <label for="B_zipcode" class="required">
757 <label for="B_zipcode">
759 Zip/Postal code: </label>
760 [% IF ( opduplicate ) %]
761 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" onclick="this.value=''" />
763 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" />
765 [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
768 [% UNLESS noB_country %]
770 [% IF ( mandatoryB_country ) %]
771 <label for="B_country" class="required">
773 <label for="B_country">
776 [% IF ( opduplicate ) %]
777 <input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" onclick="this.value=''" />
779 <input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" />
781 [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
784 [% UNLESS noB_phone %]
786 [% IF ( mandatoryB_phone ) %]
787 <label for="B_phone" class="required">
789 <label for="B_phone">
792 [% IF ( opduplicate ) %]
793 <input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" onclick="this.value=''" />
795 <input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" />
797 [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
800 [% UNLESS noB_email %]
802 [% IF ( mandatoryB_email ) %]
803 <label for="B_email" class="required">
805 <label for="B_email">
808 [% IF ( opduplicate ) %]
809 <input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" onclick="this.value=''" />
811 <input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" />
813 [% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li>
815 [% UNLESS nocontactnote %]
817 [% IF ( mandatorycontactnote ) %]
818 <label for="contactnote" class="required">
820 <label for="contactnote">
822 Contact note: </label>
823 <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% contactnote %]</textarea>
824 [% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %]
829 [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
832 [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
833 <fieldset class="rows" id="memberentry_altaddress">
834 <legend id="alt_contact_lgd">Alternate contact</legend><ol>
835 [% UNLESS noaltcontactsurname %]
837 [% IF ( mandatoryaltcontactsurname ) %]
838 <label for="altcontactsurname" class="required">
840 <label for="altcontactsurname">
843 [% IF ( opduplicate ) %]
844 <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" onclick="this.value=''" />
846 <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" />
848 [% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
851 [% UNLESS noaltcontactfirstname %]
853 [% IF ( mandatoryaltcontactfirstname ) %]
854 <label for="altcontactfirstname" class="required">
856 <label for="altcontactfirstname">
859 [% IF ( opduplicate ) %]
860 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" onclick="this.value=''" />
862 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" />
864 [% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
867 [% UNLESS noaltcontactaddress1 %]
869 [% IF ( mandatoryaltcontactaddress1 ) %]
870 <label for="altcontactaddress1" class="required">
872 <label for="altcontactaddress1">
875 [% IF ( opduplicate ) %]
876 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" onclick="this.value=''" size="40" />
878 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" size="40" />
880 [% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
883 [% UNLESS noaltcontactaddress2 %]
885 [% IF ( mandatoryaltcontactaddress2 ) %]
886 <label for="altcontactaddress2" class="required">
888 <label for="altcontactaddress2">
891 [% IF ( opduplicate ) %]
892 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" onclick="this.value=''" size="40" />
894 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" size="40" />
896 [% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
899 [% UNLESS noaltcontactaddress3 %]
901 [% IF ( mandatoryaltcontactaddress3 ) %]
902 <label for="altcontactaddress3" class="required">
904 <label for="altcontactaddress3">
907 <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% altcontactaddress3 %]" size="20" />
908 [% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
911 [% UNLESS noaltcontactstate %]
913 [% IF ( mandatoryaltcontactstate ) %]
914 <label for="altcontactstate" class="required">
916 <label for="altcontactstate">
919 <input type="text" name="altcontactstate" id="altcontactstate" value="[% altcontactstate %]" size="20" />
920 [% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
923 [% UNLESS noaltcontactzipcode %]
925 [% IF ( mandatoryaltcontactzipcode ) %]
926 <label for="altcontactzipcode" class="required">
928 <label for="altcontactzipcode">
930 Zip/Postal code:</label>
931 [% IF ( opduplicate ) %]
932 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" onclick="this.value=''" size="5" />
934 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" size="5" />
936 [% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
939 [% UNLESS noaltcontactcountry %]
941 [% IF ( mandatoryaltcontactcountry ) %]
942 <label for="altcontactcountry" class="required">
944 <label for="altcontactcountry">
947 [% IF ( opduplicate ) %]
948 <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" onclick="this.value=''" size="20" />
950 <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" size="20" />
952 [% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
955 [% UNLESS noaltcontactphone %]
957 [% IF ( mandatoryaltcontactphone ) %]
958 <label for="altcontactphone" class="required">
960 <label for="altcontactphone">
963 [% IF ( opduplicate ) %]
964 <input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" onclick="this.value=''" />
966 <input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" />
968 [% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
973 [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %]
978 <fieldset class="rows" id="memberentry_library_management">
979 <legend id="library_management_lgd">Library management</legend><ol>
980 [% UNLESS nocardnumber %]
981 <li> [% IF ( mandatorycardnumber ) %]
982 <label for="cardnumber" class="required">
984 <label for="cardnumber">
986 Card number: </label>
987 <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" />
988 [% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]</li>
990 [% UNLESS nobranchcode %]
992 [%- IF ( mandatorybranchcode ) -%]
993 <label for="branchcode" class="required">
995 <label for="branchcode">
998 <select name="branchcode" size="1" id="branchcode">
999 <option value=""></option>
1000 [%- FOREACH branchloo IN branchloop %]
1001 [% IF ( branchloo.selected ) -%]
1002 <option value="[% branchloo.branchcode %]" selected="selected">[% branchloo.branchname %]</option>
1004 <option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option>
1008 [% IF ( mandatorybranchcode ) -%]
1009 <span class="required">Required</span>
1014 <label for="categorycode">Category: </label>
1015 <select id="categorycode" name="categorycode" onchange="update_category_code(this);">
1016 [% FOREACH typeloo IN typeloop %]
1017 [% FOREACH categoryloo IN typeloo.categoryloop %]
1018 [% IF ( loop.first ) %]
1019 [% IF ( typeloo.typename_C ) %]<optgroup label="Child" value="C">[% END %]
1020 [% IF ( typeloo.typename_A ) %]<optgroup label="Adult" value="A">[% END %]
1021 [% IF ( typeloo.typename_S ) %]<optgroup label="Staff" value="S">[% END %]
1022 [% IF ( typeloo.typename_I ) %]<optgroup label="Organization" value="I">[% END %]
1023 [% IF ( typeloo.typename_P ) %]<optgroup label="Professional" value="P">[% END %]
1024 [% IF ( typeloo.typename_X ) %]<optgroup label="Statistical" value="X">[% END %]
1026 [% IF ( categoryloo.categorycodeselected ) %]
1027 <option value="[% categoryloo.categorycode %]" selected="selected" data-typename="[% typeloo.typename %]">[% categoryloo.categoryname %]</option>
1029 <option value="[% categoryloo.categorycode %]" data-typename="[% typeloo.typename %]">[% categoryloo.categoryname %]</option>
1031 [% IF ( loop.last ) %]
1038 [% UNLESS nosort1 %]
1040 [% IF ( mandatorysort1 ) %]
1041 <label for="sort1" class="required">
1046 [% IF ( CGIsort1 ) %]
1049 [% IF ( opduplicate ) %]
1050 <input type="text" id="sort1" name="sort1" size="20" value="[% sort1 %]" onclick="this.value=''" />
1052 <input type="text" id="sort1" name="sort1" size="20" value="[% sort1 %]" />
1054 [% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %]
1058 [% UNLESS nosort2 %]
1060 [% IF ( mandatorysort2 ) %]
1061 <label for="sort2" class="required">
1066 [% IF ( CGIsort2 ) %]
1069 [% IF ( opduplicate ) %]
1070 <input type="text" id="sort2" name="sort2" size="20" value="[% sort2 %]" onclick="this.value=''" />
1072 <input type="text" id="sort2" name="sort2" size="20" value="[% sort2 %]" />
1074 [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
1080 [% UNLESS nodateenrolled && noopacnote && noborrowernotes %]
1081 <fieldset class="rows" id="memberentry_subscription">
1082 <legend id="library_setup_lgd">Library set-up</legend><ol>
1083 [% UNLESS nodateenrolled %]
1085 [% IF ( mandatorydateenrolled ) %]
1086 <label for="from" class="required">
1090 Registration date: </label>
1092 <input type="text" id="from" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled %]" class="datepickerfrom" />
1094 <input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled %]" class="datepickerfrom" />
1096 [% IF ( mandatorydateenrolled ) %]<span class="required">Required</span>[% END %]
1097 [% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %]
1098 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
1101 [% UNLESS nodateexpiry %]
1104 <li style="display:none">
1106 [% IF ( mandatorydateexpiry ) %]
1107 <label for="to" class="required">
1111 Expiry date (leave blank for auto calc) </label>
1113 [% UNLESS ( opadd ) %]
1114 <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry %]" class="datepickerto" />
1116 <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" />
1119 [% UNLESS ( opadd ) %]
1120 <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry %]" class="datepickerto" />
1122 <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" class="datepickerto" />
1125 [% IF ( mandatorydateexpiry ) %]<span class="required">Required</span>[% END %]
1126 [% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %]
1127 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
1129 [% UNLESS noopacnote %]
1131 [% IF ( mandatoryopacnote ) %]
1132 <label for="opacnote" class="required">
1134 <label for="opacnote">
1137 <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote %]</textarea>
1138 <div class="hint">This message appears on this patron's user page in the OPAC</div>
1139 [% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %]
1142 [% UNLESS noborrowernotes %]
1144 [% IF ( mandatoryborrowernotes ) %]
1145 <label for="borrowernotes" class="required">
1147 <label for="borrowernotes">
1149 Circulation note: </label>
1150 <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes %]</textarea>
1151 <div class="hint">This message displays when checking out to this patron</div>
1152 [% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %]
1157 [% END # hide fieldset %]
1159 [% UNLESS nouserid && nopassword %]
1160 <fieldset class="rows" id="memberentry_userid">
1161 <legend id="opac_staff_login_lgd">OPAC/Staff login</legend><ol>
1162 [% UNLESS nouserid %]
1164 [% IF ( mandatoryuserid ) %]
1165 <label for="userid" class="required">
1167 <label for="userid">
1171 [% IF ( NoUpdateLogin ) %]
1172 [% IF ( opduplicate ) %]
1173 <input type="text" id="userid" name="userid" size="20" disabled="disabled" />
1175 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid %]" />
1178 [% IF ( opduplicate ) %]
1179 <input type="text" id="userid" name="userid" size="20" value="" />
1181 <input type="text" id="userid" name="userid" size="20" value="[% userid %]" />
1185 [% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %]
1188 [% UNLESS nopassword %]
1190 [% IF ( mandatorypassword ) %]
1191 <label for="password" class="required">
1193 <label for="password">
1197 [% IF ( NoUpdateLogin ) %]
1198 [% IF ( opduplicate ) %]
1199 <input type="password" id="password" name="password" size="20" disabled="disabled" />
1201 <input type="password" id="password" name="password" size="20" disabled="disabled" value="[% password %]" />
1204 [% IF ( opduplicate ) %]
1205 <input type="password" id="password" name="password" size="20" />
1207 <input type="password" id="password" name="password" size="20" value="[% password %]" />
1211 [% IF ( password ) %]
1212 [% IF ( NoUpdateLogin ) %]
1213 <input type="password" id="password" name="password" size="20" disabled="disabled" value="****" />
1215 [% IF ( opduplicate ) %]
1216 <input type="password" id="password" name="password" size="20" />
1218 <input type="password" id="password" name="password" size="20" value="****" />
1222 [% IF ( NoUpdateLogin ) %]
1223 <input type="password" id="password" name="password" size="20" disabled="disabled" value="" />
1225 <input type="password" id="password" name="password" size="20" value="" />
1229 [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_short_password ) %]<span class="required">Password is too short</span>[% END %]
1230 [% IF ( minPasswordLength ) %]<div class="hint">Minimum password length: [% minPasswordLength %]</div>[% END %]
1233 [% IF ( mandatorypassword ) %]
1234 <label for="password2" class="required">
1236 <label for="password2">
1238 Confirm password: </label>
1240 [% IF ( NoUpdateLogin ) %]
1241 [% IF ( opduplicate ) %]
1242 <input type="password" id="password2" name="password2" size="20" disabled="disabled" />
1244 <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="[% password %]" />
1247 [% IF ( opduplicate ) %]
1248 <input type="password" id="password2" name="password2" size="20" />
1250 <input type="password" id="password2" name="password2" size="20" value="[% password %]" />
1254 [% IF ( password ) %]
1255 [% IF ( NoUpdateLogin ) %]
1256 <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="****" />
1258 [% IF ( opduplicate ) %]
1259 <input type="password" id="password2" name="password2" size="20" />
1261 <input type="password" id="password2" name="password2" size="20" value="****" />
1265 [% IF ( NoUpdateLogin ) %]
1266 <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="" />
1268 <input type="password" id="password2" name="password2" size="20" value="" />
1272 [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
1276 [% END # hide fieldset %][% END %]
1277 <!--this zones are not necessary in modif mode -->
1278 [% UNLESS ( opadd ) %]
1279 <fieldset class="rows">
1280 <legend>Patron account flags</legend>
1282 [% FOREACH flagloo IN flagloop %]
1283 <li><label class="radio" for="yes[% flagloo.name %]">
1284 [% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no address:[% END %]
1285 [% IF ( flagloo.key == 'debarred' ) %]Restricted:[% END %]
1286 [% IF ( flagloo.key == 'lost' ) %]Lost card:[% END %]
1288 <label for="yes[% flagloo.name %]">Yes </label>
1289 [% IF ( flagloo.yes ) %]
1290 <input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" checked="checked" />
1292 <input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" />
1294 <label for="no[% flagloo.name %]">No </label>
1295 [% IF ( flagloo.no ) %]
1296 <input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" checked="checked"/>
1298 <input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" />
1304 <label for="yesdebarred" class="radio">Restricted: </label>
1305 [% IF ( debarred ) %]
1306 <label for="yesdebarred">Yes </label>
1307 <input type="radio" id="yesdebarred" name="debarred" value="1" checked="checked"/>
1308 <label for="nodebarred">No </label>
1309 <input type="radio" id="nodebarred" name="debarred" value="0"/>
1311 <label for="yesdebarred">Yes </label>
1312 <input type="radio" id="yesdebarred" name="debarred" value="1" />
1313 <label for="nodebarred">No </label>
1314 <input type="radio" id="nodebarred" name="debarred" value="0" checked="checked"/>
1317 <span id="debarreduntil"><label for="datedebarred" class="inline">Until:</label>
1318 [% IF opduplicate %]
1319 <input type="text" name="datedebarred" id="datedebarred" class="debarred datepicker" value="[% datedebarred %]" onclick="this.value=''" />
1321 <input type="text" name="datedebarred" id="datedebarred" class="debarred datepicker" value="[% datedebarred %]" />
1323 <span class="hint">(optional)</span> </span>
1326 <label for="debarredcomment" class="radio">Comment:</label>
1327 [% IF ( opduplicate ) %]
1328 <textarea id="debarredcomment" name="debarredcomment" cols="55" rows="3" onclick="this.value=''">[% debarredcomment %]</textarea>
1330 <textarea id="debarredcomment" name="debarredcomment" cols="55" rows="3">[% debarredcomment %]</textarea>
1341 [% IF ( step_4 ) %][% IF ( ExtendedPatronAttributes ) %][% UNLESS ( no_patron_attribute_types ) %]
1342 <fieldset class="rows" id="memberentry_patron_attributes">
1343 <input type="hidden" name="setting_extended_patron_attributes" value="1" />
1344 <legend>Additional attributes and identifiers</legend>
1345 [% FOREACH pa_loo IN patron_attributes %]
1346 [% IF pa_loo.class %]
1347 <fieldset id="aai_[% pa_loo.class %]">
1348 <legend>[% pa_loo.lib %]</legend>
1350 <ol class="attributes_table">
1351 [% FOREACH patron_attribute IN pa_loo.items %]
1352 <li data-category_code="[% patron_attribute.category_code %]">
1353 <label for="[% patron_attribute.form_id %]">[% patron_attribute.description %]: </label>
1354 <input type="hidden" id="[% patron_attribute.form_id %]_code" name="[% patron_attribute.form_id %]_code" value="[% patron_attribute.code |html %]" />
1355 [% IF ( patron_attribute.use_dropdown ) %]
1356 <select id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]">
1358 [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
1359 [% IF ( auth_val_loo.selected ) %]
1360 <option value="[% auth_val_loo.authorised_value %]" selected="selected">
1361 [% auth_val_loo.lib %]
1364 <option value="[% auth_val_loo.authorised_value %]" >
1365 [% auth_val_loo.lib %]
1371 [% IF ( opduplicate ) %]
1372 <textarea rows="2" cols="30" id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]" onclick="this.value=''" >[% patron_attribute.value %]</textarea>
1374 <textarea rows="2" cols="30" id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]">[% patron_attribute.value %]</textarea>
1377 [% IF ( patron_attribute.password_allowed ) %]
1378 (<label class="yesno" for="[% patron_attribute.form_id %]_password">Password:</label> <input type="password" maxlength="64" value="[% patron_attribute.password %]"
1379 id="[% patron_attribute.form_id %]_password" name="[% patron_attribute.form_id %]_password" />)
1381 <a href="#" class="clear-field" onclick="clear_entry(this); return false;">Clear</a>
1382 [% IF ( patron_attribute.repeatable ) %]
1383 <a href="#" class="clone-field" onclick="clone_entry(this); return false;">New</a>
1388 [% IF pa_loo.class %]</fieldset>[% END %]
1391 [% END %][% END %][% END %]
1393 [% IF ( step_5 ) %][% IF ( EnhancedMessagingPreferences ) %]
1394 <fieldset class="rows" id="memberentry_messaging_prefs">
1396 <!-- handle changing prefs if creating new patron and changing
1399 <script type="text/javascript">//<![CDATA[
1400 $(document).ready(function(){
1401 var message_prefs_dirty = false;
1402 $('#memberentry_messaging_prefs > *').change(function() {
1403 message_prefs_dirty = true;
1405 $('#categorycode').change(function() {
1406 var categorycode = $(this).val();
1407 if (message_prefs_dirty) {
1408 if (!confirm('Change messaging preferences to default for this category?')) {
1412 $.getJSON('/cgi-bin/koha/members/default_messageprefs.pl?categorycode=' + categorycode,
1414 $.each(data.messaging_preferences, function(i, item) {
1415 var attrid = item.message_attribute_id;
1416 var transports = ['email', 'rss', 'sms'];
1417 $.each(transports, function(j, transport) {
1418 if (item['transports_' + transport] == 1) {
1419 $('#' + transport + attrid).attr('checked', 'checked');
1421 $('#' + transport + attrid).removeAttr('checked');
1424 if (item.digest && item.digest != ' ') {
1425 $('#digest' + attrid).attr('checked', item.digest);
1427 $('#digest' + attrid).removeAttr('checked');
1429 if (item.takes_days == '1') {
1430 $('[name=' + attrid + '-DAYS]').val('' + item.days_in_advance);
1433 message_prefs_dirty = false;
1441 <input type="hidden" name="setting_messaging_prefs" value="1" />
1442 <legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend>
1444 <p>If no preferences are selected, the default preferences for the category chosen will be applied on save, otherwise your selection here is saved</p>
1446 [% INCLUDE 'messaging-preference-form.inc' %]
1447 [% IF ( SMSSendDriver ) %]
1448 <p><label for="SMSnumber">SMS number:</label>
1449 [% IF ( opduplicate ) %]
1450 <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" onclick="this.value=''" />
1452 <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" />
1459 [% UNLESS ( check_member ) %]
1460 <fieldset class="action">
1461 <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
1463 <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
1465 <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Cancel</a>
1474 [% UNLESS ( opadd ) %]<div class="yui-b">
1475 [% INCLUDE 'members-menu.inc' %]
1479 [% INCLUDE 'intranet-bottom.inc' %]