3 [% USE AuthorisedValues %]
9 [% USE AdditionalContents %]
10 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
11 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
12 [% SET userupdateview = 1 %]
13 [% BLOCK streetnumber %]
14 [% UNLESS hidden.defined('streetnumber') %]
16 <label for="borrower_streetnumber" class="[% required.streetnumber | html %]">Street number:</label>
18 <input type="text" id="borrower_streetnumber" name="borrower_streetnumber" value="[% borrower.streetnumber | html %]" class="[% required.streetnumber | html %]" size="5" maxlength="10" />
19 <div class="required_label [% required.streetnumber | html %]">Required</div>
23 [% BLOCK B_streetnumber %]
24 [% UNLESS hidden.defined('B_streetnumber') %]
26 <label for="borrower_B_streetnumber" class="[% required.B_streetnumber | html %]">Street number:</label>
28 <input type="text" id="borrower_B_streetnumber" name="borrower_B_streetnumber" value="[% borrower.B_streetnumber | html %]" class="[% required.B_streetnumber | html %]" size="5" maxlength="10" />
29 <div class="required_label [% required.B_streetnumber | html %]">Required</div>
34 [% INCLUDE 'doc-head-open.inc' %]
35 <title>[% IF action == 'edit' %]Update your personal details[% ELSE %]Register a new account[% END %] › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
36 [% INCLUDE 'doc-head-close.inc' %]
37 [% BLOCK cssinclude %][% END %]
40 [% IF action == 'edit' %]
41 [% INCLUDE 'bodytag.inc' bodyid='opac-patron-update' %]
43 <body id="opac-patron-registration" class="opac">
45 [% INCLUDE 'masthead.inc' %]
49 [% WRAPPER breadcrumbs %]
50 [% IF action == 'edit' %]
51 [% WRAPPER breadcrumb_item %]
52 <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
54 [% WRAPPER breadcrumb_item bc_active= 1 %]
55 <span>Your personal details</span>
58 [% WRAPPER breadcrumb_item bc_active= 1 %]
59 <span>Register a new account</span>
62 [% END #/ WRAPPER breadcrumbs %]
64 <div class="container-fluid">
66 <div class="col col-lg-2 order-2 order-lg-1">
68 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
71 <div class="col-md-12 col-lg-10 order-1">
73 <h1>Your personal details</h1>
75 [% IF action == 'edit' %]
76 <div id="update-account" class="maincontent">
78 <div id="add-account" class="maincontent">
81 [% IF action == 'edit' %]
82 [% UNLESS OPACPatronDetails %]
83 <div class="alert alert-info">To make changes to your record please contact the library.</div>
86 <div class="alert alert-error">No changes were made.</div>
90 [% IF empty_mandatory_fields %]
91 <div class="alert alert-warning">You have not filled out all required fields. Please fill in all missing fields and resubmit.</div>
94 [% IF invalid_form_fields %]
95 <div class="alert alert-error"><strong>The following fields contain invalid information:</strong>
97 [% FOREACH field IN invalid_form_fields %]
98 [% IF field == "email" %]<li>Contact information: <a href="#borrower_email">primary email address</a></li>[% END %]
99 [% IF field == "emailpro" %]<li>Contact information: <a href="#borrower_emailpro">secondary email address</a></li>[% END %]
100 [% IF field == "B_email" %]<li>Alternate address information: <a href="#borrower_B_email">email address</a></li>[% END %]
101 [% IF field == "password_match" %]<li>Passwords do not match! <a href="#password">password</a></li>[% END %]
102 [% IF field == "password_too_short" %]
103 <li>Password must be at least [% patron.category.effective_min_password_length | html %] characters long.</li>
105 [% IF field == "password_too_weak" %]
106 <li>Password must contain at least one digit, one lowercase and one uppercase.</li>
108 [% IF field == "password_has_whitespaces" %]
109 <li>Password must not contain leading or trailing whitespaces.</li>
111 [% IF field == "duplicate_email" %]
112 <li>This email address already exists in our database.</li>
114 [% IF field == "email_match" %]
115 <li>Emails do not match! <a href="#borrower_repeat_email">confirm email address</a></li>
119 <span>Please correct and resubmit.</span>
123 [% IF cardnumber_wrong_length || cardnumber_already_exists %]
124 <div class="alert alert-error">
125 [% IF cardnumber_wrong_length %]
126 <a href="#borrower_cardnumber"><strong>The entered card number is the wrong length.</strong></a>
127 [% ELSIF cardnumber_already_exists %]
128 <a href="#borrower_cardnumber"><strong>The entered card number is already in use.</strong></a>
130 <span>Please correct and resubmit.</span>
134 [% IF error_type OR error_info %]
135 <div class="alert alert-error"><li>
136 <p>There were problems processing your registration. Please contact your library for help.</p>
137 [% IF error_type == 'Koha::Exceptions::Patron::InvalidUserid' %]
138 <p>Error: Userid is not valid</p>
140 <p>Error [% error_type | html %]: [% error_info | html %]</p>
145 [% IF failed_captcha %]
146 <div class="alert alert-warning">You typed in the wrong characters in the box before submitting. Please try again.</div>
149 [% IF has_guarantor_flag && !Koha.Preference('OPACPrivacy') && ( Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') || Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') ) %]
152 <fieldset class="rows" id="memberentry_privacy">
153 <legend id="privacy_legend">Privacy</legend>
155 [% IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
157 <label>Allow your guarantor to view your current checkouts?</label>
158 <select id="privacy_guarantor_checkouts">
159 <option value="0">No</option>
160 [% IF borrower.privacy_guarantor_checkouts %]
161 <option value="1" selected="selected">Yes</option>
163 <option value="1">Yes</option>
167 <a id="update_privacy_guarantor_checkouts" href="#" class="btn btn-primary">Update</a>
168 <span id="update_privacy_guarantor_checkouts_message" class="alert" style="display:none"></span>
173 [% IF Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') %]
175 <label>Allow your guarantor to view your current fines?</label>
176 <select id="privacy_guarantor_fines">
177 <option value="0">No</option>
178 [% IF borrower.privacy_guarantor_fines %]
179 <option value="1" selected="selected">Yes</option>
181 <option value="1">Yes</option>
185 <a id="update_privacy_guarantor_fines" href="#" class="btn btn-primary">Update</a>
186 <span id="update_privacy_guarantor_fines_message" class="alert" style="display:none"></span>
194 [% FOREACH gr IN patron.guarantor_relationships %]
195 [% SET g = gr.guarantor %]
196 [% g.firstname | html %] [% g.middle_name | html %] [% g.surname | html %]
197 [%- IF ! loop.last %], [% END %]
207 [% IF ( extended_unique_id_failed_code ) %]
208 <div class="alert" id="extended_unique_id_failed"><a href="#patron-attr-start-[% extended_unique_id_failed_code | uri %]">[% extended_unique_id_failed_description _ ': ' | html %]</a> Value is already in use ([% extended_unique_id_failed_value | html %])</div>
211 <form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off">
213 [% FOREACH field = ['streetnumber' 'streettype' 'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'middle_name' 'dateofbirth' 'initials' 'pronouns' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_streettype' 'B_streetnumber' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' 'lang' ] %]
214 [% IF mandatory.defined( field ) %]
215 [% SET required.$field = 'required' %]
219 [%# Following on one line for translatability %]
220 [% UNLESS ( hidden.defined('cardnumber') || ( !borrower && Koha.Preference('autoMemberNum') ) ) && hidden.defined('dateexpiry') && hidden.defined('branchcode') && hidden.defined('categorycode') %]
223 <fieldset class="rows" id="memberentry_library">
225 <legend id="library_legend">Library</legend>
227 [% UNLESS hidden.defined('cardnumber') || ( !borrower && Koha.Preference('autoMemberNum') ) %]
230 <label for="borrower_cardnumber" class="[% required.cardnumber | html %]">Library card number:</label>
232 [% IF borrower && !(cardnumber_wrong_length || cardnumber_already_exists) && action == 'edit' %]
233 [% borrower.cardnumber | html %]
235 [% IF minlength_cardnumber == maxlength_cardnumber %]
236 <input type="text" id="borrower_cardnumber" name="borrower_cardnumber" size="20" value="[% borrower.cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" class="[% required.cardnumber | html %]" />
237 <div class="required_label [% required.cardnumber | html %]">Required</div>
238 <div class="hint">Card number must be exactly [% minlength_cardnumber | html %] characters.</div>
239 [% ELSIF minlength_cardnumber && maxlength_cardnumber %]
240 <input type="text" id="borrower_cardnumber" name="borrower_cardnumber" size="20" value="[% borrower.cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" class="[% required.cardnumber | html %]" />
241 <div class="required_label [% required.cardnumber | html %]">Required</div>
242 <div class="hint">Card number must be between [% minlength_cardnumber | html %] and [% maxlength_cardnumber | html %] characters.</div>
243 [% ELSIF maxlength_cardnumber %]
244 <input type="text" id="borrower_cardnumber" name="borrower_cardnumber" size="20" value="[% borrower.cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" class="[% required.cardnumber | html %]" />
245 <div class="required_label [% required.cardnumber | html %]">Required</div>
246 <div class="hint">Card number can be up to [% maxlength_cardnumber | html %] characters.</div>
248 <input type="text" id="borrower_cardnumber" name="borrower_cardnumber" size="20" value="[% borrower.cardnumber | html %]" class="[% required.cardnumber | html %]" />
249 <div class="required_label [% required.cardnumber | html %]">Required</div>
250 <div class="hint">There is no minimum or maximum character length.</div>
256 [% IF action != 'new' %]
257 [% UNLESS hidden.defined('userid') %]
259 <label>Username:</label>
260 [% borrower.userid | html %]
265 [% UNLESS hidden.defined('dateexpiry') %]
267 <label>Expiration date:</label>
268 [% borrower.dateexpiry | $KohaDates %]
272 [% UNLESS hidden.defined('branchcode') %]
274 [% IF libraries.count %]
275 <label for="borrower_branchcode" class="[% required.branchcode | html %]">Home library:</label>
277 <select id="borrower_branchcode" name="borrower_branchcode" class="[% required.branchcode | html %]">
278 [% IF required.branchcode %]
279 <option value=""></option>
281 [% FOREACH l IN libraries %]
282 [% IF l.branchcode == borrower.branchcode %]
283 <option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
285 <option value="[% l.branchcode | html %]">[% l.branchname | html %]</option>
289 <div class="required_label [% required.branchcode | html %]">Required</div>
291 <span class="label">Home library:</span>
292 [% FOREACH l IN libraries %]
293 [% l.branchname | html %]
294 <input type="hidden" name="borrower_branchcode" value="[% l.branchcode | html %]" />
300 [% UNLESS hidden.defined('categorycode') %]
302 <label for="borrower_categorycode" class="[% required.categorycode | html %]">
306 [% Categories.GetName( borrower.categorycode ) | html %]
307 <input type="hidden" name="borrower_categorycode" value="[% borrower.categorycode | html %]" />
309 <select id="borrower_categorycode" name="borrower_categorycode" class="[% required.categorycode | html %]">
310 [% FOREACH c IN Categories.all() %]
311 [% IF c.categorycode == Koha.Preference('PatronSelfRegistrationDefaultCategory') %]
312 <option value="[% c.categorycode | html %]" data-pwd-length="[% c.effective_min_password_length | html %]" data-pwd-strong="[% c.effective_require_strong_password | html %]" selected="selected">[% c.description | html %]</option>
314 <option value="[% c.categorycode | html %]" data-pwd-length="[% c.effective_min_password_length | html %]" data-pwd-strong="[% c.effective_require_strong_password | html %]">[% c.description | html %]</option>
318 <div class="required_label [% required.categorycode | html %]">Required</div>
324 </div> <!-- /.col -->
325 </div> <!-- /.row -->
326 [% END # / defined 'branchcode' %]
328 [%# Following on one line for translatability %]
329 [% UNLESS hidden.defined('title') && hidden.defined('surname') && hidden.defined('firstname') && hidden.defined('middle_name') && hidden.defined('dateofbirth') && hidden.defined('initials') && hidden.defined('pronouns') && hidden.defined('othernames') && hidden.defined('sex') %]
332 <fieldset class="rows" id="memberentry_identity">
333 <legend id="identity_legend">Identity</legend>
336 [% UNLESS hidden.defined('title') || !Koha.Preference('BorrowersTitles') %]
338 <label for="borrower_title" class="[% required.title | html %]">Salutation:</label>
340 <select id="borrower_title" name="borrower_title" class="[% required.title | html %]">
341 <option value=""></option>
342 [% FOREACH mt IN Koha.Preference('BorrowersTitles').split('\|') %]
343 [% IF mt == borrower.title %]
344 <option value="[% mt | html %]" selected="selected">[% mt | html %]</option>
346 <option value="[% mt | html %]">[% mt | html %]</option>
350 <div class="required_label [% required.title | html %]">Required</div>
354 [% UNLESS hidden.defined('surname') %]
356 <label for="borrower_surname" class="[% required.surname | html %]">Surname:</label>
358 <input type="text" id="borrower_surname" name="borrower_surname" value="[% borrower.surname | html %]" class="[% required.surname | html %]" />
359 <div class="required_label [% required.surname | html %]">Required</div>
363 [% UNLESS hidden.defined('firstname') %]
365 <label for="borrower_firstname" class="[% required.firstname | html %]">First name:</label>
367 <input type="text" id="borrower_firstname" name="borrower_firstname" value="[% borrower.firstname | html %]" class="[% required.firstname | html %]" />
368 <div class="required_label [% required.firstname | html %]">Required</div>
372 [% UNLESS hidden.defined('middle_name') %]
374 <label for="borrower_middle_name" class="[% required.middle_name | html %]">Middle name:</label>
376 <input type="text" id="borrower_middle_name" name="borrower_middle_name" value="[% borrower.middle_name | html %]" class="[% required.middle_name | html %]" />
377 <div class="required_label [% required.middle_name | html %]">Required</div>
381 [% UNLESS hidden.defined('dateofbirth') %]
383 <label for="borrower_dateofbirth" class="[% required.dateofbirth | html %]">Date of birth:</label>
385 <input type="text" id="borrower_dateofbirth" name="borrower_dateofbirth" value="[% borrower.dateofbirth | html %]" size="10" class="[% required.dateofbirth | html %] flatpickr pastdate" />
387 <div class="required_label [% required.dateofbirth | html %]">Required</div>
391 [% UNLESS hidden.defined('initials') %]
393 <label for="borrower_initials" class="[% required.initials | html %]">Initials:</label>
395 <input type="text" id="borrower_initials" name="borrower_initials" value="[% borrower.initials | html %]" class="[% required.initials | html %]" />
396 <div class="required_label [% required.initials | html %]">Required</div>
400 [% UNLESS hidden.defined('pronouns') %]
402 <label for="borrower_pronouns" class="[% required.pronouns | html %]">Pronouns:</label>
404 <input type="text" id="borrower_pronouns" name="borrower_pronouns" value="[% borrower.pronouns | html %]" class="[% required.prnouns | html %]" />
405 <div class="required_label [% required.pronouns | html %]">Required</div>
409 [% UNLESS hidden.defined('othernames') %]
411 <label for="borrower_othernames" class="[% required.othernames | html %]">Other names:</label>
413 <input type="text" id="borrower_othernames" name="borrower_othernames" value="[% borrower.othernames | html %]" class="[% required.othernames | html %]" />
414 <div class="required_label [% required.othernames | html %]">Required</div>
418 [% UNLESS hidden.defined('sex') %]
420 <div class="label"></div>
421 <label for="sex-female" class="radio inline"><span class="patronsex-female">Female:</span></label>
422 [% IF borrower.sex == 'F' %]
423 <input type="radio" name="borrower_sex" id="sex-female" value="F" checked="checked" />
425 <input type="radio" name="borrower_sex" id="sex-female" value="F" />
428 <label for="sex-male" class="radio inline"><span class="patronsex-male">Male:</span></label>
429 [% IF borrower.sex == 'M' %]
430 <input type="radio" name="borrower_sex" id="sex-male" value="M" checked="checked" />
432 <input type="radio" name="borrower_sex" id="sex-male" value="M" />
435 <label for="sex-other" class="radio inline"><span class="patronsex-other">Other:</span></label>
436 [% IF borrower.sex == 'O' %]
437 <input type="radio" name="borrower_sex" id="sex-other" value="O" checked="checked" />
439 <input type="radio" name="borrower_sex" id="sex-other" value="O" />
442 <label for="sex-none" class="radio inline"><span class="patronsex-none">None specified:</span></label>
443 [% IF borrower.sex == '' %]
444 <input type="radio" name="borrower_sex" id="sex-none" value="" checked="checked" />
446 <input type="radio" name="borrower_sex" id="sex-none" value="" />
452 </div> <!-- /.col -->
453 [% IF ( display_patron_image ) %]
454 <div class="col-sm-2">
455 <p class="patronimage">
456 <img src="/cgi-bin/koha/opac-patron-image.pl" alt="" />
460 </div> <!-- /.row -->
461 [% END # /UNLESS fields hidden %]
463 [%# Following on one line for translatability %]
464 [% UNLESS hidden.defined('streetnumber') && hidden.defined('address') && hidden.defined('address2') && hidden.defined('city') && hidden.defined('state') && hidden.defined('zipcode') && hidden.defined('country') %]
467 <fieldset class="rows" id="memberentry_mainaddress">
468 <legend id="mainaddress_legend">Main address</legend>
471 [% IF Koha.Preference('AddressFormat') != 'de' %][% INCLUDE streetnumber %][% END %]
473 [% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %]
474 [% IF roadtypes.count %]
475 [% UNLESS hidden.defined('streettype') %]
477 <label for="borrower_streettype" class="[% required.streettype | html %]">Street type:</label>
479 <select name="borrower_streettype" name="borrower_streettype" class="[% required.streettype | html %]">
480 <option value=""></option>
481 [% FOR roadtype IN roadtypes %]
482 [% IF roadtype.authorised_value == patron.streettype %]
483 <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib_opac OR roadtype.lib | html %]</option>
485 <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib_opac OR roadtype.lib | html %]</option>
489 <div class="required_label [% required.streettype | html %]">Required</div>
494 [% UNLESS hidden.defined('address') %]
496 <label for="borrower_address" class="[% required.address | html %]">Address:</label>
498 <input type="text" id="borrower_address" name="borrower_address" value="[% borrower.address | html %]" class="[% required.address | html %]" />
499 <div class="required_label [% required.address | html %]">Required</div>
503 [% IF Koha.Preference('AddressFormat') == 'de' %][% INCLUDE streetnumber %][% END %]
505 [% UNLESS hidden.defined('address2') %]
507 <label for="borrower_address2" class="[% required.address2 | html %]">Address 2:</label>
509 <input type="text" id="borrower_address2" name="borrower_address2" value="[% borrower.address2 | html %]" class="[% required.address2 | html %]" />
510 <div class="required_label [% required.address2 | html %]">Required</div>
514 [% UNLESS hidden.defined('city') %]
516 <label for="borrower_city" class="[% required.city | html %]">City:</label>
518 <input type="text" id="borrower_city" name="borrower_city" value="[% borrower.city | html %]" class="[% required.city | html %]" />
519 <div class="required_label [% required.city | html %]">Required</div>
523 [% UNLESS hidden.defined('state') %]
525 <label for="borrower_state" class="[% required.state | html %]">State:</label>
527 <input type="text" id="borrower_state" name="borrower_state" value="[% borrower.state | html %]" class="[% required.state | html %]" />
528 <div class="required_label [% required.state | html %]">Required</div>
532 [% UNLESS hidden.defined('zipcode') %]
534 <label for="borrower_zipcode" class="[% required.zipcode | html %]">ZIP/Postal code:</label>
536 <input type="text" id="borrower_zipcode" name="borrower_zipcode" value="[% borrower.zipcode | html %]" class="[% required.zipcode | html %]" />
537 <div class="required_label [% required.zipcode | html %]">Required</div>
541 [% UNLESS hidden.defined('country') %]
543 <label for="borrower_country" class="[% required.country | html %]">Country:</label>
545 <input type="text" id="borrower_country" name="borrower_country" value="[% borrower.country | html %]" class="[% required.country | html %]" />
546 <div class="required_label [% required.country | html %]">Required</div>
552 </div> <!-- /.col -->
553 </div> <!-- /.row -->
556 [%# Following on one line for translatability %]
557 [% UNLESS hidden.defined('phone') && hidden.defined('phonepro') && hidden.defined('mobile') && hidden.defined('email') && hidden.defined('emailpro') && hidden.defined('fax') %]
560 <fieldset class="rows" id="memberentry_contact">
561 <legend id="contact_legend">Contact information</legend>
564 [% UNLESS hidden.defined('phone') %]
566 <label for="borrower_phone" class="[% required.phone | html %]">Primary phone:</label>
568 <input type="text" id="borrower_phone" name="borrower_phone" value="[% borrower.phone | html %]" class="[% required.phone | html %]" />
569 <div class="required_label [% required.phone | html %]">Required</div>
573 [% UNLESS hidden.defined('phonepro') %]
575 <label for="borrower_phonepro" class="[% required.phonepro | html %]">Secondary phone:</label>
577 <input type="text" id="borrower_phonepro" name="borrower_phonepro" value="[% borrower.phonepro | html %]" class="[% required.phonepro | html %]" />
578 <div class="required_label [% required.phonepro | html %]">Required</div>
582 [% UNLESS hidden.defined('mobile') %]
584 <label for="borrower_mobile" class="[% required.mobile | html %]">Other phone:</label>
586 <input type="text" id="borrower_mobile" name="borrower_mobile" value="[% borrower.mobile | html %]" class="[% required.mobile | html %]" />
587 <div class="required_label [% required.mobile | html %]">Required</div>
591 [% UNLESS hidden.defined('email') %]
593 <label for="borrower_email" class="[% required.email | html %]">Primary email:</label>
595 <input type="text" id="borrower_email" name="borrower_email" value="[% borrower.email | html %]" class="[% required.email | html %]" />
596 <div class="required_label [% required.email | html %]">Required</div>
599 [% IF action != 'edit' and Koha.Preference('PatronSelfRegistrationConfirmEmail') %]
601 <label for="borrower_repeat_email" class="[% required.email | html %]">Confirm primary email:</label>
603 <input type="text" id="borrower_repeat_email" name="borrower_repeat_email" autocomplete="off" class="[% required.email | html %]">
604 <div class="required_label [% required.email | html %]">Required</div>
609 [% UNLESS hidden.defined('emailpro') %]
611 <label for="borrower_emailpro" class="[% required.emailpro | html %]">Secondary email:</label>
613 <input type="text" id="borrower_emailpro" name="borrower_emailpro" value="[% borrower.emailpro | html %]" class="[% required.emailpro | html %]" />
614 <div class="required_label [% required.emailpro | html %]">Required</div>
618 [% UNLESS hidden.defined('fax') %]
620 <label for="borrower_fax" class="[% required.fax | html %]">Fax:</label>
622 <input type="text" id="borrower_fax" name="borrower_fax" value="[% borrower.fax | html %]" class="[% required.fax | html %]" />
623 <div class="required_label [% required.fax | html %]">Required</div>
627 [% UNLESS hidden.defined('primary_contact_method') %]
629 [% IF ( mandatory.defined('primary_contact_method') ) %]
630 <label for="borrower_primary_contact_method" class="required">Main contact method:</label>
632 <label for="borrower_primary_contact_method">Main contact method:</label>
635 <select id="borrower_primary_contact_method" name="borrower_primary_contact_method">
636 <option value=""></option>
637 [% UNLESS hidden.defined('phone') %]
638 [% IF ( borrower.primary_contact_method == 'phone' ) %]
639 <option value="phone" selected="selected">Primary phone</option>
641 <option value="phone">Primary phone</option>
644 [% UNLESS hidden.defined('phonepro') %]
645 [% IF ( borrower.primary_contact_method == 'phonepro' ) %]
646 <option value="phonepro" selected="selected">Secondary phone</option>
648 <option value="phonepro">Secondary phone</option>
651 [% UNLESS hidden.defined('mobile') %]
652 [% IF ( borrower.primary_contact_method == 'mobile' ) %]
653 <option value="mobile" selected="selected">Other phone</option>
655 <option value="mobile">Other phone</option>
658 [% UNLESS hidden.defined('email') %]
659 [% IF ( borrower.primary_contact_method == 'email' ) %]
660 <option value="email" selected="selected">Primary email</option>
662 <option value="email">Primary email</option>
665 [% UNLESS hidden.defined('emailpro') %]
666 [% IF ( borrower.primary_contact_method == 'emailpro' ) %]
667 <option value="emailpro" selected="selected">Secondary email</option>
669 <option value="emailpro">Secondary email</option>
672 [% UNLESS hidden.defined('fax') %]
673 [% IF ( borrower.primary_contact_method == 'fax' ) %]
674 <option value="fax" selected="selected">Fax</option>
676 <option value="fax">Fax</option>
680 [% IF ( mandatory.defined('primary_contact_method') ) %]<span class="required">Required</span>[% END %]
682 [% UNLESS hidden.defined('lang') %]
684 [% IF ( mandatory.defined('lang') ) %]
685 <label for="borrower_lang" class="required">Preferred language for notices: </label>
687 <label for="borrower_lang">Preferred language for notices: </label>
689 <select id="borrower_lang" name="borrower_lang">
690 <option value="default">Default</option>
691 [% FOR language IN languages %]
692 [% FOR sublanguage IN language.sublanguages_loop %]
693 [% IF language.plural %]
694 [% IF sublanguage.rfc4646_subtag == borrower.lang %]
695 <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
697 <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
700 [% IF sublanguage.rfc4646_subtag == borrower.lang %]
701 <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
703 <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
705 [% END # /IF language.plural %]
706 [% END # /FOR sublanguage %]
707 [% END #/FOR language %]
708 </select> <!-- /#lang -->
709 [% IF ( mandatory.defined('lang') ) %]<div class="required_label required">Required</div>[% END %]
715 </div> <!-- /.col -->
716 </div> <!-- /.row -->
719 [%# Following on one line for translatability %]
720 [% UNLESS hidden.defined('B_streetnumber') && hidden.defined('B_address') && hidden.defined('B_address2') && hidden.defined('B_city') && hidden.defined('B_state') && hidden.defined('B_zipcode') && hidden.defined('B_country') && hidden.defined('B_phone') && hidden.defined('B_email') && hidden.defined('contactnote') %]
723 <fieldset class="rows" id="memberentry_alternateaddress">
724 <legend id="alternateaddress_legend">Alternate address</legend>
727 [% IF Koha.Preference('AddressFormat') != 'de' %][% INCLUDE B_streetnumber %][% END %]
729 [% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %]
730 [% IF roadtypes.count %]
731 [% UNLESS hidden.defined('B_streettype') %]
733 <label for="borrower_B_streettype" class="[% required.B_streettype | html %]">Street type:</label>
735 <select name="borrower_B_streettype" name="borrower_B_streettype" class="[% required.B_streettype | html %]">
736 <option value=""></option>
737 [% FOR roadtype IN roadtypes %]
738 [% IF roadtype.authorised_value == patron.streettype %]
739 <option value="[% roadtype.authorised_value | html %]" selected="selected">[% roadtype.lib | html %]</option>
741 <option value="[% roadtype.authorised_value | html %]">[% roadtype.lib | html %]</option>
745 <div class="required_label [% required.B_streettype | html %]">Required</div>
749 [% UNLESS hidden.defined('B_address') %]
751 <label for="borrower_B_address" class="[% required.B_address | html %]">Address:</label>
753 <input type="text" id="borrower_B_address" name="borrower_B_address" value="[% borrower.B_address | html %]" class="[% required.B_address | html %]" />
754 <div class="required_label [% required.B_address | html %]">Required</div>
758 [% IF Koha.Preference('AddressFormat') == 'de' %][% INCLUDE streetnumber %][% END %]
760 [% UNLESS hidden.defined('B_address2') %]
762 <label for="borrower_B_address2" class="[% required.B_address | html %]">Address 2:</label>
764 <input type="text" id="borrower_B_address2" name="borrower_B_address2" value="[% borrower.B_address2 | html %]" class="[% required.B_address | html %]" />
765 <div class="required_label [% required.B_address2 | html %]">Required</div>
769 [% UNLESS hidden.defined('B_city') %]
771 <label for="borrower_B_city" class="[% required.B_city | html %]">City:</label>
773 <input type="text" id="borrower_B_city" name="borrower_B_city" value="[% borrower.B_city | html %]" class="[% required.B_city | html %]" />
774 <div class="required_label [% required.B_city | html %]">Required</div>
778 [% UNLESS hidden.defined('B_state') %]
780 <label for="borrower_B_state" class="[% required.B_state | html %]">State:</label>
782 <input type="text" id="borrower_B_state" name="borrower_B_state" value="[% borrower.B_state | html %]" class="[% required.B_state | html %]" />
783 <div class="required_label [% required.B_state | html %]">Required</div>
787 [% UNLESS hidden.defined('B_zipcode') %]
789 <label for="borrower_B_zipcode" class="[% required.B_zipcode | html %]">ZIP/Postal code:</label>
791 <input type="text" id="borrower_B_zipcode" name="borrower_B_zipcode" value="[% borrower.B_zipcode | html %]" class="[% required.B_zipcode | html %]" />
792 <div class="required_label [% required.B_zipcode | html %]">Required</div>
796 [% UNLESS hidden.defined('B_country') %]
798 <label for="borrower_B_country" class="[% required.B_country | html %]">Country:</label>
800 <input type="text" id="borrower_B_country" name="borrower_B_country" value="[% borrower.B_country | html %]" class="[% required.B_country | html %]" />
801 <div class="required_label [% required.B_country | html %]">Required</div>
805 [% UNLESS hidden.defined('B_phone') %]
807 <label for="borrower_B_phone" class="[% required.B_phone | html %]">Phone:</label>
809 <input type="text" id="borrower_B_phone" name="borrower_B_phone" value="[% borrower.B_phone | html %]" class="[% required.B_phone | html %]" />
810 <div class="required_label [% required.B_phone | html %]">Required</div>
814 [% UNLESS hidden.defined('B_email') %]
816 <label for="borrower_B_email" class="[% required.B_email | html %]">Email:</label>
818 <input type="text" id="borrower_B_email" name="borrower_B_email" value="[% borrower.B_email | html %]" class="[% required.B_email | html %]" />
819 <div class="required_label [% required.B_email | html %]">Required</div>
823 [% UNLESS hidden.defined('contactnote') %]
825 <label for="borrower_contactnote" class="[% required.contactnote | html %]">Contact note:</label>
827 <textarea id="borrower_contactnote" name="borrower_contactnote" cols="30" rows="2" class="[% required.contactnote | html %]">[% borrower.contactnote | html %]</textarea>
828 <div class="required_label [% required.contactnote | html %]">Required</div>
834 </div> <!-- /.col -->
835 </div> <!-- /.row -->
838 [%# Following on one line for translatability %]
839 [% UNLESS hidden.defined('altcontactsurname') && hidden.defined('altcontactfirstname') && hidden.defined('altcontactaddress1') && hidden.defined('altcontactaddress2') && hidden.defined('altcontactaddress3') && hidden.defined('altcontactstate') && hidden.defined('altcontactzipcode') && hidden.defined('altcontactcountry') && hidden.defined('altcontactphone') %]
842 <fieldset class="rows" id="memberentry_alternatecontact">
843 <legend id="alternatecontact_legend">Alternate contact</legend>
846 [% UNLESS hidden.defined('altcontactsurname') %]
848 <label for="borrower_altcontactsurname" class="[% required.altcontactsurname | html %]">Surname:</label>
850 <input type="text" id="borrower_altcontactsurname" name="borrower_altcontactsurname" value="[% borrower.altcontactsurname | html %]" class="[% required.altcontactsurname | html %]" />
851 <div class="required_label [% required.altcontactsurname | html %]">Required</div>
855 [% UNLESS hidden.defined('altcontactfirstname') %]
857 <label for="borrower_altcontactfirstname" class="[% required.altcontactfirstname | html %]">First name:</label>
859 <input type="text" id="borrower_altcontactfirstname" name="borrower_altcontactfirstname" value="[% borrower.altcontactfirstname | html %]" class="[% required.altcontactfirstname | html %]" />
860 <div class="required_label [% required.altcontactfirstname | html %]">Required</div>
864 [% UNLESS hidden.defined('altcontactaddress1') %]
866 <label for="borrower_altcontactaddress1" class="[% required.altcontactaddress1 | html %]">Address:</label>
868 <input type="text" id="borrower_altcontactaddress1" name="borrower_altcontactaddress1" value="[% borrower.altcontactaddress1 | html %]" class="[% required.altcontactaddress1 | html %]" />
869 <div class="required_label [% required.altcontactaddress1 | html %]">Required</div>
873 [% UNLESS hidden.defined('altcontactaddress2') %]
875 <label for="borrower_altcontactaddress2" class="[% required.altcontactaddress2 | html %]">Address 2:</label>
877 <input type="text" id="borrower_altcontactaddress2" name="borrower_altcontactaddress2" value="[% borrower.altcontactaddress2 | html %]" class="[% required.altcontactaddress2 | html %]" />
878 <div class="required_label [% required.altcontactaddress2 | html %]">Required</div>
882 [% UNLESS hidden.defined('altcontactaddress3') %]
884 <label for="borrower_altcontactaddress3" class="[% required.altcontactaddress3 | html %]">City:</label>
886 <input type="text" id="borrower_altcontactaddress3" name="borrower_altcontactaddress3" value="[% borrower.altcontactaddress3 | html %]" class="[% required.altcontactaddress3 | html %]" />
887 <div class="required_label [% required.altcontactaddress3 | html %]">Required</div>
891 [% UNLESS hidden.defined('altcontactstate') %]
893 <label for="borrower_altcontactstate" class="[% required.altcontactstate | html %]">State:</label>
895 <input type="text" id="borrower_altcontactstate" name="borrower_altcontactstate" value="[% borrower.altcontactstate | html %]" class="[% required.altcontactstate | html %]" />
896 <div class="required_label [% required.altcontactstate | html %]">Required</div>
900 [% UNLESS hidden.defined('altcontactzipcode') %]
902 <label for="borrower_altcontactzipcode" class="[% required.altcontactzipcode | html %]">ZIP/Postal code:</label>
904 <input type="text" id="borrower_altcontactzipcode" name="borrower_altcontactzipcode" value="[% borrower.altcontactzipcode | html %]" class="[% required.altcontactzipcode | html %]" />
905 <div class="required_label [% required.altcontactzipcode | html %]">Required</div>
909 [% UNLESS hidden.defined('altcontactcountry') %]
911 <label for="borrower_altcontactcountry" class="[% required.altcontactcountry | html %]">Country:</label>
913 <input type="text" id="borrower_altcontactcountry" name="borrower_altcontactcountry" value="[% borrower.altcontactcountry | html %]" class="[% required.altcontactcountry | html %]" />
914 <div class="required_label [% required.altcontactcountry | html %]">Required</div>
918 [% UNLESS hidden.defined('altcontactphone') %]
920 <label for="borrower_altcontactphone" class="[% required.altcontactphone | html %]">Phone:</label>
922 <input type="text" id="borrower_altcontactphone" name="borrower_altcontactphone" value="[% borrower.altcontactphone | html %]" class="[% required.altcontactphone | html %]" />
923 <div class="required_label [% required.altcontactphone | html %]">Required</div>
928 </div> <!-- /.col -->
929 </div> <!-- /.row -->
932 [% UNLESS action == 'edit' || hidden.defined('password') %]
935 <fieldset class="rows" id="memberentry_password">
936 <legend id="contact_legend">Password</legend>
937 <div class="alert alert-info">
939 [% IF ( patron.category.effective_require_strong_password ) %]
940 <p>Your password must contain at least [% patron.category.effective_min_password_length | html %] characters, including UPPERCASE, lowercase and numbers.</p>
942 <p>Your password must be at least [% patron.category.effective_min_password_length | html %] characters long.</p>
945 <p id="password_alert"></p>
947 [% UNLESS mandatory.defined('password') %]
948 <p>If you do not enter a password a system generated password will be created.</p>
953 <li><label for="password" class="[% required.password | html %]">Password:</label>
954 <input type="password" name="borrower_password" id="password" class="[% required.password | html %]" autocomplete="new-password" />
955 <div class="required_label [% required.password | html %]">Required</div>
957 <li><label for="password2" class="[% required.password | html %]">Confirm password:</label>
958 <input type="password" name="borrower_password2" id="password2" autocomplete="new-password" />
959 <div class="required_label [% required.password | html %]">Required</div>
963 </div> <!-- /.col -->
964 </div> <!-- /.row -->
967 [% IF ( Koha.Preference('ExtendedPatronAttributes') && patron_attribute_classes.size ) %]
970 [% FOREACH pa_class IN patron_attribute_classes %]
971 [% IF pa_class.class %]
972 <fieldset id="aai_[% pa_loo.class | html %]" class="rows patron-attributes">
973 <legend>[% pa_class.lib | html %]</legend>
975 <fieldset class="rows patron-attributes">
976 <legend>Additional information</legend>
978 <ol class="attributes_table">
979 [% FOREACH pa IN pa_class.items %]
980 [% FOREACH pa_value IN pa.values %]
981 [% IF loop.first %]<a name="patron-attr-start-[% pa.type.code | html %]"></a>[% END %]
982 [% form_id = 'patron-attr-' _ Math.int( Math.rand(1000000) ) %]
983 <li data-category_code="[% pa.type.category_code | html %]">
984 [% IF pa.type.mandatory && pa.type.opac_editable %]
985 <label for="[% form_id | html %]" class="required">[% pa.type.description | html %]: </label>
987 <label for="[% form_id | html %]">[% pa.type.description | html %]: </label>
989 [% IF pa.type.opac_editable %]
990 <input type="hidden" name="patron_attribute_code" value="[% pa.type.code | html %]" />
991 [% IF ( pa.type.authorised_value_category ) %]
992 <select id="[% form_id | html %]" name="patron_attribute_value">
993 <option value=""></option>
994 [% FOREACH auth_val IN AuthorisedValues.Get( pa.type.authorised_value_category, 1 ) %]
995 [% IF ( auth_val.authorised_value == pa_value ) %]
996 <option value="[% auth_val.authorised_value | html %]" selected="selected">
997 [% auth_val.lib | html %]
1000 <option value="[% auth_val.authorised_value | html %]" >
1001 [% auth_val.lib | html %]
1007 <textarea rows="2" cols="30" id="[% form_id | html %]" name="patron_attribute_value">[% pa_value | html %]</textarea>
1009 <div class="attr-control">
1010 <a href="#" class="btn btn-sm btn-link clear-attribute"><i class="fa fa-remove" aria-hidden="true"></i> Clear</a>
1011 [% IF ( pa.type.repeatable ) %]
1012 <a href="#" class="btn btn-sm btn-link clone-attribute"><i class="fa fa-plus" aria-hidden="true"></i> New</a>
1014 [% IF pa.type.mandatory %]
1015 <span class="required_label required">Required</span>
1019 [% IF ( pa.type.authorised_value_category ) %]
1020 [% AuthorisedValues.GetByCode( pa.type.authorised_value_category, pa_value, 1 ) | html_line_break %]
1022 [% pa_value | html_line_break %]
1031 </div> <!-- /.col -->
1032 </div> <!-- /.row -->
1035 [% IF Koha.Preference('PrivacyPolicyConsent') && action != 'edit' %]
1038 <fieldset class="rows" id="memberentry_gdpr_consent">
1039 <legend>Data privacy policy consent</legend>
1042 <div class="label"></div>
1043 <label class="checkbox-label" for="borrower_gdpr_proc_consent">
1044 <input type="checkbox" name="borrower_gdpr_proc_consent" id="borrower_gdpr_proc_consent" class="required" value="agreed">
1045 <span>I agree with your processing of my personal data as outlined in the <a target="_blank" href="[% Koha.Preference('PrivacyPolicyURL') | url %]">privacy policy</a>.</span>
1047 <label class="error" for="borrower_gdpr_proc_consent" style="display: none;"></label>
1048 <div class="required_label required">Required</div>
1052 </div> <!-- /.col -->
1053 </div> <!-- /.row -->
1056 [% UNLESS action == 'edit' %]
1059 <fieldset class="rows" id="memberentry_captcha">
1060 <legend>Verification</legend>
1064 <label for="captcha" class="required">Verification:</label>
1066 <input type="text" name="captcha" id="captcha" style="text-transform: uppercase;" />
1067 <div class="required_label required">Required</div>
1068 <input type="hidden" name="captcha_digest" value="[% captcha_digest | html %]" />
1070 <span class="hint">Please type the following characters into the preceding box: <strong>[% captcha | html %]</strong></span>
1074 </div> <!-- /.col -->
1075 </div> <!-- /.row -->
1080 [% IF action == 'edit' %]
1081 [% IF OPACPatronDetails %]
1082 <fieldset class="action">
1083 <input type="hidden" name="action" value="update" />
1084 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
1085 <input type="submit" class="btn btn-primary" value="Submit update request" />
1089 <fieldset class="action">
1090 <input type="hidden" name="action" value="create" />
1091 <input type="submit" class="btn btn-primary" value="Submit" />
1094 </div> <!-- /.col -->
1095 </div> <!-- /.row -->
1099 </div><!--/div#update-account -->
1105 [% INCLUDE 'opac-bottom.inc' %]
1106 [% BLOCK jsinclude %]
1107 [% INCLUDE 'validator-strings.inc' %]
1108 [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
1109 [% INCLUDE 'calendar.inc' %]
1113 $(document).ready(function() {
1114 [% IF action == 'edit' && !OPACPatronDetails %]
1115 $("#memberentry-form :input").attr('readonly', true);
1116 $("#borrower_branchcode").attr('disabled',true);
1117 $("#borrower_title").attr('disabled',true);
1118 $('#memberentry-form :radio').attr('disabled',true);
1119 $('span.required').remove();
1120 $('label.required').removeClass('required');
1123 $("#memberentry-form").validate({
1128 borrower_repeat_email: {
1129 equalTo: '#borrower_email'
1131 borrower_emailpro: {
1137 borrower_password: {
1138 password_strong: true,
1139 password_no_spaces: true
1141 borrower_password2: {
1142 password_match: true
1148 submitHandler: function(form) {
1149 if (form.beenSubmitted) {
1153 form.beenSubmitted = true;
1159 if ( $("input.required").length ) {
1160 $("input.required").rules("add", {
1164 if ( $("select.required").length ) {
1165 $("select.required").rules("add", {
1169 if ( $("textarea.required").length ) {
1170 $("textarea.required").rules("add", {
1175 [% IF patron.guarantor_relationships && !Koha.Preference('OPACPrivacy') %]
1177 [% IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
1178 $('#update_privacy_guarantor_checkouts').click( function() {
1179 var can_see_checkouts = $('#privacy_guarantor_checkouts').val() == 1;
1181 url: "/api/v1/public/patrons/[% logged_in_user.borrowernumber | uri %]/guarantors/can_see_checkouts",
1183 data: JSON.stringify({
1184 allowed: can_see_checkouts
1186 contentType: "application/json",
1187 success: function () {
1188 $('#update_privacy_guarantor_checkouts_message')
1190 .text(_("Your setting has been updated!"))
1194 error: function () {
1195 $('#update_privacy_guarantor_checkouts_message')
1197 .text(_("Unable to update your setting!"))
1205 [% IF Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') %]
1206 $('#update_privacy_guarantor_fines').click( function() {
1207 var can_see_charges = $('#privacy_guarantor_fines').val() == 1;
1209 url: "/api/v1/public/patrons/[% logged_in_user.borrowernumber | uri %]/guarantors/can_see_charges",
1211 data: JSON.stringify({
1212 allowed: can_see_charges
1214 contentType: 'application/json',
1215 success: function() {
1216 $('#update_privacy_guarantor_fines_message')
1218 .text( _("Your setting has been updated!") )
1223 $('#update_privacy_guarantor_fines_message')
1225 .text( _("Unable to update your setting!") )
1234 $(".patron-attributes").on( 'click', '.clear-attribute', function(e) {
1236 $(this).closest("li")
1237 .find('textarea').val("").end()
1238 .find('select').val("").end();
1241 $(".patron-attributes").on( 'click', '.clone-attribute', function() {
1242 let li = $(this).closest("li");
1243 var clone = li.clone().insertAfter( li );
1245 var newId = 50 + parseInt(Math.random() * 100000);
1246 $('input[type!="hidden"],select,textarea', clone).attr('id', 'patron-attr-' + newId).attr('value', '');
1247 $("label", clone).attr('for', 'patron-attr-' + newId).attr('value', '');
1253 [% IF action != 'edit' and Koha.Preference('PatronSelfRegistrationConfirmEmail') %]
1254 $("#borrower_email").bind("cut copy paste", function(e){
1256 $("#borrower_email").bind("contextmenu", function(e){
1260 $("#borrower_repeat_email").bind("cut copy paste", function(e){
1262 $("#borrower_repeat_email").bind("contextmenu", function(e){
1269 var PWD_STRONG_MSG = _("Password must contain at least %s characters, including UPPERCASE, lowercase and numbers");
1270 var PWD_WEAK_MSG = _("Password must contain at least %s characters");
1271 var default_password_length = [% defaultCategory.effective_min_password_length | html %];
1272 var default_strong_password = [% defaultCategory.effective_require_strong_password ? defaultCategory.effective_require_strong_password : 0 | html %];
1273 $(document).ready(function() {
1274 var setPwdMessage = function() {
1275 var require_strong = $('select#borrower_categorycode option:selected').length ? $('select#borrower_categorycode option:selected').data('pwdStrong') : default_strong_password;
1276 var min_length = $('select#borrower_categorycode option:selected').length ? $('select#borrower_categorycode option:selected').data('pwdLength') : default_password_length;
1277 $('#password_alert').html((require_strong?PWD_STRONG_MSG:PWD_WEAK_MSG).format(min_length));
1280 $('select#borrower_categorycode').change(setPwdMessage);
1285 [% PROCESS 'password_check.inc' new_password => 'borrower_password', category_selector => '#borrower_categorycode', RequireStrongPassword => patron ? patron.category.effective_require_strong_password : defaultCategory.effective_require_strong_password, minPasswordLength => patron ? patron.category.effective_min_password_length : defaultCategory.effective_min_password_length %]