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" language="JavaScript">
8 $(document).ready(function() {
9 $("fieldset.rows input").keydown(function(e){ return checkEnter(e); });
10 $("#guarantordelete").click(function() {
11 $("#contact-details").hide().find('a').remove();
12 $("#guarantorid, #contactname, #contactfirstname").each(function () { this.value = "" });
13 $("#contactname, #contactfirstname")
14 .each(function () { this.type = 'text' })
15 .parent().find('span').remove();
16 $("#guarantorsearch").val("Set to Patron");
18 $("#select_city").change(function(){
19 var myRegEx=new RegExp(/(.*)\|(.*)\|(.*)\|(.*)/);
20 document.form.select_city.value.match(myRegEx);
21 document.form.zipcode.value=RegExp.$1;
22 document.form.city.value=RegExp.$2;
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");
65 <script type="text/javascript" src="[% themelang %]/js/members.js"></script>
68 [% INCLUDE 'header.inc' %]
69 [% INCLUDE 'patron-search.inc' %]
71 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> ›
73 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 %]
74 [% surname %] [% firstname %]
76 <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 %]
77 </strong>[% END %]</div>
78 [% IF ( opadd ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
84 [% IF ( no_add ) %]<div class="dialog alert"><h3>Cannot add patron</h3>
85 [% 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 %]
86 [% 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 %]
88 [% UNLESS ( no_add ) %]
91 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 %]
95 [% 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 %]
96 [% firstname %] [% surname %]
100 [% IF ( check_member ) %]
101 <div class="dialog alert">
102 <h3>Duplicate patron record?</h3>
103 <p><a class="popup" href="javascript:Dopop('moremember.pl?print=brief&borrowernumber=[% check_member %]');" >View existing record</a></p>
104 <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>
106 <form name="form_double" action="/cgi-bin/koha/members/memberentry.pl" method="post">
107 <input type="hidden" name="nodouble" value="1" />
108 <input class="new" type="submit" value="Not a duplicate. Save as new record" />
114 <div>Debug is on (level [% debug %])</div>
118 <div class="dialog alert">
119 <p>The following fields are wrong. Please fix them.</p>
121 [% IF ( ERROR_login_exist ) %]
122 <li id="ERROR_login_exist">Username/password already exists.</li>
124 [% IF ( ERROR_cardnumber ) %]
125 <li id="ERROR_cardnumber">Cardnumber already in use.</li>
127 [% IF ( ERROR_age_limitations ) %]
128 <li id="ERROR_age_limitations">Patron's age is incorrect for their category.
129 Ages allowed are [% ERROR_age_limitations %].</li>
131 [% IF ( ERROR_branch ) %]
132 <li id="ERROR_branch">Library is invalid.</li>
134 [% IF ( ERROR_dateofbirth ) %]
135 <li id="ERROR_dateofbirth">Date of birth is invalid.</li>
137 [% IF ( ERROR_dateenrolled ) %]
138 <li id="ERROR_dateenrolled">Date of enrollment is invalid.</li>
140 [% IF ( ERROR_dateexpiry ) %]
141 <li id="ERROR_dateexpiry">Date of expiration is invalid.</li>
143 [% IF ( ERROR_short_password ) %]
144 <li id="ERROR_short_password">Password must be at least [% minPasswordLength %] characters long.</li>
146 [% IF ( ERROR_extended_unique_id_failed ) %]
147 <li id="ERROR_extended_unique_id_failed">The attribute value
148 [% ERROR_extended_unique_id_failed %] is already is use by another patron record.</li>
155 [% UNLESS ( check_member ) %]<form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post">
156 <input type="hidden" name="nodouble" value="[% nodouble %]" /> [% END %]
157 <!-- field always hidden in different form (1,2,3) -->
158 <input type="hidden" name="BorrowerMandatoryField" value="[% BorrowerMandatoryField %]" />
159 <input type="hidden" name="category_type" value="[% category_type %]" />
160 <input type="hidden" name="updtype" value="[% updtype %]" />
161 <input type="hidden" name="select_roadtype" value="[% select_roadtype %]" />
162 <input type="hidden" name="destination" value="[% destination %]" />
163 <input type="hidden" name="check_member" value="[% check_member %]" />
164 <input type="hidden" name="borrowernumber" value="[% IF ( opduplicate ) %][% ELSE %][% borrowernumber %][% END %]" />
165 <input type="hidden" name="nodouble" value="[% IF ( opduplicate ) %][% ELSE %][% nodouble %][% END %]" />
166 [% IF ( step ) %]<input type="hidden" name="step" value="[% step %]" />[% END %]
167 [% IF ( opadd ) %]<input type="hidden" name="op" value="insert" />
168 [% ELSIF ( opduplicate ) %]
169 <input type="hidden" name="op" value="insert" />
171 <input type="hidden" name="op" value="save" />
172 [% IF step == 4 || step == 5 || step == 6 || step == 2 || step == 1 %]
173 [%# Only put the cardnumber if we arent showing it in the form later %]
175 <input type="hidden" name="cardnumber" value="[% cardnumber %]">
181 [%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
182 <fieldset class="rows" id="memberentry_identity">
183 <legend>[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
187 [% IF ( title_cgipopup ) %]
189 [% IF ( mandatorytitle ) %]
190 <label for="btitle" class="required">
195 [% borrotitlepopup %]
196 [% IF ( mandatorytitle ) %]<span class="required">Required</span>[% END %]
201 [% UNLESS nosurname %]
203 [% IF ( mandatorysurname ) %]
204 <label for="surname" class="required">
206 <label for="surname">
209 [% IF ( uppercasesurnames ) %]
210 [% IF ( opduplicate ) %]
211 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% surname %]" onclick="this.value=''" />
213 <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% surname %]" />
216 [% IF ( opduplicate ) %]
217 <input type="text" id="surname" name="surname" size="20" value="[% surname %]" onclick="this.value=''" />
219 <input type="text" id="surname" name="surname" size="20" value="[% surname %]" />
222 [% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %]
226 [% UNLESS nofirstname %]
228 [% IF ( mandatoryfirstname ) %]
229 <label for="firstname" class="required">
231 <label for="firstname">
234 <input type="text" id="firstname" name="firstname" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% firstname %][% END %]" />
235 [% IF ( mandatoryfirstname ) %]<span class="required">Required</span>[% END %]
238 [% UNLESS nodateofbirth %]
240 [% IF ( mandatorydateofbirth ) %]
241 <label for="dateofbirth" class="required">
243 <label for="dateofbirth">
245 Date of birth: </label>
248 <input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="CheckDate(document.form.dateofbirth);" value="[% IF ( opduplicate ) %][% ELSE %][% dateofbirth %][% END %]" />
250 <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% dateofbirth %][% END %]" />
253 <img src="[% themelang %]/lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />
254 <script language="JavaScript" type="text/javascript">
257 inputField : "dateofbirth",
258 ifFormat : "[% DHTMLcalendar_dateformat %]",
259 button : "dateofbirth_button"
263 [% IF ( mandatorydateofbirth ) %]<span class="required">Required</span>[% END %]
264 [% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %]
265 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
268 [% UNLESS noinitials %]
270 [% IF ( mandatoryinitials ) %]
271 <label for="initials" class="required">
273 <label for="initials">
276 [% IF ( opduplicate ) %]
277 <input type="text" id="initials" name="initials" size="20" value="[% initials %]" onclick="this.value=''" />
279 <input type="text" id="initials" name="initials" size="20" value="[% initials %]" />
281 [% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %]
285 [% UNLESS noothernames %]
287 [% IF ( mandatoryothernames ) %]
288 <label for="othernames" class="required">
290 <label for="othernames">
293 [% IF ( opduplicate ) %]
294 <input type="text" id="othernames" name="othernames" size="20" value="[% othernames %]" onclick="this.value=''" />
296 <input type="text" id="othernames" name="othernames" size="20" value="[% othernames %]" />
298 [% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %]
299 [% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]
307 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" checked="checked" />
309 <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
312 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" checked="checked" />
314 <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
317 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
319 <label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
326 [% END # hide fieldset %]
328 [% IF ( showguarantor ) %]<input type="hidden" id="guarantorid" name="guarantorid" value="[% guarantorid %]" />
329 <fieldset class="rows">
330 <legend>Guarantor Information</legend>
333 [% IF ( guarantorid ) %]
334 <li id="contact-details">
336 <li id="contact-details" style="display: none">
338 <span class="label">Organization #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
341 <label for="contactname">Organization name: </label>
342 [% IF ( guarantorid ) %]
343 <span>[% contactname %]</span>
344 <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname %]" />
346 [% IF ( opduplicate ) %]
347 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" onclick="this.value=''" />
349 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" />
355 [% IF ( guarantorid ) %]
356 <li id="contact-details">
358 <li id="contact-details" style="display: none">
360 <span class="label">Patron #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
362 [% UNLESS nocontactname %]
364 <label for="contactname">Surname: </label>
365 [% IF ( guarantorid ) %]
366 <span>[% contactname %]</span>
367 <input name="contactname" id="contactname" type="hidden" size="20" value="[% contactname %]" />
369 [% IF ( opduplicate ) %]
370 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" onclick="this.value=''" />
372 <input name="contactname" id="contactname" type="text" size="20" value="[% contactname %]" />
377 [% UNLESS nocontactfirstname %]
379 <label for="contactfirstname">First name: </label>
380 [% IF ( guarantorid ) %]
381 <span>[% contactfirstname %]</span>
382 <input name="contactfirstname" id="contactfirstname" type="hidden" size="20" value="[% contactfirstname %]" />
384 [% IF ( opduplicate ) %]
385 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="[% contactfirstname %]" onclick="this.value=''" />
387 <input name="contactfirstname" id="contactfirstname" type="text" size="20" value="[% contactfirstname %]" />
392 [% IF ( relshiploop ) %]
394 <label for="relationship">Relationship: </label>
395 <select name="relationship" id="relationship" >
396 [% FOREACH relshiploo IN relshiploop %]
397 [% IF ( relshiploo.selected ) %]
398 <option value="[% relshiploo.relationship %]" selected="selected" >[% relshiploo.relationship %]</option>
400 <option value="[% relshiploo.relationship %]">[% relshiploo.relationship %]</option>
409 <span class="label"> </span>
410 [% IF ( guarantorid ) %]
411 <input id="guarantorsearch" type="button" value="Change" onclick="Dopopguarantor('guarantor_search.pl?category_type=[% category_type %]');" />
413 <input id="guarantorsearch" type="button" value="Set to Patron" onclick="Dopopguarantor('guarantor_search.pl?category_type=[% category_type %]');" />
415 <input id="guarantordelete" type="button" value="Delete" />
421 [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
422 <fieldset class="rows">
423 <legend>Main address</legend><ol>
424 [% UNLESS nostreetnumber %]
426 [% IF ( mandatorystreetnumber ) %]
427 <label for="streetnumber" class="required">
429 <label for="streetnumber">
431 Street number: </label>
432 [% IF ( opduplicate ) %]
433 <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" onclick="this.value=''" />
435 <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" />
437 [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %]
440 [% UNLESS nostreettype %]
441 [% IF ( road_cgipopup ) %]
443 [% IF ( mandatorystreettype ) %]
444 <label for="streettype" class="required">
446 <label for="streettype">
448 Street type: </label>
450 [% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %]
454 [% UNLESS noaddress %]
456 [% IF ( mandatoryaddress ) %]
457 <label for="address" class="required">
459 <label for="address">
462 [% IF ( opduplicate ) %]
463 <input type="text" id="address" name="address" size="35" value="[% address %]" onclick="this.value=''" />
465 <input type="text" id="address" name="address" size="35" value="[% address %]" />
467 [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
470 [% UNLESS noaddress2 %]
472 [% IF ( mandatoryaddress2 ) %]
473 <label for="address2" class="required">
475 <label for="address2">
478 [% IF ( opduplicate ) %]
479 <input type="text" id="address2" name="address2" size="35" value="[% address2 %]" onclick="this.value=''" />
481 <input type="text" id="address2" name="address2" size="35" value="[% address2 %]" />
483 [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
488 [% IF ( mandatorycity ) %]
489 <label for="city" class="required">
494 [% IF ( opduplicate ) %]
495 <input type="text" id="city" name="city" size="20" value="[% city %]" onclick="this.value=''" />
497 <input type="text" id="city" name="city" size="20" value="[% city %]" />
499 [% IF ( city_cgipopup ) %]or <strong>choose</strong>
500 <select id="select_city" name="select_city">
501 [% FOREACH city_loo IN city_loop %]
502 [% IF ( city_loo.selected ) %]
503 <option value="[% city_loo.city_zipcode %]|[% city_loo.city_name %]|[% city_loo.city_state %]|[% city_loo.city_country %]" selected="selected">
505 <option value="[% city_loo.city_zipcode %]|[% city_loo.city_name %]|[% city_loo.city_state %]|[% city_loo.city_country %]">
507 [% city_loo.city_name %] [% city_loo.city_state %] [% city_loo.city_zipcode %]
512 [% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %]
517 [% IF ( mandatorystate ) %]
518 <label for="state" class="required">
523 <input type="text" name="state" id="state" size="20" value="[% state %]" />
524 [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %]
527 [% UNLESS nozipcode %]
529 [% IF ( mandatoryzipcode ) %]
530 <label for="zipcode" class="required">
532 <label for="zipcode">
534 Zip/Postal code: </label>
535 [% IF ( opduplicate ) %]
536 <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" onclick="this.value=''" />
538 <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" />
540 [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
543 [% UNLESS nocountry %]
545 [% IF ( mandatorycountry ) %]
546 <label for="country" class="required">
548 <label for="country">
551 [% IF ( opduplicate ) %]
552 <input type="text" name="country" id="country" size="20" value="[% country %]" onclick="this.value=''" />
554 <input type="text" name="country" id="country" size="20" value="[% country %]" />
556 [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]
561 [% END # nostreet && nocity etc group%]
563 [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
564 <fieldset class="rows" id="memberentry_contact">
565 <legend>Contact</legend><ol>
568 [% IF ( mandatoryphone ) %]
569 <label for="phone" class="required">
573 Primary Phone: </label>
574 [% IF ( opduplicate ) %]
575 <input type="text" id="phone" name="phone" value="[% phone %]" onclick="this.value=''" />
577 <input type="text" id="phone" name="phone" value="[% phone %]" />
579 [% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
583 [% UNLESS nophonepro %]
585 [% IF ( mandatoryphonepro ) %]
586 <label for="phonepro" class="required">
588 <label for="phonepro">
590 Secondary Phone: </label>
591 [% IF ( opduplicate ) %]
592 <input type="text" id="phonepro" name="phonepro" value="[% phonepro %]" onclick="this.value=''" />
594 <input type="text" id="phonepro" name="phonepro" value="[% phonepro %]" />
596 [% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %]
599 [% UNLESS nomobile %]
601 [% IF ( mandatorymobile ) %]
602 <label for="mobile" class="required">
606 Other Phone: </label>
607 [% IF ( opduplicate ) %]
608 <input type="text" id="mobile" name="mobile" value="[% mobile %]" onclick="this.value=''" />
610 <input type="text" id="mobile" name="mobile" value="[% mobile %]" />
612 [% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %]
617 [% IF ( mandatoryemail ) %]
618 <label for="email" class="required">
622 Primary Email: </label>
623 [% IF ( opduplicate ) %]
624 <input type="text" id="email" name="email" size="45" value="[% email %]" onclick="this.value=''" />
626 <input type="text" id="email" name="email" size="45" value="[% email %]" />
628 [% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
632 [% UNLESS noemailpro %]
634 [% IF ( mandatoryemailpro ) %]
635 <label for="emailpro" class="required">
637 <label for="emailpro">
639 Secondary Email: </label>
640 [% IF ( opduplicate ) %]
641 <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro %]" onclick="this.value=''" />
643 <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro %]" />
645 [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
650 [% IF ( mandatoryfax ) %]
651 <label for="fax" class="required">
656 [% IF ( opduplicate ) %]
657 <input type="text" id="fax" name="fax" value="[% fax %]" onclick="this.value=''" />
659 <input type="text" id="fax" name="fax" value="[% fax %]" />
661 [% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %]
666 [%END # hide fieldset %]
668 <!-- ************************ STEP_1 *********************** -->
672 [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
673 <fieldset class="rows" id="memberentry_address">
674 <legend>Alternate address</legend><ol>
675 [% UNLESS noB_address %]
677 [% IF ( mandatoryB_address ) %]
678 <label for="B_address" class="required">
680 <label for="B_address">
683 [% IF ( opduplicate ) %]
684 <input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" onclick="this.value=''" />
686 <input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" />
688 [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
691 [% UNLESS noB_address2 %]
693 [% IF ( mandatoryB_address2 ) %]
694 <label for="B_address2" class="required">
696 <label for="B_address2">
699 [% IF ( opduplicate ) %]
700 <input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" onclick="this.value=''" />
702 <input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" />
704 [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
707 [% UNLESS noB_city %]
709 [% IF ( mandatoryB_city ) %]
710 <label for="B_city" class="required" >
715 <input type="text" id="B_city" name="B_city" size="20" value="[% B_city %]" />
716 [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %]
719 [% UNLESS noB_state %]
721 [% IF ( mandatoryB_state ) %]
722 <label for="B_state" class="required" >
724 <label for="B_state">
727 <input type="text" id="B_state" name="B_state" size="20" value="[% B_state %]" />
728 [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %]
731 [% UNLESS noB_zipcode %]
733 [% IF ( mandatoryB_zipcode ) %]
734 <label for="B_zipcode" class="required">
736 <label for="B_zipcode">
738 Zip/Postal code: </label>
739 [% IF ( opduplicate ) %]
740 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" onclick="this.value=''" />
742 <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" />
744 [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
747 [% UNLESS noB_country %]
749 [% IF ( mandatoryB_country ) %]
750 <label for="B_country" class="required">
752 <label for="B_country">
755 [% IF ( opduplicate ) %]
756 <input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" onclick="this.value=''" />
758 <input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" />
760 [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
763 [% UNLESS noB_phone %]
765 [% IF ( mandatoryB_phone ) %]
766 <label for="B_phone" class="required">
768 <label for="B_phone">
771 [% IF ( opduplicate ) %]
772 <input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" onclick="this.value=''" />
774 <input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" />
776 [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
779 [% UNLESS noB_email %]
781 [% IF ( mandatoryB_email ) %]
782 <label for="B_email" class="required">
784 <label for="B_email">
787 [% IF ( opduplicate ) %]
788 <input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" onclick="this.value=''" />
790 <input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" />
792 [% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li>
794 [% UNLESS nocontactnote %]
796 [% IF ( mandatorycontactnote ) %]
797 <label for="contactnote" class="required">
799 <label for="contactnote">
801 Contact note: </label>
802 <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% contactnote %]</textarea>
803 [% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %]
808 [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
811 [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
812 <fieldset class="rows" id="memberentry_altaddress">
813 <legend>Alternate Contact</legend><ol>
814 [% UNLESS noaltcontactsurname %]
816 [% IF ( mandatoryaltcontactsurname ) %]
817 <label for="altcontactsurname" class="required">
819 <label for="altcontactsurname">
822 [% IF ( opduplicate ) %]
823 <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" onclick="this.value=''" />
825 <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" />
827 [% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
830 [% UNLESS noaltcontactfirstname %]
832 [% IF ( mandatoryaltcontactfirstname ) %]
833 <label for="altcontactfirstname" class="required">
835 <label for="altcontactfirstname">
838 [% IF ( opduplicate ) %]
839 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" onclick="this.value=''" />
841 <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" />
843 [% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
846 [% UNLESS noaltcontactaddress1 %]
848 [% IF ( mandatoryaltcontactaddress1 ) %]
849 <label for="altcontactaddress1" class="required">
851 <label for="altcontactaddress1">
854 [% IF ( opduplicate ) %]
855 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" onclick="this.value=''" size="40" />
857 <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" size="40" />
859 [% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
862 [% UNLESS noaltcontactaddress2 %]
864 [% IF ( mandatoryaltcontactaddress2 ) %]
865 <label for="altcontactaddress2" class="required">
867 <label for="altcontactaddress2">
870 [% IF ( opduplicate ) %]
871 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" onclick="this.value=''" size="40" />
873 <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" size="40" />
875 [% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
878 [% UNLESS noaltcontactaddress3 %]
880 [% IF ( mandatoryaltcontactaddress3 ) %]
881 <label for="altcontactaddress3" class="required">
883 <label for="altcontactaddress3">
886 <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% altcontactaddress3 %]" size="20" />
887 [% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
890 [% UNLESS noaltcontactstate %]
892 [% IF ( mandatoryaltcontactstate ) %]
893 <label for="altcontactstate" class="required">
895 <label for="altcontactstate">
898 <input type="text" name="altcontactstate" id="altcontactstate" value="[% altcontactstate %]" size="20" />
899 [% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
902 [% UNLESS noaltcontactzipcode %]
904 [% IF ( mandatoryaltcontactzipcode ) %]
905 <label for="altcontactzipcode" class="required">
907 <label for="altcontactzipcode">
909 Zip/Postal code:</label>
910 [% IF ( opduplicate ) %]
911 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" onclick="this.value=''" size="5" />
913 <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" size="5" />
915 [% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
918 [% UNLESS noaltcontactcountry %]
920 [% IF ( mandatoryaltcontactcountry ) %]
921 <label for="altcontactcountry" class="required">
923 <label for="altcontactcountry">
926 [% IF ( opduplicate ) %]
927 <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" onclick="this.value=''" size="20" />
929 <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" size="20" />
931 [% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
934 [% UNLESS noaltcontactphone %]
936 [% IF ( mandatoryaltcontactphone ) %]
937 <label for="altcontactphone" class="required">
939 <label for="altcontactphone">
942 [% IF ( opduplicate ) %]
943 <input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" onclick="this.value=''" />
945 <input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" />
947 [% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
952 [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %]
957 <fieldset class="rows" id="memberentry_library_management">
958 <legend>Library Management</legend><ol>
959 [% UNLESS nocardnumber %]
960 <li> [% IF ( mandatorycardnumber ) %]
961 <label for="cardnumber" class="required">
963 <label for="cardnumber">
965 Card number: </label>
966 [% IF ( opduplicate ) %]
967 <input type="text" id="cardnumber" name="cardnumber" size="20" />
969 <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" />
971 [% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]</li>
973 [% UNLESS nobranchcode %]
975 [% IF ( mandatorybranchcode ) %]
976 <label for="branchcode" class="required">
978 <label for="branchcode">
982 [% IF ( mandatorybranchcode ) %]<span class="required">Required</span>[% END %]
986 <label for="categorycode">Category: </label>
987 <select id="categorycode" name="categorycode">
988 [% FOREACH typeloo IN typeloop %]
989 [% FOREACH categoryloo IN typeloo.categoryloop %]
990 [% IF ( loop.first ) %]
991 [% IF ( categoryloo.typename_C ) %]<optgroup label="Child">[% END %]
992 [% IF ( categoryloo.typename_A ) %]<optgroup label="Adult">[% END %]
993 [% IF ( categoryloo.typename_S ) %]<optgroup label="Staff">[% END %]
994 [% IF ( categoryloo.typename_I ) %]<optgroup label="Organization">[% END %]
995 [% IF ( categoryloo.typename_P ) %]<optgroup label="Professional">[% END %]
996 [% IF ( categoryloo.typename_X ) %]<optgroup label="Statistical">[% END %]
998 [% IF ( categoryloo.categorycodeselected ) %]
999 <option value="[% categoryloo.categorycode %]" selected="selected">[% categoryloo.categoryname %]</option>
1001 <option value="[% categoryloo.categorycode %]">[% categoryloo.categoryname %]</option>
1003 [% IF ( loop.last ) %]
1010 [% UNLESS nosort1 %]
1012 [% IF ( mandatorysort1 ) %]
1013 <label for="sort1" class="required">
1018 [% IF ( CGIsort1 ) %]
1021 <input type="text" id="sort1" name="sort1" size="20" value="[% sort1 %]" />
1022 [% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %]
1026 [% UNLESS nosort2 %]
1028 [% IF ( mandatorysort2 ) %]
1029 <label for="sort2" class="required">
1034 [% IF ( CGIsort2 ) %]
1037 [% IF ( opduplicate ) %]
1038 <input type="text" id="sort2" name="sort2" size="20" value="[% sort2 %]" onclick="this.value=''" />
1040 <input type="text" id="sort2" name="sort2" size="20" value="[% sort2 %]" />
1042 [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
1048 [% UNLESS nodateenrolled && nodateexpiry && noopacnote && noborrowernotes %]
1049 <fieldset class="rows" id="memberentry_subscription">
1050 <legend>Library set-up</legend><ol>
1051 [% UNLESS nodateenrolled %]
1053 [% IF ( mandatorydateenrolled ) %]
1054 <label for="dateenrolled" class="required">
1056 <label for="dateenrolled">
1058 Registration date: </label>
1060 <input type="text" id="dateenrolled" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled %]" />
1062 <input type="text" id="dateenrolled" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled %]" />
1064 <img src="[% themelang %]/lib/calendar/cal.gif" id="dateenrolled_button" alt="Show Calendar" />
1065 <script language="JavaScript" type="text/javascript">
1068 inputField : "dateenrolled",
1069 ifFormat : "[% DHTMLcalendar_dateformat %]",
1070 button : "dateenrolled_button"
1074 [% IF ( mandatorydateenrolled ) %]<span class="required">Required</span>[% END %]
1075 [% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %]
1076 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
1079 [% UNLESS nodateexpiry %]
1081 [% IF ( mandatorydateexpiry ) %]
1082 <label for="dateexpiry" class="required">
1084 <label for="dateexpiry">
1086 Expiry date (leave blank for auto calc) </label>
1088 [% UNLESS ( opadd ) %]
1089 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry %]" />
1091 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" />
1094 [% UNLESS ( opadd ) %]
1095 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry %]" />
1097 <input type="text" id="dateexpiry" name="dateexpiry" maxlength="10" size="10" />
1100 <img src="[% themelang %]/lib/calendar/cal.gif" id="dateexpiry_button" alt="Show Calendar" />
1101 <script language="JavaScript" type="text/javascript">
1104 inputField : "dateexpiry",
1105 ifFormat : "[% DHTMLcalendar_dateformat %]",
1106 button : "dateexpiry_button"
1110 [% IF ( mandatorydateexpiry ) %]<span class="required">Required</span>[% END %]
1111 [% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %]
1112 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
1115 [% UNLESS noopacnote %]
1117 [% IF ( mandatoryopacnote ) %]
1118 <label for="opacnote" class="required">
1120 <label for="opacnote">
1123 <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote %]</textarea>
1124 <div class="hint">This message appears on this patron's user page in the OPAC</div>
1125 [% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %]
1128 [% UNLESS noborrowernotes %]
1130 [% IF ( mandatoryborrowernotes ) %]
1131 <label for="borrowernotes" class="required">
1133 <label for="borrowernotes">
1135 Circulation note: </label>
1136 <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes %]</textarea>
1137 <div class="hint">This message displays when checking out to this patron</div>
1138 [% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %]
1143 [% END # hide fieldset %]
1145 [% UNLESS nouserid && nopassword %]
1146 <fieldset class="rows" id="memberentry_userid">
1147 <legend>OPAC/Staff Login</legend><ol>
1148 [% UNLESS nouserid %]
1150 [% IF ( mandatoryuserid ) %]
1151 <label for="userid" class="required">
1153 <label for="userid">
1157 [% IF ( NoUpdateLogin ) %]
1158 [% IF ( opduplicate ) %]
1159 <input type="text" id="userid" name="userid" size="20" disabled="disabled" />
1161 <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid %]" />
1164 [% IF ( opduplicate ) %]
1165 <input type="text" id="userid" name="userid" size="20" value="" />
1167 <input type="text" id="userid" name="userid" size="20" value="[% userid %]" />
1171 [% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %]
1174 [% UNLESS nopassword %]
1176 [% IF ( mandatorypassword ) %]
1177 <label for="password" class="required">
1179 <label for="password">
1183 [% IF ( NoUpdateLogin ) %]
1184 [% IF ( opduplicate ) %]
1185 <input type="text" id="password" name="password" size="20" disabled="disabled" />
1187 <input type="text" id="password" name="password" size="20" disabled="disabled" value="[% password %]" />
1190 [% IF ( opduplicate ) %]
1191 <input type="text" id="password" name="password" size="20" />
1193 <input type="text" id="password" name="password" size="20" value="[% password %]" />
1197 [% IF ( password ) %]
1198 [% IF ( NoUpdateLogin ) %]
1199 <input type="text" id="password" name="password" size="20" disabled="disabled" value="****" />
1201 [% IF ( opduplicate ) %]
1202 <input type="text" id="password" name="password" size="20" />
1204 <input type="text" id="password" name="password" size="20" value="****" />
1208 [% IF ( NoUpdateLogin ) %]
1209 <input type="text" id="password" name="password" size="20" disabled="disabled" value="" />
1211 <input type="text" id="password" name="password" size="20" value="" />
1215 [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_short_password ) %]<span class="required">Password is too short</span>[% END %]
1216 [% IF ( minPasswordLength ) %]<div class="hint">Minimum password length: [% minPasswordLength %]</div>[% END %]
1221 [% END # hide fieldset %]
1222 <!--this zones are not necessary in modif mode -->
1223 [% UNLESS ( opadd ) %]
1224 <fieldset class="rows">
1225 <legend>Patron Account Flags</legend>
1227 [% FOREACH flagloo IN flagloop %]
1228 <li><label class="radio" for="yes[% flagloo.name %]">
1229 [% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no Address:[% END %]
1230 [% IF ( flagloo.key == 'debarred' ) %]Restricted:[% END %]
1231 [% IF ( flagloo.key == 'lost' ) %]Lost Card:[% END %]
1233 <label for="yes[% flagloo.name %]">Yes </label>
1234 [% IF ( flagloo.yes ) %]
1235 <input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" checked="checked" />
1237 <input type="radio" id="yes[% flagloo.name %]" name="[% flagloo.name %]" value="1" />
1239 <label for="no[% flagloo.name %]">No </label>
1240 [% IF ( flagloo.no ) %]
1241 <input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" checked="checked"/>
1243 <input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" />
1249 <label for="yesdebarred" class="radio">Restricted: </label>
1250 [% IF ( debarred ) %]
1251 <label for="yesdebarred">Yes </label>
1252 <input type="radio" id="yesdebarred" name="debarred" value="1" checked="checked"/>
1253 <label for="nodebarred">No </label>
1254 <input type="radio" id="nodebarred" name="debarred" value="0"/>
1256 <label for="yesdebarred">Yes </label>
1257 <input type="radio" id="yesdebarred" name="debarred" value="1" />
1258 <label for="nodebarred">No </label>
1259 <input type="radio" id="nodebarred" name="debarred" value="0" checked="checked"/>
1263 <label for="datedebarred" class="radio">until:</label>
1264 [% IF opduplicate %]
1265 <input type="text" name="datedebarred" id="debarred" class="debarred" value="[% datedebarred %]" onclick="this.value=''" />
1267 <input type="text" name="datedebarred" id="debarred" class="debarred" value="[% datedebarred %]" />
1269 <img src="[% themelang %]/lib/calendar/cal.gif" id="debarred_button" alt="Show Calendar" />
1270 <script language="JavaScript" type="text/javascript">
1273 inputField : "debarred",
1274 ifFormat : "[% DHTMLcalendar_dateformat %]",
1275 button : "debarred_button"
1280 <label for="debarredcomment" class="radio">Comment:</label>
1281 [% IF ( opduplicate ) %]
1282 <textarea id="debarredcomment" name="debarredcomment" cols="55" rows="3" onclick="this.value=''">[% debarredcomment %]</textarea>
1284 <textarea id="debarredcomment" name="debarredcomment" cols="55" rows="3" ">[% debarredcomment %]</textarea>
1295 [% IF ( step_4 ) %][% IF ( ExtendedPatronAttributes ) %][% UNLESS ( no_patron_attribute_types ) %]
1296 <fieldset class="rows" id="memberentry_patron_attributes">
1297 <input type="hidden" name="setting_extended_patron_attributes" value="1" />
1298 <legend>Additional attributes and identifiers</legend>
1302 <th colspan="2">Value</th>
1304 [% FOREACH patron_attribute IN patron_attributes %]
1306 <td>[% patron_attribute.code %] ([% patron_attribute.description %])
1309 <input type="hidden" id="[% patron_attribute.form_id %]_code" name="[% patron_attribute.form_id %]_code" value="[% patron_attribute.code |html %]" />
1310 [% IF ( patron_attribute.use_dropdown ) %]
1311 <select id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]">
1313 [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %]
1314 [% IF ( auth_val_loo.selected ) %]
1315 <option value="[% auth_val_loo.authorised_value %]" selected="selected">
1316 [% auth_val_loo.lib %]
1319 <option value="[% auth_val_loo.authorised_value %]" >
1320 [% auth_val_loo.lib %]
1326 [% IF ( opduplicate ) %]
1327 <input type="text" maxlength="64" value="[% patron_attribute.value %]"
1328 id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]" onclick="this.value=''" />
1330 <input type="text" maxlength="64" value="[% patron_attribute.value %]"
1331 id="[% patron_attribute.form_id %]" name="[% patron_attribute.form_id %]" />
1334 [% IF ( patron_attribute.password_allowed ) %]
1335 (Password: <input type="password" maxlength="64" value="[% patron_attribute.password %]"
1336 id="[% patron_attribute.form_id %]_password" name="[% patron_attribute.form_id %]_password" />)
1340 <a href="#" onclick="clear_entry(this); return false;">Clear</a>
1341 [% IF ( patron_attribute.repeatable ) %]
1342 <a href="#" onclick="clone_entry(this); return false;">New</a>
1349 [% END %][% END %][% END %]
1351 [% IF ( step_5 ) %][% IF ( EnhancedMessagingPreferences ) %]
1352 <fieldset class="rows" id="memberentry_messaging_prefs">
1354 <!-- handle changing prefs if creating new patron and changing
1357 <script language="javascript" type="text/javascript">//<![CDATA[
1358 $(document).ready(function(){
1359 var message_prefs_dirty = false;
1360 $('#memberentry_messaging_prefs > *').change(function() {
1361 message_prefs_dirty = true;
1363 $('#categorycode').change(function() {
1364 var categorycode = $(this).val();
1365 if (message_prefs_dirty) {
1366 if (!confirm('Change messaging preferences to default for this category?')) {
1370 $.getJSON('/cgi-bin/koha/members/default_messageprefs.pl?categorycode=' + categorycode,
1372 $.each(data.messaging_preferences, function(i, item) {
1373 var attrid = item.message_attribute_id;
1374 var transports = ['email', 'rss', 'sms'];
1375 $.each(transports, function(j, transport) {
1376 if (item['transport-' + transport] != ' ') {
1377 $('#' + transport + attrid).attr('checked', item['transport-' + transport]);
1379 $('#' + transport + attrid).removeAttr('checked');
1382 if (item.digest && item.digest != ' ') {
1383 $('#digest' + attrid).attr('checked', item.digest);
1385 $('#digest' + attrid).removeAttr('checked');
1387 if (item.takes_days == '1') {
1388 $('[name=' + attrid + '-DAYS]').val('' + item.days_in_advance);
1391 message_prefs_dirty = false;
1399 <input type="hidden" name="setting_messaging_prefs" value="1" />
1400 <legend>Patron messaging preferences</legend>
1402 <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>
1404 [% INCLUDE 'messaging-preference-form.inc' %]
1405 [% IF ( SMSSendDriver ) %]
1406 <p><label for="SMSnumber">SMS number:</label>
1407 [% IF ( opduplicate ) %]
1408 <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" onclick="this.value=''" />
1410 <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" />
1417 <fieldset class="action">
1418 <input type="submit" name="save" onclick="return check_form_borrowers();" value="Save" />
1420 <a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a>
1422 <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Cancel</a>
1430 [% UNLESS ( opadd ) %]<div class="yui-b">
1431 [% INCLUDE 'members-menu.inc' %]
1435 [% INCLUDE 'intranet-bottom.inc' %]