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 function clear_entry(node) {
29 var original = node.parentNode.parentNode;
30 $("input[type=text]", original).attr('value', '');
31 $("select", original).attr('value', '');
34 function clone_entry(node) {
35 var original = node.parentNode.parentNode;
36 var clone = original.cloneNode(true);
37 var newId = 50 + parseInt(Math.random() * 100000);
38 $("input", clone).attr('id', function() {
39 return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
41 $("input", clone).attr('name', function() {
42 return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
44 $("select", clone).attr('id', function() {
45 return this.id.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
47 $("select", clone).attr('name', function() {
48 return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
50 $("input#patron_attr_" + newId, clone).attr('value','');
51 $("select#patron_attr_" + newId, clone).attr('value','');
52 original.parentNode.insertBefore(clone, original.nextSibling);
54 var MSG_SEPARATOR = _("Separator must be / in field ");
55 var MSG_INCORRECT_DAY = _("Invalid day entered in field ");
56 var MSG_INCORRECT_MONTH = _("Invalid month entered in field ");
57 var MSG_INCORRECT_YEAR = _("Invalid year entered in field ");
58 var MSG_DUPLICATE_PATRON = _("Warning: Duplicate patron");
59 var MSG_DUPLICATE_ORGANIZATION = _("Warning: Duplicate organization");
60 var MSG_LATE_EXPIRY = _("Warning: Expiration date falls before enrollment date");
61 var MSG_MISSING_MANDATORY = _("The following fields are mandatory:");
62 var MSG_DUPLICATE_SUSPICION = _("Please confirm whether this is a duplicate patron");
63 var MSG_PASSWORD_MISMATCH = _("The passwords entered do not match");
66 <script type="text/javascript" src="[% themelang %]/js/members.js"></script>
69 [% INCLUDE 'header.inc' %]
70 [% INCLUDE 'patron-search.inc' %]
72 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> ›
74 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 %]
75 [% surname %] [% firstname %]
77 <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 %]
78 </strong>[% END %]</div>
79 [% IF ( opadd ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
85 [% IF ( no_add ) %]<div class="dialog alert"><h3>Cannot add patron</h3>
86 [% 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 %]
87 [% 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 %]
89 [% UNLESS ( no_add ) %]
92 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 %]
96 [% 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 %]
97 [% firstname %] [% surname %]
101 [% IF ( check_member ) %]
102 <div class="dialog alert">
103 <h3>Duplicate patron record?</h3>
104 <p><a class="popup" href="javascript:Dopop('moremember.pl?print=brief&borrowernumber=[% check_member %]');" >View existing record</a></p>
105 <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>
107 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
108 <input type="hidden" name="nodouble" value="1" />
109 <input class="new" type="submit" value="Not a duplicate. Save as new record" />
115 <div>Debug is on (level [% debug %])</div>
119 <div class="dialog alert">
120 <p>The following fields are wrong. Please fix them.</p>
122 [% IF ( ERROR_login_exist ) %]
123 <li id="ERROR_login_exist">Username/password already exists.</li>
125 [% IF ( ERROR_cardnumber ) %]
126 <li id="ERROR_cardnumber">Cardnumber already in use.</li>
128 [% IF ( ERROR_age_limitations ) %]
129 <li id="ERROR_age_limitations">Patron's age is incorrect for their category.
130 Ages allowed are [% ERROR_age_limitations %].</li>
132 [% IF ( ERROR_branch ) %]
133 <li id="ERROR_branch">Library is invalid.</li>
135 [% IF ( ERROR_dateofbirth ) %]
136 <li id="ERROR_dateofbirth">Date of birth is invalid.</li>
138 [% IF ( ERROR_dateenrolled ) %]
139 <li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
141 [% IF ( ERROR_dateexpiry ) %]
142 <li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
144 [% IF ( ERROR_short_password ) %]
145 <li id="ERROR_short_password">Password must be at least [% minPasswordLength %] characters long.</li>
147 [% IF ( ERROR_password_mismatch ) %]
148 <li id="ERROR_password_mismatch">Passwords do not match.</li>
150 [% IF ( ERROR_extended_unique_id_failed ) %]
151 <li id="ERROR_extended_unique_id_failed">The attribute value
152 [% ERROR_extended_unique_id_failed %] is already is use by another patron record.</li>
159 [% UNLESS ( check_member ) %]<form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post">
160 <input type="hidden" name="nodouble" value="[% nodouble %]" /> [% END %]
161 <!-- field always hidden in different form (1,2,3) -->
162 <input type="hidden" name="BorrowerMandatoryField" value="[% BorrowerMandatoryField %]" />
163 <input type="hidden" name="category_type" value="[% category_type %]" />
164 <input type="hidden" name="updtype" value="[% updtype %]" />
165 <input type="hidden" name="select_roadtype" value="[% select_roadtype %]" />
166 <input type="hidden" name="destination" value="[% destination %]" />
167 <input type="hidden" name="check_member" value="[% check_member %]" />
168 <input type="hidden" name="borrowernumber" value="[% IF ( opduplicate ) %][% ELSE %][% borrowernumber %][% END %]" />
169 <input type="hidden" name="nodouble" value="[% IF ( opduplicate ) %][% ELSE %][% nodouble %][% END %]" />
170 [% IF ( step ) %]<input type="hidden" name="step" value="[% step %]" />[% END %]
171 [% IF ( opadd ) %]<input type="hidden" name="op" value="insert" />
172 [% ELSIF ( opduplicate ) %]
173 <input type="hidden" name="op" value="insert" />
175 <input type="hidden" name="op" value="save" />
176 [% IF step == 4 || step == 5 || step == 6 || step == 2 || step == 1 %]
177 [%# Only put the cardnumber if we arent showing it in the form later %]
179 <input type="hidden" name="cardnumber" value="[% cardnumber %]" />
185 [%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
186 <fieldset class="rows" id="memberentry_identity">
187 <legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
191 [% IF ( title_cgipopup ) %]
193 [% IF ( mandatorytitle ) %]
194 <label for="btitle" class="required">
199 [% borrotitlepopup %]
200 [% IF ( mandatorytitle ) %]<span class="required">Required</span>[% END %]
205 [% UNLESS nosurname %]
207 [% IF ( mandatorysurname ) %]
208 <label for="surname" class="required">
210 <label for="surname">
213 [% IF ( uppercasesurnames ) %]
214 [% IF ( opduplicate ) %]
215 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% surname %]" onclick="this.value=''" />
217 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% surname %]" />
220 [% IF ( opduplicate ) %]
221 <input type="text" id="surname" name="surname" size="20" value="[% surname %]" onclick="this.value=''" />
223 <input type="text" id="surname" name="surname" size="20" value="[% surname %]" />
226 [% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %]
230 [% UNLESS nofirstname %]
232 [% IF ( mandatoryfirstname ) %]
233 <label for="firstname" class="required">
235 <label for="firstname">
238 <input type="text" id="firstname" name="firstname" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% firstname %][% END %]" />
239 [% IF ( mandatoryfirstname ) %]<span class="required">Required</span>[% END %]
242 [% UNLESS nodateofbirth %]
244 [% IF ( mandatorydateofbirth ) %]
245 <label for="dateofbirth" class="required">
247 <label for="dateofbirth">
249 Date of birth: </label>
252 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="[% IF ( opduplicate ) %][% ELSE %][% dateofbirth %][% END %]" />
254 <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% dateofbirth %][% END %]" />
257 <img src="[% themelang %]/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
258 <script language="JavaScript" type="text/javascript">
261 inputField : "dateofbirth",
262 ifFormat : "[% DHTMLcalendar_dateformat %]",
263 button : "dateofbirth_button"
267 [% IF ( mandatorydateofbirth ) %]<span class="required">Required</span>[% END %]
268 [% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %]
269 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
272 [% UNLESS noinitials %]
274 [% IF ( mandatoryinitials ) %]
275 <label for="initials" class="required">
277 <label for="initials">
280 [% IF ( opduplicate ) %]
281 <input type="text" id="initials" name="initials" size="20" value="[% initials %]" onclick="this.value=''" />
283 <input type="text" id="initials" name="initials" size="20" value="[% initials %]" />
285 [% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %]
289 [% UNLESS noothernames %]
291 [% IF ( mandatoryothernames ) %]
292 <label for="othernames" class="required">
294 <label for="othernames">
297 [% IF ( opduplicate ) %]
298 <input type="text" id="othernames" name="othernames" size="20" value="[% othernames %]" onclick="this.value=''" />
300 <input type="text" id="othernames" name="othernames" size="20" value="[% othernames %]" />
302 [% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %]
303 [% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]
311 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
313 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
316 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
318 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
321 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
323 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
330 [% END # hide fieldset %]
332 [% IF ( showguarantor ) %]<input type="hidden" id="guarantorid" name="guarantorid" value="[% guarantorid %]" />
333 <fieldset class="rows">
334 <legend>Guarantor Information</legend>
337 [% IF ( guarantorid ) %]
338 <li id="contact-details">
340 <li id="contact-details" style="display: none">
342 <span class="label">Organization #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
345 <label for="contactname">Organization name: </label>
346 [% IF ( guarantorid ) %]
347 <span>[% contactname %]</span>
348 <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname %]" />
350 [% IF ( opduplicate ) %]
351 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" onclick="this.value=''" />
353 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" />
359 [% IF ( guarantorid ) %]
360 <li id="contact-details">
362 <li id="contact-details" style="display: none">
364 <span class="label">Patron #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
366 [% UNLESS nocontactname %]
368 <label for="contactname">Surname: </label>
369 [% IF ( guarantorid ) %]
370 <span>[% contactname %]</span>
371 <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname %]" />
373 [% IF ( opduplicate ) %]
374 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" onclick="this.value=''" />
376 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" />
381 [% UNLESS nocontactfirstname %]
383 <label for="contactfirstname">First name: </label>
384 [% IF ( guarantorid ) %]
385 <span>[% contactfirstname %]</span>
386 <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="[% contactfirstname %]" />
388 [% IF ( opduplicate ) %]
389 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="[% contactfirstname %]" onclick="this.value=''" />
391 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="[% contactfirstname %]" />
396 [% IF ( relshiploop ) %]
398 <label for="relationship">Relationship: </label>
399 <select name="relationship" id="relationship" >
400 [% FOREACH relshiploo IN relshiploop %]
401 [% IF ( relshiploo.selected ) %]
402 <option value="[% relshiploo.relationship %]" selected="selected" >[% relshiploo.relationship %]</option>
404 <option value="[% relshiploo.relationship %]">[% relshiploo.relationship %]</option>
413 <span class="label"> </span>
414 [% IF ( guarantorid ) %]
415 <input id="guarantorsearch" type="button" value="Change" onclick="Dopopguarantor('guarantor_search.pl?category_type=[% category_type %]');" />
417 <input id="guarantorsearch" type="button" value="Set to Patron" onclick="Dopopguarantor('guarantor_search.pl?category_type=[% category_type %]');" />
419 <input id="guarantordelete" type="button" value="Delete" />
425 [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
426 <fieldset class="rows">
427 <legend id="main_address_lgd">Main address</legend><ol>
428 [% UNLESS nostreetnumber %]
430 [% IF ( mandatorystreetnumber ) %]
431 <label for="streetnumber" class="required">
433 <label for="streetnumber">
435 Street number: </label>
436 [% IF ( opduplicate ) %]
437 <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" onclick="this.value=''" />
439 <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" />
441 [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %]
444 [% UNLESS nostreettype %]
445 [% IF ( road_cgipopup ) %]
447 [% IF ( mandatorystreettype ) %]
448 <label for="streettype" class="required">
450 <label for="streettype">
452 Street type: </label>
454 [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %]
458 [% UNLESS noaddress %]
460 [% IF ( mandatoryaddress ) %]
461 <label for="address" class="required">
463 <label for="address">
466 [% IF ( opduplicate ) %]
467 <input type="text" id="address" name="address" size="35" value="[% address %]" onclick="this.value=''" />
469 <input type="text" id="address" name="address" size="35" value="[% address %]" />
471 [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
474 [% UNLESS noaddress2 %]
476 [% IF ( mandatoryaddress2 ) %]
477 <label for="address2" class="required">
479 <label for="address2">
482 [% IF ( opduplicate ) %]
483 <input type="text" id="address2" name="address2" size="35" value="[% address2 %]" onclick="this.value=''" />
485 <input type="text" id="address2" name="address2" size="35" value="[% address2 %]" />
487 [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
492 [% IF ( mandatorycity ) %]
493 <label for="city" class="required">
498 [% IF ( opduplicate ) %]
499 <input type="text" id="city" name="city" size="20" value="[% city %]" onclick="this.value=''" />
501 <input type="text" id="city" name="city" size="20" value="[% city %]" />
503 [% IF ( city_cgipopup ) %]or <strong>choose</strong>
504 <select id="select_city" name="select_city">
505 [% FOREACH city_loo IN city_loop %]
506 [% IF ( city_loo.selected ) %]
507 <option value="[% city_loo.city_zipcode %]|[% city_loo.city_name %]|[% city_loo.city_state %]|[% city_loo.city_country %]" selected="selected">
509 <option value="[% city_loo.city_zipcode %]|[% city_loo.city_name %]|[% city_loo.city_state %]|[% city_loo.city_country %]">
511 [% city_loo.city_name %] [% city_loo.city_state %] [% city_loo.city_zipcode %]
516 [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %]
521 [% IF ( mandatorystate ) %]
522 <label for="state" class="required">
527 <input type="text" name="state" id="state" size="20" value="[% state %]" />
528 [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %]
531 [% UNLESS nozipcode %]
533 [% IF ( mandatoryzipcode ) %]
534 <label for="zipcode" class="required">
536 <label for="zipcode">
538 Zip/Postal code: </label>
539 [% IF ( opduplicate ) %]
540 <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" onclick="this.value=''" />
542 <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" />
544 [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
547 [% UNLESS nocountry %]
549 [% IF ( mandatorycountry ) %]
550 <label for="country" class="required">
552 <label for="country">
555 [% IF ( opduplicate ) %]
556 <input type="text" name="country" id="country" size="20" value="[% country %]" onclick="this.value=''" />
558 <input type="text" name="country" id="country" size="20" value="[% country %]" />
560 [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]
565 [% END # nostreet && nocity etc group%]
567 [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
568 <fieldset class="rows" id="memberentry_contact">
569 <legend id="contact_lgd">Contact</legend><ol>
572 [% IF ( mandatoryphone ) %]
573 <label for="phone" class="required">
577 Primary Phone: </label>
578 [% IF ( opduplicate ) %]
579 <input type="text" id="phone" name="phone" value="[% phone %]" onclick="this.value=''" />
581 <input type="text" id="phone" name="phone" value="[% phone %]" />
583 [% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
587 [% UNLESS nophonepro %]
589 [% IF ( mandatoryphonepro ) %]
590 <label for="phonepro" class="required">
592 <label for="phonepro">
594 Secondary Phone: </label>
595 [% IF ( opduplicate ) %]
596 <input type="text" id="phonepro" name="phonepro" value="[% phonepro %]" onclick="this.value=''" />
598 <input type="text" id="phonepro" name="phonepro" value="[% phonepro %]" />
600 [% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %]
603 [% UNLESS nomobile %]
605 [% IF ( mandatorymobile ) %]
606 <label for="mobile" class="required">
610 Other Phone: </label>
611 [% IF ( opduplicate ) %]
612 <input type="text" id="mobile" name="mobile" value="[% mobile %]" onclick="this.value=''" />
614 <input type="text" id="mobile" name="mobile" value="[% mobile %]" />
616 [% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %]
621 [% IF ( mandatoryemail ) %]
622 <label for="email" class="required">
626 Primary Email: </label>
627 [% IF ( opduplicate ) %]
628 <input type="text" id="email" name="email" size="45" value="[% email %]" onclick="this.value=''" />
630 <input type="text" id="email" name="email" size="45" value="[% email %]" />
632 [% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
636 [% UNLESS noemailpro %]
638 [% IF ( mandatoryemailpro ) %]
639 <label for="emailpro" class="required">
641 <label for="emailpro">
643 Secondary Email: </label>
644 [% IF ( opduplicate ) %]
645 <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro %]" onclick="this.value=''" />
647 <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro %]" />
649 [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
654 [% IF ( mandatoryfax ) %]
655 <label for="fax" class="required">
660 [% IF ( opduplicate ) %]
661 <input type="text" id="fax" name="fax" value="[% fax %]" onclick="this.value=''" />
663 <input type="text" id="fax" name="fax" value="[% fax %]" />
665 [% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %]
670 [%END # hide fieldset %]
672 <!-- ************************ STEP_1 *********************** -->
676 [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
677 <fieldset class="rows" id="memberentry_address">
678 <legend id="alt_address_lgd">Alternate address</legend><ol>
679 [% UNLESS noB_address %]
681 [% IF ( mandatoryB_address ) %]
682 <label for="B_address" class="required">
684 <label for="B_address">
687 [% IF ( opduplicate ) %]
688 <input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" onclick="this.value=''" />
690 <input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" />
692 [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
695 [% UNLESS noB_address2 %]
697 [% IF ( mandatoryB_address2 ) %]
698 <label for="B_address2" class="required">
700 <label for="B_address2">
703 [% IF ( opduplicate ) %]
704 <input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" onclick="this.value=''" />
706 <input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" />
708 [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
711 [% UNLESS noB_city %]
713 [% IF ( mandatoryB_city ) %]
714 <label for="B_city" class="required" >
719 <input type="text" id="B_city" name="B_city" size="20" value="[% B_city %]" />
720 [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %]
723 [% UNLESS noB_state %]
725 [% IF ( mandatoryB_state ) %]
726 <label for="B_state" class="required" >
728 <label for="B_state">
731 <input type="text" id="B_state" name="B_state" size="20" value="[% B_state %]" />
732 [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %]
735 [% UNLESS noB_zipcode %]
737 [% IF ( mandatoryB_zipcode ) %]
738 <label for="B_zipcode" class="required">
740 <label for="B_zipcode">
742 Zip/Postal code: </label>
743 [% IF ( opduplicate ) %]
744 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" onclick="this.value=''" />
746 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" />
748 [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
751 [% UNLESS noB_country %]
753 [% IF ( mandatoryB_country ) %]
754 <label for="B_country" class="required">
756 <label for="B_country">
759 [% IF ( opduplicate ) %]
760 <input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" onclick="this.value=''" />
762 <input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" />
764 [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
767 [% UNLESS noB_phone %]
769 [% IF ( mandatoryB_phone ) %]
770 <label for="B_phone" class="required">
772 <label for="B_phone">
775 [% IF ( opduplicate ) %]
776 <input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" onclick="this.value=''" />
778 <input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" />
780 [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
783 [% UNLESS noB_email %]
785 [% IF ( mandatoryB_email ) %]
786 <label for="B_email" class="required">
788 <label for="B_email">
791 [% IF ( opduplicate ) %]
792 <input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" onclick="this.value=''" />
794 <input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" />
796 [% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li>
798 [% UNLESS nocontactnote %]
800 [% IF ( mandatorycontactnote ) %]
801 <label for="contactnote" class="required">
803 <label for="contactnote">
805 Contact note: </label>
806 <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% contactnote %]</textarea>
807 [% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %]
812 [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
815 [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
816 <fieldset class="rows" id="memberentry_altaddress">
817 <legend id="alt_contact_lgd">Alternate Contact</legend><ol>
818 [% UNLESS noaltcontactsurname %]
820 [% IF ( mandatoryaltcontactsurname ) %]
821 <label for="altcontactsurname" class="required">
823 <label for="altcontactsurname">
826 [% IF ( opduplicate ) %]
827 <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" onclick="this.value=''" />
829 <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" />
831 [% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
834 [% UNLESS noaltcontactfirstname %]
836 [% IF ( mandatoryaltcontactfirstname ) %]
837 <label for="altcontactfirstname" class="required">
839 <label for="altcontactfirstname">
842 [% IF ( opduplicate ) %]
843 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" onclick="this.value=''" />
845 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" />
847 [% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
850 [% UNLESS noaltcontactaddress1 %]
852 [% IF ( mandatoryaltcontactaddress1 ) %]
853 <label for="altcontactaddress1" class="required">
855 <label for="altcontactaddress1">
858 [% IF ( opduplicate ) %]
859 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" onclick="this.value=''" size="40" />
861 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" size="40" />
863 [% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
866 [% UNLESS noaltcontactaddress2 %]
868 [% IF ( mandatoryaltcontactaddress2 ) %]
869 <label for="altcontactaddress2" class="required">
871 <label for="altcontactaddress2">
874 [% IF ( opduplicate ) %]
875 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" onclick="this.value=''" size="40" />
877 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" size="40" />
879 [% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
882 [% UNLESS noaltcontactaddress3 %]
884 [% IF ( mandatoryaltcontactaddress3 ) %]
885 <label for="altcontactaddress3" class="required">
887 <label for="altcontactaddress3">
890 <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% altcontactaddress3 %]" size="20" />
891 [% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
894 [% UNLESS noaltcontactstate %]
896 [% IF ( mandatoryaltcontactstate ) %]
897 <label for="altcontactstate" class="required">
899 <label for="altcontactstate">
902 <input type="text" name="altcontactstate" id="altcontactstate" value="[% altcontactstate %]" size="20" />
903 [% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
906 [% UNLESS noaltcontactzipcode %]
908 [% IF ( mandatoryaltcontactzipcode ) %]
909 <label for="altcontactzipcode" class="required">
911 <label for="altcontactzipcode">
913 Zip/Postal code:</label>
914 [% IF ( opduplicate ) %]
915 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" onclick="this.value=''" size="5" />
917 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" size="5" />
919 [% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
922 [% UNLESS noaltcontactcountry %]
924 [% IF ( mandatoryaltcontactcountry ) %]
925 <label for="altcontactcountry" class="required">
927 <label for="altcontactcountry">
930 [% IF ( opduplicate ) %]
931 <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" onclick="this.value=''" size="20" />
933 <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" size="20" />
935 [% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
938 [% UNLESS noaltcontactphone %]
940 [% IF ( mandatoryaltcontactphone ) %]
941 <label for="altcontactphone" class="required">
943 <label for="altcontactphone">
946 [% IF ( opduplicate ) %]
947 <input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" onclick="this.value=''" />
949 <input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" />
951 [% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
956 [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %]
961 <fieldset class="rows" id="memberentry_library_management">
962 <legend id="library_management_lgd">Library Management</legend><ol>
963 [% UNLESS nocardnumber %]
964 <li> [% IF ( mandatorycardnumber ) %]
965 <label for="cardnumber" class="required">
967 <label for="cardnumber">
969 Card number: </label>
970 [% IF ( opduplicate ) %]
971 <input type="text" id="cardnumber" name="cardnumber" size="20" />
973 <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" />
975 [% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]</li>
977 [% UNLESS nobranchcode %]
979 [% IF ( mandatorybranchcode ) %]
980 <label for="branchcode" class="required">
982 <label for="branchcode">
986 [% IF ( mandatorybranchcode ) %]<span class="required">Required</span>[% END %]
990 <label for="categorycode">Category: </label>
991 <select id="categorycode" name="categorycode">
992 [% FOREACH typeloo IN typeloop %]
993 [% FOREACH categoryloo IN typeloo.categoryloop %]
994 [% IF ( loop.first ) %]
995 [% IF ( typeloo.typename_C ) %]<optgroup label="Child">[% END %]
996 [% IF ( typeloo.typename_A ) %]<optgroup label="Adult">[% END %]
997 [% IF ( typeloo.typename_S ) %]<optgroup label="Staff">[% END %]
998 [% IF ( typeloo.typename_I ) %]<optgroup label="Organization">[% END %]
999 [% IF ( typeloo.typename_P ) %]<optgroup label="Professional">[% END %]
1000 [% IF ( typeloo.typename_X ) %]<optgroup label="Statistical">[% END %]
1002 [% IF ( categoryloo.categorycodeselected ) %]
1003 <option value="[% categoryloo.categorycode %]" selected="selected">[% categoryloo.categoryname %]</option>
1005 <option value="[% categoryloo.categorycode %]">[% categoryloo.categoryname %]</option>
1007 [% IF ( loop.last ) %]
1014 [% UNLESS nosort1 %]
1016 [% IF ( mandatorysort1 ) %]
1017 <label for="sort1" class="required">
1022 [% IF ( CGIsort1 ) %]
1025 <input type="text" id="sort1" name="sort1" size="20" value="[% sort1 %]" />
1026 [% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %]
1030 [% UNLESS nosort2 %]
1032 [% IF ( mandatorysort2 ) %]
1033 <label for="sort2" class="required">
1038 [% IF ( CGIsort2 ) %]
1041 [% IF ( opduplicate ) %]
1042 <input type="text" id="sort2" name="sort2" size="20" value="[% sort2 %]" onclick="this.value=''" />
1044 <input type="text" id="sort2" name="sort2" size="20" value="[% sort2 %]" />
1046 [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
1052 [% UNLESS nodateenrolled && nodateexpiry && noopacnote && noborrowernotes %]
1053 <fieldset class="rows" id="memberentry_subscription">
1054 <legend id="library_setup_lgd">Library set-up</legend><ol>
1055 [% UNLESS nodateenrolled %]
1057 [% IF ( mandatorydateenrolled ) %]
1058 <label for="dateenrolled" class="required">
1060 <label for="dateenrolled">
1062 Registration date: </label>
1064 <input type="text" id="dateenrolled" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled %]" />
1066 <input type="text" id="dateenrolled" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled %]" />
1068 <img src="[% themelang %]/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
1069 <script language="JavaScript" type="text/javascript">
1072 inputField : "dateenrolled",
1073 ifFormat : "[% DHTMLcalendar_dateformat %]",
1074 button : "dateenrolled_button"
1078 [% IF ( mandatorydateenrolled ) %]<span class="required">Required</span>[% END %]
1079 [% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %]
1080 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
1083 [% UNLESS nodateexpiry %]
1085 [% IF ( mandatorydateexpiry ) %]
1086 <label for="dateexpiry" class="required">
1088 <label for="dateexpiry">
1090 Expiry date (leave blank for auto calc) </label>
1092 [% UNLESS ( opadd ) %]
1093 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry %]" />
1095 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" />
1098 [% UNLESS ( opadd ) %]
1099 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry %]" />
1101 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10" />
1104 <img src="[% themelang %]/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
1105 <script language="JavaScript" type="text/javascript">
1108 inputField : "dateexpiry",
1109 ifFormat : "[% DHTMLcalendar_dateformat %]",
1110 button : "dateexpiry_button"
1114 [% IF ( mandatorydateexpiry ) %]<span class="required">Required</span>[% END %]
1115 [% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %]
1116 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
1119 [% UNLESS noopacnote %]
1121 [% IF ( mandatoryopacnote ) %]
1122 <label for="opacnote" class="required">
1124 <label for="opacnote">
1127 <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote %]</textarea>
1128 <div class="hint">This message appears on this patron's user page in the OPAC</div>
1129 [% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %]
1132 [% UNLESS noborrowernotes %]
1134 [% IF ( mandatoryborrowernotes ) %]
1135 <label for="borrowernotes" class="required">
1137 <label for="borrowernotes">
1139 Circulation note: </label>
1140 <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes %]</textarea>
1141 <div class="hint">This message displays when checking out to this patron</div>
1142 [% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %]
1147 [% END # hide fieldset %]
1149 [% UNLESS nouserid && nopassword %]
1150 <fieldset class="rows" id="memberentry_userid">
1151 <legend id="opac_staff_login_lgd">OPAC/Staff Login</legend><ol>
1152 [% UNLESS nouserid %]
1154 [% IF ( mandatoryuserid ) %]
1155 <label for="userid" class="required">
1157 <label for="userid">
1161 [% IF ( NoUpdateLogin ) %]
1162 [% IF ( opduplicate ) %]
1163 <input type="text" id="userid" name="userid" size="20" disabled="disabled" />
1165 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid %]" />
1168 [% IF ( opduplicate ) %]
1169 <input type="text" id="userid" name="userid" size="20" value="" />
1171 <input type="text" id="userid" name="userid" size="20" value="[% userid %]" />
1175 [% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %]
1178 [% UNLESS nopassword %]
1180 [% IF ( mandatorypassword ) %]
1181 <label for="password" class="required">
1183 <label for="password">
1187 [% IF ( NoUpdateLogin ) %]
1188 [% IF ( opduplicate ) %]
1189 <input type="password" id="password" name="password" size="20" disabled="disabled" />
1191 <input type="password" id="password" name="password" size="20" disabled="disabled" value="[% password %]" />
1194 [% IF ( opduplicate ) %]
1195 <input type="password" id="password" name="password" size="20" />
1197 <input type="password" id="password" name="password" size="20" value="[% password %]" />
1201 [% IF ( password ) %]
1202 [% IF ( NoUpdateLogin ) %]
1203 <input type="password" id="password" name="password" size="20" disabled="disabled" value="****" />
1205 [% IF ( opduplicate ) %]
1206 <input type="password" id="password" name="password" size="20" />
1208 <input type="password" id="password" name="password" size="20" value="****" />
1212 [% IF ( NoUpdateLogin ) %]
1213 <input type="password" id="password" name="password" size="20" disabled="disabled" value="" />
1215 <input type="password" id="password" name="password" size="20" value="" />
1219 [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_short_password ) %]<span class="required">Password is too short</span>[% END %]
1220 [% IF ( minPasswordLength ) %]<div class="hint">Minimum password length: [% minPasswordLength %]</div>[% END %]
1223 [% IF ( mandatorypassword ) %]
1224 <label for="password2" class="required">
1226 <label for="password2">
1228 Confirm password: </label>
1230 [% IF ( NoUpdateLogin ) %]
1231 [% IF ( opduplicate ) %]
1232 <input type="password" id="password2" name="password2" size="20" disabled="disabled" />
1234 <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="[% password %]" />
1237 [% IF ( opduplicate ) %]
1238 <input type="password" id="password2" name="password2" size="20" />
1240 <input type="password" id="password2" name="password2" size="20" value="[% password %]" />
1244 [% IF ( password ) %]
1245 [% IF ( NoUpdateLogin ) %]
1246 <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="****" />
1248 [% IF ( opduplicate ) %]
1249 <input type="password" id="password2" name="password2" size="20" />
1251 <input type="password" id="password2" name="password2" size="20" value="****" />
1255 [% IF ( NoUpdateLogin ) %]
1256 <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="" />
1258 <input type="password" id="password2" name="password2" size="20" value="" />
1262 [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %]
1266 [% END # hide fieldset %][% END %]
1267 <!--this zones are not necessary in modif mode -->
1268 [% UNLESS ( opadd ) %]
1269 <fieldset class="rows">
1270 <legend>Patron Account Flags</legend>
1272 [% FOREACH flagloo IN flagloop %]
1273 <li><label class="radio" for="yes[% flagloo.name %]">
1274 [% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no Address:[% END %]
1275 [% IF ( flagloo.key == 'debarred' ) %]Restricted:[% END %]
1276 [% IF ( flagloo.key == 'lost' ) %]Lost Card:[% END %]
1278 <label for="yes[% flagloo.name %]">Yes </label>
1279 [% IF ( flagloo.yes ) %]
1280 <input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" checked="checked" />
1282 <input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" />
1284 <label for="no[% flagloo.name %]">No </label>
1285 [% IF ( flagloo.no ) %]
1286 <input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" checked="checked"/>
1288 <input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" />
1294 <label for="yesdebarred" class="radio">Restricted: </label>
1295 [% IF ( debarred ) %]
1296 <label for="yesdebarred">Yes </label>
1297 <input type="radio" id="yesdebarred" name="debarred" value="1" checked="checked"/>
1298 <label for="nodebarred">No </label>
1299 <input type="radio" id="nodebarred" name="debarred" value="0"/>
1301 <label for="yesdebarred">Yes </label>
1302 <input type="radio" id="yesdebarred" name="debarred" value="1" />
1303 <label for="nodebarred">No </label>
1304 <input type="radio" id="nodebarred" name="debarred" value="0" checked="checked"/>
1308 <label for="datedebarred" class="radio">until:</label>
1309 [% IF opduplicate %]
1310 <input type="text" name="datedebarred" id="datedebarred" class="debarred" value="[% datedebarred %]" onclick="this.value=''" />
1312 <input type="text" name="datedebarred" id="datedebarred" class="debarred" value="[% datedebarred %]" />
1314 <img src="[% themelang %]/lib/calendar/cal.gif" id="debarred_button" alt="Show Calendar" />
1315 <script language="JavaScript" type="text/javascript">
1318 inputField : "debarred",
1319 ifFormat : "[% DHTMLcalendar_dateformat %]",
1320 button : "debarred_button"
1325 <label for="debarredcomment" class="radio">Comment:</label>
1326 [% IF ( opduplicate ) %]
1327 <textarea id="debarredcomment" name="debarredcomment" cols="55" rows="3" onclick="this.value=''">[% debarredcomment %]</textarea>
1329 <textarea id="debarredcomment" name="debarredcomment" cols="55" rows="3">[% debarredcomment %]</textarea>
1340 [% IF ( step_4 ) %][% IF ( ExtendedPatronAttributes ) %][% UNLESS ( no_patron_attribute_types ) %]
1341 <fieldset class="rows" id="memberentry_patron_attributes">
1342 <input type="hidden" name="setting_extended_patron_attributes" value="1" />
1343 <legend>Additional attributes and identifiers</legend>
1347 <th colspan="2">Value</th>
1349 [% FOREACH patron_attribute IN patron_attributes %]
1351 <td>[% patron_attribute.code %] ([% patron_attribute.description %])
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 <input type="text" maxlength="64" value="[% patron_attribute.value %]"
1373 id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]" onclick="this.value=''" />
1375 <input type="text" maxlength="64" value="[% patron_attribute.value %]"
1376 id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]" />
1379 [% IF ( patron_attribute.password_allowed ) %]
1380 (Password: <input type="password" maxlength="64" value="[% patron_attribute.password %]"
1381 id="[% patron_attribute.form_id %]_password" name="[% patron_attribute.form_id %]_password" />)
1385 <a href="#" onclick="clear_entry(this); return false;">Clear</a>
1386 [% IF ( patron_attribute.repeatable ) %]
1387 <a href="#" onclick="clone_entry(this); return false;">New</a>
1394 [% END %][% END %][% END %]
1396 [% IF ( step_5 ) %][% IF ( EnhancedMessagingPreferences ) %]
1397 <fieldset class="rows" id="memberentry_messaging_prefs">
1399 <!-- handle changing prefs if creating new patron and changing
1402 <script language="javascript" type="text/javascript">//<![CDATA[
1403 $(document).ready(function(){
1404 var message_prefs_dirty = false;
1405 $('#memberentry_messaging_prefs > *').change(function() {
1406 message_prefs_dirty = true;
1408 $('#categorycode').change(function() {
1409 var categorycode = $(this).val();
1410 if (message_prefs_dirty) {
1411 if (!confirm('Change messaging preferences to default for this category?')) {
1415 $.getJSON('/cgi-bin/koha/members/default_messageprefs.pl?categorycode=' + categorycode,
1417 $.each(data.messaging_preferences, function(i, item) {
1418 var attrid = item.message_attribute_id;
1419 var transports = ['email', 'rss', 'sms'];
1420 $.each(transports, function(j, transport) {
1421 if (item['transport-' + transport] != ' ') {
1422 $('#' + transport + attrid).attr('checked', item['transport-' + transport]);
1424 $('#' + transport + attrid).removeAttr('checked');
1427 if (item.digest && item.digest != ' ') {
1428 $('#digest' + attrid).attr('checked', item.digest);
1430 $('#digest' + attrid).removeAttr('checked');
1432 if (item.takes_days == '1') {
1433 $('[name=' + attrid + '-DAYS]').val('' + item.days_in_advance);
1436 message_prefs_dirty = false;
1444 <input type="hidden" name="setting_messaging_prefs" value="1" />
1445 <legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend>
1447 <i>If no preferences are selected, the default preferences for the category chosen will be applied on save, otherwise your selection here is saved</i>
1449 [% INCLUDE 'messaging-preference-form.inc' %]
1450 [% IF ( SMSSendDriver ) %]
1451 <p><label for="SMSnumber">SMS number:</label>
1452 [% IF ( opduplicate ) %]
1453 <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" onclick="this.value=''" />
1455 <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" />
1462 <fieldset class="action">
1463 <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
1465 <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
1467 <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Cancel</a>
1475 [% UNLESS ( opadd ) %]<div class="yui-b">
1476 [% INCLUDE 'members-menu.inc' %]
1480 [% INCLUDE 'intranet-bottom.inc' %]