|
Lines 6-1217
Link Here
|
| 6 |
[% USE Branches %] |
6 |
[% USE Branches %] |
| 7 |
[% SET footerjs = 1 %] |
7 |
[% SET footerjs = 1 %] |
| 8 |
[% INCLUDE 'doc-head-open.inc' %] |
8 |
[% INCLUDE 'doc-head-open.inc' %] |
| 9 |
<title>Koha › Patrons › |
9 |
<title>Koha › Patrons › |
| 10 |
[% UNLESS blocking_error %] |
10 |
[% UNLESS blocking_error %] |
| 11 |
[% IF ( opadd ) %]Add |
11 |
[% IF ( opadd ) %] |
| 12 |
[% ELSIF ( opduplicate ) %]Duplicate |
12 |
Add patron |
| 13 |
[% ELSE %] Modify |
13 |
[% ELSIF ( opduplicate ) %] |
| 14 |
[% END %] patron |
14 |
Duplicate patron |
| 15 |
[% IF (firstname) %][% firstname | html %] [% END %] |
|
|
| 16 |
[% IF (surname) %][% surname | html %] [% END %] |
| 17 |
([%IF categoryname %][% categoryname | html %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %]) |
| 18 |
[% END %] |
| 19 |
</title> |
| 20 |
[% INCLUDE 'doc-head-close.inc' %] |
| 21 |
</head> |
| 22 |
|
| 23 |
<body id="pat_memberentrygen" class="pat"> |
| 24 |
[% INCLUDE 'header.inc' %] |
| 25 |
[% INCLUDE 'patron-search.inc' %] |
| 26 |
|
| 27 |
<div id="breadcrumbs"> |
| 28 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> |
| 29 |
[% UNLESS blocking_error %] |
| 30 |
›[% IF (firstname || surname ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]">[% IF (firstname) %][% firstname | html %] [% END %][% IF (surname) %][% surname | html %] [% END %]</a> ›[% END %] |
| 31 |
<strong>[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron ([%IF ( categoryname ) %][% categoryname | html %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])</strong> |
| 32 |
[% END %] |
| 33 |
</div> |
| 34 |
|
| 35 |
<div class="main container-fluid"> |
| 36 |
<div class="row"> |
| 37 |
[% IF ( opadd ) %] |
| 38 |
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> |
| 39 |
[% ELSE %] |
| 40 |
<div class="col-sm-10 col-sm-push-2"> |
| 41 |
[% END %] |
| 42 |
<main class="clearfix"> |
| 43 |
[% INCLUDE 'blocking_errors.inc' %] |
| 44 |
|
| 45 |
[% IF error_alert %] |
| 46 |
[% IF ( error_alert == "no_email" ) %] |
| 47 |
<div class="dialog alert">This member has no email</div> |
| 48 |
[% ELSE %] |
| 49 |
<div class="dialog alert">[% error_alert | html %]</div> |
| 50 |
[% END %] |
| 51 |
[% END %] |
| 52 |
[% IF info_alert %] |
| 53 |
<div class="dialog message">Email has been sent.</div> |
| 54 |
[% END %] |
| 55 |
|
| 56 |
[% INCLUDE 'noadd-warnings.inc' %] |
| 57 |
|
| 58 |
[% UNLESS ( no_add ) %] |
| 59 |
<h1>[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname | html %] [% END %][% IF (surname) %][% surname | html %] [% END %]([%IF ( categoryname ) %][% categoryname | html %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])</h1> |
| 60 |
|
| 61 |
[% IF quickadd && opadd && !check_member %] |
| 62 |
<a href="#" class="toggle_quick_add"><i class="fa fa-plus-square"></i> Show full form</a> |
| 63 |
<a href="#" class="toggle_quick_add" style="display:none"><i class="fa fa-minus-square"></i> Show brief form</a> |
| 64 |
[% END %] |
| 65 |
|
| 66 |
[% IF ( check_member ) %] |
| 67 |
<div class="dialog alert"> |
| 68 |
<h3>Duplicate patron record?</h3> |
| 69 |
<p><a href="#" onclick="Dopop('moremember.pl?print=brief&borrowernumber=[% check_member | uri %]');return false;" ><i class="fa fa-window-restore"></i> View existing record</a></p> |
| 70 |
<button id="duplicate" type="submit" class="new"><i class="fa fa-pencil"></i> It is a duplicate. |
| 71 |
Edit existing record</button> |
| 72 |
|
| 73 |
<button type="submit" id="not-duplicate" class="new"><i class="fa fa-plus"></i> Not a duplicate. |
| 74 |
Save as new record</button> |
| 75 |
</div> |
| 76 |
[% END %] |
| 77 |
|
| 78 |
[% IF ( nok ) %] |
| 79 |
<div class="dialog alert"> |
| 80 |
<p>The following fields are wrong. Please fix them.</p> |
| 81 |
<ul> |
| 82 |
[% IF ( ERROR_login_exist ) %] |
| 83 |
<li id="ERROR_login_exist">Username/password already exists.</li> |
| 84 |
[% END %] |
| 85 |
[% IF ERROR_cardnumber_already_exists %] |
| 86 |
<li id="ERROR_cardnumber">Cardnumber already in use.</li> |
| 87 |
[% END %] |
| 88 |
[% IF ERROR_cardnumber_length %] |
| 89 |
<li id="ERROR_cardnumber">Cardnumber length is incorrect.</li> |
| 90 |
[% END %] |
| 91 |
[% IF ( ERROR_age_limitations ) %] |
| 92 |
<li id="ERROR_age_limitations">Patron's age is incorrect for their category. |
| 93 |
Ages allowed are [% age_low | html %]-[% age_high | html %].</li> |
| 94 |
[% END %] |
| 95 |
[% IF ( ERROR_branch ) %] |
| 96 |
<li id="ERROR_branch">Library is invalid.</li> |
| 97 |
[% END %] |
| 98 |
[% IF ( ERROR_dateofbirth ) %] |
| 99 |
<li id="ERROR_dateofbirth">Date of birth is invalid.</li> |
| 100 |
[% END %] |
| 101 |
[% IF ( ERROR_dateenrolled ) %] |
| 102 |
<li id="ERROR_dateenrolled">Date of enrollment is invalid.</li> |
| 103 |
[% END %] |
| 104 |
[% IF ( ERROR_dateexpiry ) %] |
| 105 |
<li id="ERROR_dateexpiry">Date of expiration is invalid.</li> |
| 106 |
[% END %] |
| 107 |
[% IF ( ERROR_password_too_short ) %] |
| 108 |
<li id="ERROR_short_password">Password must be at least [% minPasswordLength | html %] characters long.</li> |
| 109 |
[% END %] |
| 110 |
[% IF ( ERROR_password_too_weak ) %] |
| 111 |
<li id="ERROR_weak_password">Password must contain at least one digit, one lowercase and one uppercase.</li> |
| 112 |
[% END %] |
| 113 |
[% IF ( ERROR_password_has_whitespaces ) %] |
| 114 |
<li id="ERROR_weak_password">Password must not contain leading or trailing whitespaces.</li> |
| 115 |
[% END %] |
| 116 |
[% IF ( ERROR_password_mismatch ) %] |
| 117 |
<li id="ERROR_password_mismatch">Passwords do not match.</li> |
| 118 |
[% END %] |
| 119 |
[% IF ( ERROR_extended_unique_id_failed ) %] |
| 120 |
<li id="ERROR_extended_unique_id_failed"><strong>[% ERROR_extended_unique_id_failed_description | html %]:</strong> Attribute value "[% ERROR_extended_unique_id_failed_value | html %]" is already in use by another patron record.</li> |
| 121 |
[% END %] |
| 122 |
[% IF ERROR_bad_email %] |
| 123 |
<li id="ERROR_bad_email">The primary email is invalid.</li> |
| 124 |
[% END %] |
| 125 |
[% IF ERROR_bad_email_secondary %] |
| 126 |
<li id="ERROR_bad_email_secondary">The secondary email is invalid.</li> |
| 127 |
[% END %] |
| 128 |
[% IF ERROR_bad_email_alternative %] |
| 129 |
<li id="ERROR_bad_email_alternative">The alternative email is invalid.</li> |
| 130 |
[% END %] |
| 131 |
</ul> |
| 132 |
</div> |
| 133 |
[% END %] |
| 134 |
|
| 135 |
|
| 136 |
<div id="toolbar" class="btn-toolbar"> |
| 137 |
[% UNLESS ( check_member ) %] |
| 138 |
[% IF quickadd && opadd %] |
| 139 |
<button class="btn btn-default toggler" id="save_quick_add" name="save"><i class="fa fa-save"></i> Save</button> |
| 140 |
[% END %] |
| 141 |
<button class="btn btn-default toggler" id="saverecord" name="save" ><i class="fa fa-save"></i> Save</button> |
| 142 |
[% IF opadd %] |
| 143 |
<a class="btn btn-default" href="/cgi-bin/koha/members/member.pl" class="toggler save_entryform"> |
| 144 |
[% ELSE %] |
| 145 |
<a class="btn btn-default" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | html %]"> |
| 146 |
[% END %] |
| 147 |
<i class="fa fa-times"></i> Cancel |
| 148 |
</a> |
| 149 |
[% END %] |
| 150 |
</div> |
| 151 |
|
| 152 |
<form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class="toggler" > |
| 153 |
[% UNLESS ( check_member ) %] |
| 154 |
<input type="hidden" name="nodouble" value="[% nodouble | html %]" /> |
| 155 |
[% END %] |
| 156 |
<!-- field always hidden in different form (1,2,3) --> |
| 157 |
<input type="hidden" name="BorrowerMandatoryField" value="[% BorrowerMandatoryField | html %]" /> |
| 158 |
<input type="hidden" name="category_type" value="[% category_type | html %]" /> |
| 159 |
<input type="hidden" name="updtype" value="[% updtype | html %]" /> |
| 160 |
<input type="hidden" name="destination" value="[% destination | html %]" /> |
| 161 |
<input type="hidden" name="check_member" value="[% check_member | html %]" /> |
| 162 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber | html UNLESS opduplicate %]" /> |
| 163 |
<input type="hidden" name="nodouble" value="[% nodouble | html UNLESS opduplicate %]" /> |
| 164 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
| 165 |
[% IF ( step ) %]<input type="hidden" name="step" value="[% step | html %]" />[% END %] |
| 166 |
[% IF ( opadd ) %]<input type="hidden" name="op" value="insert" /> |
| 167 |
[% ELSIF ( opduplicate ) %] |
| 168 |
<input type="hidden" name="op" value="insert" /> |
| 169 |
[% ELSE %] |
| 170 |
<input type="hidden" name="op" value="save" /> |
| 171 |
[% IF step == 4 || step == 5 || step == 6 || step == 2 || step == 1 || step == 7 %] |
| 172 |
[%# Only put the cardnumber if we arent showing it in the form later %] |
| 173 |
[% IF cardnumber %] |
| 174 |
<input type="hidden" name="cardnumber" value="[% cardnumber | html %]" /> |
| 175 |
[% END %] |
| 176 |
[% END %] |
| 177 |
[% END %] |
| 178 |
|
| 179 |
[% IF ( step_1 ) %] |
| 180 |
[%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] |
| 181 |
<fieldset class="rows" id="memberentry_identity"> |
| 182 |
<legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend> |
| 183 |
<ol> |
| 184 |
[% UNLESS ( I ) %] |
| 185 |
[% UNLESS notitle %] |
| 186 |
[% IF Koha.Preference('BorrowersTitles') %] |
| 187 |
<li> |
| 188 |
[% IF ( mandatorytitle ) %] |
| 189 |
<label for="btitle" class="required"> |
| 190 |
[% ELSE %] |
15 |
[% ELSE %] |
| 191 |
<label for="btitle"> |
16 |
Modify patron |
| 192 |
[% END %] |
17 |
[% END %] |
| 193 |
Salutation: </label> |
18 |
[% IF (firstname) %][% firstname | html %] [% END %] |
| 194 |
<select id="btitle" name="title"> |
19 |
[% IF (surname) %][% surname | html %] [% END %] |
| 195 |
<option value=""></option> |
20 |
([%IF categoryname %] |
| 196 |
[% FOREACH t IN Koha.Preference('BorrowersTitles').split('\|') %] |
21 |
[% categoryname | html %] |
| 197 |
[% IF btitle == t %] |
|
|
| 198 |
<option value="[% t | html %]" selected="selected">[% t | html %]</option> |
| 199 |
[% ELSE %] |
| 200 |
<option value="[% t | html %]">[% t | html %]</option> |
| 201 |
[% END %] |
| 202 |
[% END %] |
| 203 |
</select> |
| 204 |
[% IF ( mandatorytitle ) %]<span class="required">Required</span>[% END %] |
| 205 |
</li> |
| 206 |
[% END %] |
| 207 |
[% END %] |
| 208 |
[% END %] |
| 209 |
[% UNLESS nosurname %] |
| 210 |
<li> |
| 211 |
|
| 212 |
[% IF ( I ) %] |
| 213 |
<label for="surname" class="required"> |
| 214 |
Name: |
| 215 |
</label> |
| 216 |
[% ELSE %] |
| 217 |
[% IF ( mandatorysurname ) %] |
| 218 |
<label for="surname" class="required"> |
| 219 |
[% ELSE %] |
22 |
[% ELSE %] |
| 220 |
<label for="surname"> |
23 |
[% IF ( I ) %] Organization [% END %] |
| 221 |
[% END %] |
24 |
[% IF ( A ) %] Adult [% END %] |
| 222 |
Surname: </label> |
25 |
[% IF ( C ) %] Child [% END %] |
|
|
26 |
[% IF ( P ) %] Professional [% END %] |
| 27 |
[% IF ( S ) %] Staff [% END %] |
| 28 |
[% END %]) |
| 223 |
[% END %] |
29 |
[% END %] |
|
|
30 |
</title> |
| 31 |
[% INCLUDE 'doc-head-close.inc' %] |
| 32 |
</head> |
| 224 |
|
33 |
|
| 225 |
[% IF ( uppercasesurnames ) %] |
34 |
<body id="pat_memberentrygen" class="pat"> |
| 226 |
<input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% surname | html %]" /> |
35 |
[% INCLUDE 'header.inc' %] |
| 227 |
[% ELSE %] |
36 |
[% INCLUDE 'patron-search.inc' %] |
| 228 |
<input type="text" id="surname" name="surname" size="20" value="[% surname | html %]" /> |
37 |
|
| 229 |
[% END %] |
38 |
<div id="breadcrumbs"> |
| 230 |
[% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %] |
39 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> › |
| 231 |
</li> |
40 |
<a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> |
| 232 |
[% END %] |
41 |
[% UNLESS blocking_error %] |
| 233 |
[% UNLESS ( I ) %] |
42 |
› |
| 234 |
[% UNLESS nofirstname %] |
43 |
[% IF (firstname || surname ) %] |
| 235 |
<li> |
44 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]"> |
| 236 |
[% IF ( mandatoryfirstname ) %] |
45 |
[% IF (firstname) %][% firstname | html %] [% END %] |
| 237 |
<label for="firstname" class="required"> |
46 |
[% IF (surname) %][% surname | html %] [% END %] |
| 238 |
[% ELSE %] |
47 |
</a> › |
| 239 |
<label for="firstname"> |
48 |
[% END %] |
| 240 |
[% END %] |
49 |
<strong> |
| 241 |
First name: </label> |
50 |
[% IF ( opadd ) %] |
| 242 |
<input type="text" id="firstname" name="firstname" size="20" value="[% firstname | html UNLESS opduplicate %]" /> |
51 |
Add patron |
| 243 |
[% IF ( mandatoryfirstname ) %]<span class="required">Required</span>[% END %] |
52 |
[% ELSIF ( opduplicate ) %] |
| 244 |
</li> |
53 |
Duplicate patron |
| 245 |
[% END %] |
|
|
| 246 |
[% UNLESS nodateofbirth %] |
| 247 |
<li> |
| 248 |
[% IF ( mandatorydateofbirth ) %] |
| 249 |
<label for="dateofbirth" class="required"> |
| 250 |
[% ELSE %] |
54 |
[% ELSE %] |
| 251 |
<label for="dateofbirth"> |
55 |
Modify patron |
| 252 |
[% END %] |
56 |
[% END %] |
| 253 |
Date of birth: </label> |
57 |
([%IF categoryname %] |
| 254 |
|
58 |
[% categoryname | html %] |
| 255 |
<input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="write_age();" value="[% dateofbirth | html UNLESS opduplicate %]" class="datepicker" /> |
|
|
| 256 |
|
| 257 |
[% IF ( mandatorydateofbirth ) %]<span class="required">Required</span>[% END %] |
| 258 |
[% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %] |
| 259 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 260 |
</li> |
| 261 |
[% END %] |
| 262 |
[% UNLESS noinitials %] |
| 263 |
<li> |
| 264 |
[% IF ( mandatoryinitials ) %] |
| 265 |
<label for="initials" class="required"> |
| 266 |
[% ELSE %] |
59 |
[% ELSE %] |
| 267 |
<label for="initials"> |
60 |
[% IF ( I ) %] Organization [% END %] |
| 268 |
[% END %] |
61 |
[% IF ( A ) %] Adult [% END %] |
| 269 |
Initials: </label> |
62 |
[% IF ( C ) %] Child [% END %] |
| 270 |
<input type="text" id="initials" name="initials" size="20" value="[% initials | html UNLESS opduplicate %]" /> |
63 |
[% IF ( P ) %] Professional [% END %] |
| 271 |
[% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %] |
64 |
[% IF ( S ) %] Staff [% END %] |
| 272 |
</li> |
65 |
[% END %]) |
|
|
66 |
</strong> |
| 273 |
[% END %] |
67 |
[% END %] |
| 274 |
[% END %] |
68 |
</div> |
| 275 |
[% UNLESS noothernames %] |
|
|
| 276 |
<li> |
| 277 |
[% IF ( mandatoryothernames ) %] |
| 278 |
<label for="othernames" class="required"> |
| 279 |
[% ELSE %] |
| 280 |
<label for="othernames"> |
| 281 |
[% END %] |
| 282 |
Other name: </label> |
| 283 |
<input type="text" id="othernames" name="othernames" size="20" value="[% othernames | html UNLESS opduplicate %]" /> |
| 284 |
[% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %] |
| 285 |
[% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %] |
| 286 |
</li> |
| 287 |
[% END %] |
| 288 |
[% UNLESS ( I ) %] |
| 289 |
[% UNLESS nosex %] |
| 290 |
<li class="radio"> |
| 291 |
|
69 |
|
| 292 |
[% UNLESS ( opduplicate ) %] |
70 |
<div class="main container-fluid"> |
| 293 |
[% IF ( female ) %] |
71 |
<div class="row"> |
| 294 |
<label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /> Female</label> |
72 |
[% IF ( opadd ) %] |
| 295 |
[% ELSE %] |
73 |
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> |
| 296 |
<label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" /> Female</label> |
|
|
| 297 |
[% END %] |
| 298 |
[% IF ( male ) %] |
| 299 |
<label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /> Male</label> |
| 300 |
[% ELSE %] |
| 301 |
<label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" /> Male</label> |
| 302 |
[% END %] |
| 303 |
[% IF ( none ) %] |
| 304 |
<label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> None specified</label> |
| 305 |
[% ELSE %] |
| 306 |
<label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" /> None specified</label> |
| 307 |
[% END %] |
| 308 |
[% ELSE %] |
74 |
[% ELSE %] |
| 309 |
<label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" /> |
75 |
<div class="col-sm-10 col-sm-push-2"> |
| 310 |
<label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" /> |
|
|
| 311 |
<label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> |
| 312 |
[% END %] |
76 |
[% END %] |
|
|
77 |
<main class="clearfix"> |
| 78 |
[% INCLUDE 'blocking_errors.inc' %] |
| 313 |
|
79 |
|
| 314 |
</li> |
80 |
[% IF error_alert %] |
| 315 |
[% END %] |
81 |
[% IF ( error_alert == "no_email" ) %] |
| 316 |
[% END %] |
82 |
<div class="dialog alert">This member has no email</div> |
| 317 |
</ol> |
|
|
| 318 |
</fieldset> |
| 319 |
[% END # hide fieldset %] |
| 320 |
|
| 321 |
[% IF show_guarantor || guarantor %] |
| 322 |
[% SET possible_relationships = Koha.Preference('borrowerRelationship') %] |
| 323 |
<span id="memberentry_guarantor_anchor"> |
| 324 |
<fieldset id="memberentry_guarantor" class="rows"> |
| 325 |
<legend>Guarantor information</legend> |
| 326 |
|
| 327 |
<span id="guarantor_relationships"> |
| 328 |
[% FOREACH r IN relationships %] |
| 329 |
<fieldset class="rows"> |
| 330 |
<ol> |
| 331 |
[% IF category_type == 'I' %] |
| 332 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
| 333 |
<span class="label">Organization #:</span> [% IF ( r.guarantor_id ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% r.guarantor_id | uri %]" target="blank">[% r.guarantor_id | html %]</a>[% END %] |
| 334 |
</li> |
| 335 |
|
| 336 |
<li> |
| 337 |
<label for="guarantor_surname">Organization name: </label> |
| 338 |
<span>[% r.guarantor.surname | html %]</span> |
| 339 |
</li> |
| 340 |
[% ELSE %] |
83 |
[% ELSE %] |
| 341 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
84 |
<div class="dialog alert">[% error_alert | html %]</div> |
| 342 |
<span class="label">Patron #:</span> |
85 |
[% END %] |
| 343 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% r.guarantor_id | uri %]" target="blank">[% r.guarantor_id | html %]</a> |
86 |
[% END %] |
| 344 |
</li> |
87 |
[% IF info_alert %] |
| 345 |
|
88 |
<div class="dialog message">Email has been sent.</div> |
| 346 |
[% IF r.guarantor.surname %] |
89 |
[% END %] |
| 347 |
<li> |
|
|
| 348 |
<label for="guarantor_surname">Surname: </label> |
| 349 |
<span>[% r.guarantor.surname | html %]</span> |
| 350 |
</li> |
| 351 |
[% END %] |
| 352 |
|
| 353 |
[% IF r.guarantor.firstname %] |
| 354 |
<li> |
| 355 |
<label for="guarantor_firstname">First name: </label> |
| 356 |
<span>[% r.guarantor.firstname | html %]</span> |
| 357 |
</li> |
| 358 |
[% END %] |
| 359 |
|
90 |
|
| 360 |
<li> |
91 |
[% INCLUDE 'noadd-warnings.inc' %] |
| 361 |
<label for="relationship">Relationship: </label> |
|
|
| 362 |
<span>[% r.relationship | html %]</span> |
| 363 |
</li> |
| 364 |
|
92 |
|
| 365 |
<li> |
93 |
[% UNLESS ( no_add ) %] |
| 366 |
<label for="delete_guarantor-[% r.id | uri %]">Remove: </label> |
94 |
<h1> |
| 367 |
<input type="checkbox" id="delete_guarantor-[% r.id | uri %]" name="delete_guarantor" value="[% r.id | html %]" /> |
95 |
[% IF ( opadd ) %] |
| 368 |
</li> |
96 |
Add patron |
| 369 |
[% END %] |
97 |
[% ELSIF ( opduplicate ) %] |
| 370 |
</ol> |
98 |
Duplicate patron |
| 371 |
</fieldset> |
|
|
| 372 |
[% END # END relationships foreach %] |
| 373 |
</span> |
| 374 |
|
| 375 |
<fieldset class="rows guarantor" id="guarantor_template"> |
| 376 |
<ol> |
| 377 |
<li class="guarantor-details" data-borrowernumber="0"> |
| 378 |
<span class="label">Patron #:</span> |
| 379 |
<span class="new_guarantor_id_text"></span> |
| 380 |
<input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value=""/> |
| 381 |
</li> |
| 382 |
|
| 383 |
<li> |
| 384 |
<label for="guarantor_surname">Surname: </label> |
| 385 |
<span class="new_guarantor_surname_text"></span> |
| 386 |
</li> |
| 387 |
|
| 388 |
<li> |
| 389 |
<label for="guarantor_firstname">First name: </label> |
| 390 |
<span class="new_guarantor_firstname_text"></span> |
| 391 |
</li> |
| 392 |
|
| 393 |
<li> |
| 394 |
<label for="guarantor_relationship">Relationship: </label> |
| 395 |
<select class="new_guarantor_relationship" name="new_guarantor_relationship"> |
| 396 |
[% FOREACH pr IN possible_relationships.split('\|') %] |
| 397 |
<option value="[% pr | html %]">[% pr | html %]</option> |
| 398 |
[% END %] |
| 399 |
</select> |
| 400 |
</li> |
| 401 |
|
| 402 |
<li> |
| 403 |
<label for="guarantor_cancel"> </label> |
| 404 |
<span><a href="#" class="guarantor_cancel">Remove</a></span> |
| 405 |
</li> |
| 406 |
</ol> |
| 407 |
</fieldset> |
| 408 |
|
| 409 |
<ol> |
| 410 |
<input type="hidden" id="guarantor_id" value="" /> |
| 411 |
<input name="guarantor_surname" id="guarantor_surname" type="hidden" /> |
| 412 |
<input name="guarantor_firstname" id="guarantor_firstname" type="hidden" /> |
| 413 |
|
| 414 |
<li> |
| 415 |
<a href="#" id="guarantor_search" class="btn btn-default"><i class="fa fa-plus"></i> Search to add</a> |
| 416 |
</li> |
| 417 |
|
| 418 |
[% IF relationships && Koha.Preference('AllowStaffToSetCheckoutsVisibilityForGuarantor') %] |
| 419 |
<li> |
| 420 |
<label for="privacy_guarantor_checkouts">Show checkouts to guarantors</label> |
| 421 |
<select name="privacy_guarantor_checkouts" id="privacy_guarantor_checkouts"> |
| 422 |
[% IF privacy_guarantor_checkouts %] |
| 423 |
<option value="0">No</option> |
| 424 |
<option value="1" selected>Yes</option> |
| 425 |
[% ELSE %] |
99 |
[% ELSE %] |
| 426 |
<option value="0" selected>No</option> |
100 |
Modify patron |
| 427 |
<option value="1">Yes</option> |
|
|
| 428 |
[% END %] |
101 |
[% END %] |
| 429 |
</select> |
102 |
[% IF (firstname) %][% firstname | html %] [% END %] |
| 430 |
<div class="hint">Allow guarantors of this patron to view this patron's checkouts from the OPAC</div> |
103 |
[% IF (surname) %][% surname | html %] [% END %] |
| 431 |
</li> |
104 |
([%IF categoryname %] |
| 432 |
[% END %] |
105 |
[% categoryname | html %] |
| 433 |
[% IF relationships && Koha.Preference('AllowStaffToSetFinesVisibilityForGuarantor') %] |
|
|
| 434 |
<li> |
| 435 |
<label for="privacy_guarantor_fines">Show fines to guarantors</label> |
| 436 |
<select name="privacy_guarantor_fines" id="privacy_guarantor_fines"> |
| 437 |
[% IF privacy_guarantor_fines %] |
| 438 |
<option value="0">No</option> |
| 439 |
<option value="1" selected>Yes</option> |
| 440 |
[% ELSE %] |
106 |
[% ELSE %] |
| 441 |
<option value="0" selected>No</option> |
107 |
[% IF ( I ) %] Organization [% END %] |
| 442 |
<option value="1">Yes</option> |
108 |
[% IF ( A ) %] Adult [% END %] |
| 443 |
[% END %] |
109 |
[% IF ( C ) %] Child [% END %] |
| 444 |
</select> |
110 |
[% IF ( P ) %] Professional [% END %] |
| 445 |
<div class="hint">Allow guarantors of this patron to view this patron's fines from the OPAC</div> |
111 |
[% IF ( S ) %] Staff [% END %] |
| 446 |
</li> |
112 |
[% END %]) |
| 447 |
[% END %] |
113 |
</h1> |
| 448 |
</ol> |
114 |
|
| 449 |
</fieldset> |
115 |
[% IF quickadd && opadd && !check_member %] |
| 450 |
</span> |
116 |
<a href="#" class="toggle_quick_add"><i class="fa fa-plus-square"></i> Show full form</a> |
| 451 |
[% END %] |
117 |
<a href="#" class="toggle_quick_add" style="display:none"><i class="fa fa-minus-square"></i> Show brief form</a> |
| 452 |
|
118 |
[% END %] |
| 453 |
|
|
|
| 454 |
[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] |
| 455 |
[% IF Koha.Preference( 'AddressFormat' ) %] |
| 456 |
[% INCLUDE "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] |
| 457 |
[% END %] |
| 458 |
[% END # nostreet && nocity etc group%] |
| 459 |
|
119 |
|
| 460 |
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %] |
120 |
[% IF ( check_member ) %] |
| 461 |
<fieldset class="rows" id="memberentry_contact"> |
121 |
<div class="dialog alert"> |
| 462 |
<legend id="contact_lgd">Contact</legend><ol> |
122 |
<h3>Duplicate patron record?</h3> |
|
|
123 |
<p><a href="#" onclick="Dopop('moremember.pl?print=brief&borrowernumber=[% check_member | uri %]');return false;" ><i class="fa fa-window-restore"></i> View existing record</a></p> |
| 124 |
<button id="duplicate" type="submit" class="new"> |
| 125 |
<i class="fa fa-pencil"></i> It is a duplicate. Edit existing record |
| 126 |
</button> |
| 127 |
<button type="submit" id="not-duplicate" class="new"> |
| 128 |
<i class="fa fa-plus"></i> Not a duplicate. Save as new record |
| 129 |
</button> |
| 130 |
</div> |
| 131 |
[% END %] |
| 463 |
|
132 |
|
| 464 |
[% UNLESS nocontactname %] |
133 |
[% IF ( nok ) %] |
| 465 |
<li> |
134 |
<div class="dialog alert"> |
| 466 |
[% IF ( mandatorycontactname ) %] |
135 |
<p>The following fields are wrong. Please fix them.</p> |
| 467 |
<label for="contactname" class="required"> |
136 |
<ul> |
| 468 |
[% ELSE %] |
137 |
[% IF ( ERROR_login_exist ) %] |
| 469 |
<label for="contactname"> |
138 |
<li id="ERROR_login_exist">Username/password already exists.</li> |
| 470 |
[% END %] |
139 |
[% END %] |
| 471 |
Guarantor surname: </label> |
140 |
[% IF ERROR_cardnumber_already_exists %] |
| 472 |
<input type="text" id="contactname" name="contactname" value="[% contactname | html %]" /> |
141 |
<li id="ERROR_cardnumber">Cardnumber already in use.</li> |
| 473 |
[% IF ( mandatorycontactname ) %]<span class="required">Required</span>[% END %]<div class="hint">Non-patron guarantor surname</div> |
142 |
[% END %] |
| 474 |
</li> |
143 |
[% IF ERROR_cardnumber_length %] |
| 475 |
[% END %] |
144 |
<li id="ERROR_cardnumber">Cardnumber length is incorrect.</li> |
|
|
145 |
[% END %] |
| 146 |
[% IF ( ERROR_age_limitations ) %] |
| 147 |
<li id="ERROR_age_limitations">Patron's age is incorrect for their category. |
| 148 |
Ages allowed are [% age_low | html %]-[% age_high | html %].</li> |
| 149 |
[% END %] |
| 150 |
[% IF ( ERROR_branch ) %] |
| 151 |
<li id="ERROR_branch">Library is invalid.</li> |
| 152 |
[% END %] |
| 153 |
[% IF ( ERROR_dateofbirth ) %] |
| 154 |
<li id="ERROR_dateofbirth">Date of birth is invalid.</li> |
| 155 |
[% END %] |
| 156 |
[% IF ( ERROR_dateenrolled ) %] |
| 157 |
<li id="ERROR_dateenrolled">Date of enrollment is invalid.</li> |
| 158 |
[% END %] |
| 159 |
[% IF ( ERROR_dateexpiry ) %] |
| 160 |
<li id="ERROR_dateexpiry">Date of expiration is invalid.</li> |
| 161 |
[% END %] |
| 162 |
[% IF ( ERROR_password_too_short ) %] |
| 163 |
<li id="ERROR_short_password">Password must be at least [% minPasswordLength | html %] characters long.</li> |
| 164 |
[% END %] |
| 165 |
[% IF ( ERROR_password_too_weak ) %] |
| 166 |
<li id="ERROR_weak_password">Password must contain at least one digit, one lowercase and one uppercase.</li> |
| 167 |
[% END %] |
| 168 |
[% IF ( ERROR_password_has_whitespaces ) %] |
| 169 |
<li id="ERROR_weak_password">Password must not contain leading or trailing whitespaces.</li> |
| 170 |
[% END %] |
| 171 |
[% IF ( ERROR_password_mismatch ) %] |
| 172 |
<li id="ERROR_password_mismatch">Passwords do not match.</li> |
| 173 |
[% END %] |
| 174 |
[% IF ( ERROR_extended_unique_id_failed ) %] |
| 175 |
<li id="ERROR_extended_unique_id_failed"><strong>[% ERROR_extended_unique_id_failed_description | html %]:</strong> Attribute value "[% ERROR_extended_unique_id_failed_value | html %]" is already in use by another patron record.</li> |
| 176 |
[% END %] |
| 177 |
[% IF ERROR_bad_email %] |
| 178 |
<li id="ERROR_bad_email">The primary email is invalid.</li> |
| 179 |
[% END %] |
| 180 |
[% IF ERROR_bad_email_secondary %] |
| 181 |
<li id="ERROR_bad_email_secondary">The secondary email is invalid.</li> |
| 182 |
[% END %] |
| 183 |
[% IF ERROR_bad_email_alternative %] |
| 184 |
<li id="ERROR_bad_email_alternative">The alternative email is invalid.</li> |
| 185 |
[% END %] |
| 186 |
</ul> |
| 187 |
</div> |
| 188 |
[% END %] |
| 476 |
|
189 |
|
| 477 |
[% UNLESS nocontactfirstname %] |
190 |
<div id="toolbar" class="btn-toolbar"> |
| 478 |
<li> |
191 |
[% UNLESS ( check_member ) %] |
| 479 |
[% IF ( mandatorycontactfirstname ) %] |
192 |
[% IF quickadd && opadd %] |
| 480 |
<label for="contactfirstname" class="required"> |
193 |
<button class="btn btn-default toggler" id="save_quick_add" name="save"><i class="fa fa-save"></i> Save</button> |
| 481 |
[% ELSE %] |
194 |
[% END %] |
| 482 |
<label for="contactfirstname"> |
195 |
<button class="btn btn-default toggler" id="saverecord" name="save" ><i class="fa fa-save"></i> Save</button> |
| 483 |
[% END %] |
196 |
[% IF opadd %] |
| 484 |
Guarantor first name: </label> |
197 |
<a class="btn btn-default" href="/cgi-bin/koha/members/member.pl" class="toggler save_entryform"> |
| 485 |
<input type="text" id="contactfirstname" name="contactfirstname" value="[% contactfirstname | html %]" /> |
198 |
[% ELSE %] |
| 486 |
[% IF ( mandatorycontactfirstname ) %]<span class="required">Required</span>[% END %]<div class="hint">Non-patron guarantor first name</div> |
199 |
<a class="btn btn-default" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | html %]"> |
| 487 |
</li> |
200 |
[% END %] |
| 488 |
[% END %] |
201 |
<i class="fa fa-times"></i> Cancel |
|
|
202 |
</a> |
| 203 |
[% END %] |
| 204 |
</div> |
| 489 |
|
205 |
|
| 490 |
[% UNLESS norelationship %] |
206 |
<form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class="toggler"> |
| 491 |
[% IF possible_relationships %] |
207 |
[% UNLESS ( check_member ) %] |
| 492 |
<li> |
208 |
<input type="hidden" name="nodouble" value="[% nodouble | html %]" /> |
| 493 |
<label for="relationship">Relationship: </label> |
209 |
[% END %] |
| 494 |
<select class="relationship" name="relationship"> |
210 |
<!-- field always hidden in different form (1,2,3) --> |
| 495 |
<option value=""></option> |
211 |
<input type="hidden" name="BorrowerMandatoryField" value="[% BorrowerMandatoryField | html %]" /> |
| 496 |
[% FOREACH pr IN possible_relationships.split('\|') %] |
212 |
<input type="hidden" name="category_type" value="[% category_type | html %]" /> |
| 497 |
[% IF pr == relationship %] |
213 |
<input type="hidden" name="updtype" value="[% updtype | html %]" /> |
| 498 |
<option value="[% pr | html %]" selected="selected">[% pr | html %]</option> |
214 |
<input type="hidden" name="destination" value="[% destination | html %]" /> |
|
|
215 |
<input type="hidden" name="check_member" value="[% check_member | html %]" /> |
| 216 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber | html UNLESS opduplicate %]" /> |
| 217 |
<input type="hidden" name="nodouble" value="[% nodouble | html UNLESS opduplicate %]" /> |
| 218 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
| 219 |
[% IF ( step ) %] |
| 220 |
<input type="hidden" name="step" value="[% step | html %]" /> |
| 221 |
[% END %] |
| 222 |
[% IF ( opadd ) %] |
| 223 |
<input type="hidden" name="op" value="insert" /> |
| 224 |
[% ELSIF ( opduplicate ) %] |
| 225 |
<input type="hidden" name="op" value="insert" /> |
| 499 |
[% ELSE %] |
226 |
[% ELSE %] |
| 500 |
<option value="[% pr | html %]">[% pr | html %]</option> |
227 |
<input type="hidden" name="op" value="save" /> |
|
|
228 |
[% IF step == 4 || step == 5 || step == 6 || step == 2 || step == 1 || step == 7 %] |
| 229 |
[%# Only put the cardnumber if we arent showing it in the form later %] |
| 230 |
[% IF cardnumber %] |
| 231 |
<input type="hidden" name="cardnumber" value="[% cardnumber | html %]" /> |
| 232 |
[% END %] |
| 233 |
[% END %] |
| 501 |
[% END %] |
234 |
[% END %] |
| 502 |
[% END %] |
|
|
| 503 |
</select> |
| 504 |
</li> |
| 505 |
[% END %] |
| 506 |
[% END %] |
| 507 |
|
| 508 |
[% UNLESS nophone %] |
| 509 |
<li> |
| 510 |
[% IF ( mandatoryphone ) %] |
| 511 |
<label for="phone" class="required"> |
| 512 |
[% ELSE %] |
| 513 |
<label for="phone"> |
| 514 |
[% END %] |
| 515 |
Primary phone: </label> |
| 516 |
<input type="text" id="phone" name="phone" value="[% phone | html %]" /> |
| 517 |
[% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div> |
| 518 |
</li> |
| 519 |
[% END %] |
| 520 |
|
| 521 |
[% UNLESS nophonepro %] |
| 522 |
<li> |
| 523 |
[% IF ( mandatoryphonepro ) %] |
| 524 |
<label for="phonepro" class="required"> |
| 525 |
[% ELSE %] |
| 526 |
<label for="phonepro"> |
| 527 |
[% END %] |
| 528 |
Secondary phone: </label> |
| 529 |
<input type="text" id="phonepro" name="phonepro" value="[% phonepro | html %]" /> |
| 530 |
[% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %] |
| 531 |
</li> |
| 532 |
[% END %] |
| 533 |
|
| 534 |
[% UNLESS nomobile %] |
| 535 |
<li> |
| 536 |
[% IF ( mandatorymobile ) %] |
| 537 |
<label for="mobile" class="required"> |
| 538 |
[% ELSE %] |
| 539 |
<label for="mobile"> |
| 540 |
[% END %] |
| 541 |
Other phone: </label> |
| 542 |
<input type="text" id="mobile" name="mobile" value="[% mobile | html %]" /> |
| 543 |
[% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %] |
| 544 |
</li> |
| 545 |
[% END %] |
| 546 |
|
| 547 |
[% UNLESS noemail %] |
| 548 |
<li> |
| 549 |
[% IF ( mandatoryemail ) %] |
| 550 |
<label for="email" class="required"> |
| 551 |
[% ELSE %] |
| 552 |
<label for="email"> |
| 553 |
[% END %] |
| 554 |
Primary email: </label> |
| 555 |
<input type="text" id="email" name="email" size="45" value="[% email | html %]" /> |
| 556 |
[% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div> |
| 557 |
</li> |
| 558 |
[% END %] |
| 559 |
|
| 560 |
[% UNLESS noemailpro %] |
| 561 |
<li> |
| 562 |
[% IF ( mandatoryemailpro ) %] |
| 563 |
<label for="emailpro" class="required"> |
| 564 |
[% ELSE %] |
| 565 |
<label for="emailpro"> |
| 566 |
[% END %] |
| 567 |
Secondary email: </label> |
| 568 |
<input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro | html %]" /> |
| 569 |
[% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %] |
| 570 |
</li> |
| 571 |
[% END %] |
| 572 |
|
235 |
|
| 573 |
[% UNLESS nofax %] |
236 |
[% IF ( step_1 ) %] |
| 574 |
<li> |
237 |
[%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] |
| 575 |
[% IF ( mandatoryfax ) %] |
238 |
<fieldset class="rows" id="memberentry_identity"> |
| 576 |
<label for="fax" class="required"> |
239 |
<legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend> |
| 577 |
[% ELSE %] |
240 |
<ol> |
| 578 |
<label for="fax"> |
241 |
[% UNLESS ( I ) %] |
| 579 |
[% END %] |
242 |
[% UNLESS notitle %] |
| 580 |
Fax: </label> |
243 |
[% IF Koha.Preference('BorrowersTitles') %] |
| 581 |
<input type="text" id="fax" name="fax" value="[% fax | html %]" /> |
244 |
<li> |
| 582 |
[% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %] |
245 |
[% IF ( mandatorytitle ) %] |
| 583 |
</li> |
246 |
<label for="btitle" class="required"> |
| 584 |
[% END %] |
247 |
[% ELSE %] |
| 585 |
</ol> |
248 |
<label for="btitle"> |
| 586 |
</fieldset> |
249 |
[% END %] |
| 587 |
[%END # hide fieldset %] |
250 |
Salutation: </label> |
| 588 |
|
251 |
<select id="btitle" name="title"> |
| 589 |
<!-- ************************ STEP_1 *********************** --> |
252 |
<option value=""></option> |
| 590 |
[% END %] |
253 |
[% FOREACH t IN Koha.Preference('BorrowersTitles').split('\|') %] |
| 591 |
[% IF ( step_6 ) %] |
254 |
[% IF btitle == t %] |
|
|
255 |
<option value="[% t | html %]" selected="selected">[% t | html %]</option> |
| 256 |
[% ELSE %] |
| 257 |
<option value="[% t | html %]">[% t | html %]</option> |
| 258 |
[% END %] |
| 259 |
[% END %] |
| 260 |
</select> |
| 261 |
[% IF ( mandatorytitle ) %] |
| 262 |
<span class="required">Required</span> |
| 263 |
[% END %] |
| 264 |
</li> |
| 265 |
[% END %] |
| 266 |
[% END %] |
| 267 |
[% END %] |
| 268 |
|
| 269 |
[% UNLESS nosurname %] |
| 270 |
<li> |
| 271 |
[% IF ( I ) %] |
| 272 |
<label for="surname" class="required"> |
| 273 |
Name: |
| 274 |
</label> |
| 275 |
[% ELSE %] |
| 276 |
[% IF ( mandatorysurname ) %] |
| 277 |
<label for="surname" class="required"> |
| 278 |
[% ELSE %] |
| 279 |
<label for="surname"> |
| 280 |
[% END %] |
| 281 |
Surname: </label> |
| 282 |
[% END %] |
| 283 |
|
| 284 |
[% IF ( uppercasesurnames ) %] |
| 285 |
<input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% surname | html %]" /> |
| 286 |
[% ELSE %] |
| 287 |
<input type="text" id="surname" name="surname" size="20" value="[% surname | html %]" /> |
| 288 |
[% END %] |
| 289 |
[% IF ( mandatorysurname ) %] |
| 290 |
<span class="required">Required</span> |
| 291 |
[% END %] |
| 292 |
</li> |
| 293 |
[% END %] |
| 294 |
|
| 295 |
[% UNLESS ( I ) %] |
| 296 |
[% UNLESS nofirstname %] |
| 297 |
<li> |
| 298 |
[% IF ( mandatoryfirstname ) %] |
| 299 |
<label for="firstname" class="required"> |
| 300 |
[% ELSE %] |
| 301 |
<label for="firstname"> |
| 302 |
[% END %] |
| 303 |
First name: |
| 304 |
</label> |
| 305 |
<input type="text" id="firstname" name="firstname" size="20" value="[% firstname | html UNLESS opduplicate %]" /> |
| 306 |
[% IF ( mandatoryfirstname ) %] |
| 307 |
<span class="required">Required</span> |
| 308 |
[% END %] |
| 309 |
</li> |
| 310 |
[% END %] |
| 311 |
[% UNLESS nodateofbirth %] |
| 312 |
<li> |
| 313 |
[% IF ( mandatorydateofbirth ) %] |
| 314 |
<label for="dateofbirth" class="required"> |
| 315 |
[% ELSE %] |
| 316 |
<label for="dateofbirth"> |
| 317 |
[% END %] |
| 318 |
Date of birth: |
| 319 |
</label> |
| 320 |
<input type="text" id="dateofbirth" name="dateofbirth" size="20" onchange="write_age();" value="[% dateofbirth | html UNLESS opduplicate %]" class="datepicker" /> |
| 321 |
[% IF ( mandatorydateofbirth ) %] |
| 322 |
<span class="required">Required</span> |
| 323 |
[% END %] |
| 324 |
[% IF ( ERROR_dateofbirth ) %] |
| 325 |
<span class="required">(Error)</span> |
| 326 |
[% END %] |
| 327 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 328 |
</li> |
| 329 |
[% END %] |
| 330 |
[% UNLESS noinitials %] |
| 331 |
<li> |
| 332 |
[% IF ( mandatoryinitials ) %] |
| 333 |
<label for="initials" class="required"> |
| 334 |
[% ELSE %] |
| 335 |
<label for="initials"> |
| 336 |
[% END %] |
| 337 |
Initials: |
| 338 |
</label> |
| 339 |
<input type="text" id="initials" name="initials" size="20" value="[% initials | html UNLESS opduplicate %]" /> |
| 340 |
[% IF ( mandatoryinitials ) %] |
| 341 |
<span class="required">Required</span> |
| 342 |
[% END %] |
| 343 |
</li> |
| 344 |
[% END %] |
| 345 |
[% END %] |
| 346 |
[% UNLESS noothernames %] |
| 347 |
<li> |
| 348 |
[% IF ( mandatoryothernames ) %] |
| 349 |
<label for="othernames" class="required"> |
| 350 |
[% ELSE %] |
| 351 |
<label for="othernames"> |
| 352 |
[% END %] |
| 353 |
Other name: |
| 354 |
</label> |
| 355 |
<input type="text" id="othernames" name="othernames" size="20" value="[% othernames | html UNLESS opduplicate %]" /> |
| 356 |
[% IF ( mandatoryothernames ) %] |
| 357 |
<span class="required">Required</span> |
| 358 |
[% END %] |
| 359 |
[% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %] |
| 360 |
</li> |
| 361 |
[% END %] |
| 362 |
|
| 363 |
[% UNLESS ( I ) %] |
| 364 |
[% UNLESS nosex %] |
| 365 |
<li class="radio"> |
| 366 |
[% UNLESS ( opduplicate ) %] |
| 367 |
[% IF ( female ) %] |
| 368 |
<label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /> Female</label> |
| 369 |
[% ELSE %] |
| 370 |
<label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" /> Female</label> |
| 371 |
[% END %] |
| 372 |
[% IF ( male ) %] |
| 373 |
<label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /> Male</label> |
| 374 |
[% ELSE %] |
| 375 |
<label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" /> Male</label> |
| 376 |
[% END %] |
| 377 |
[% IF ( none ) %] |
| 378 |
<label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> None specified</label> |
| 379 |
[% ELSE %] |
| 380 |
<label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" /> None specified</label> |
| 381 |
[% END %] |
| 382 |
[% ELSE %] |
| 383 |
<label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" /> |
| 384 |
<label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" /> |
| 385 |
<label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> |
| 386 |
[% END %] |
| 387 |
</li> |
| 388 |
[% END %] |
| 389 |
[% END %] |
| 390 |
</ol> |
| 391 |
</fieldset> |
| 392 |
[% END # hide fieldset %] |
| 393 |
|
| 394 |
[% IF show_guarantor || guarantor %] |
| 395 |
[% SET possible_relationships = Koha.Preference('borrowerRelationship') %] |
| 396 |
<span id="memberentry_guarantor_anchor"> |
| 397 |
<fieldset id="memberentry_guarantor" class="rows"> |
| 398 |
<legend>Guarantor information</legend> |
| 399 |
|
| 400 |
<span id="guarantor_relationships"> |
| 401 |
[% FOREACH r IN relationships %] |
| 402 |
<fieldset class="rows"> |
| 403 |
<ol> |
| 404 |
[% IF category_type == 'I' %] |
| 405 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
| 406 |
<span class="label">Organization #:</span> [% IF ( r.guarantor_id ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% r.guarantor_id | uri %]" target="blank">[% r.guarantor_id | html %]</a>[% END %] |
| 407 |
</li> |
| 408 |
|
| 409 |
<li> |
| 410 |
<label for="guarantor_surname">Organization name: </label> |
| 411 |
<span>[% r.guarantor.surname | html %]</span> |
| 412 |
</li> |
| 413 |
[% ELSE %] |
| 414 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
| 415 |
<span class="label">Patron #:</span> |
| 416 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% r.guarantor_id | uri %]" target="blank">[% r.guarantor_id | html %]</a> |
| 417 |
</li> |
| 418 |
|
| 419 |
[% IF r.guarantor.surname %] |
| 420 |
<li> |
| 421 |
<label for="guarantor_surname">Surname: </label> |
| 422 |
<span>[% r.guarantor.surname | html %]</span> |
| 423 |
</li> |
| 424 |
[% END %] |
| 425 |
|
| 426 |
[% IF r.guarantor.firstname %] |
| 427 |
<li> |
| 428 |
<label for="guarantor_firstname">First name: </label> |
| 429 |
<span>[% r.guarantor.firstname | html %]</span> |
| 430 |
</li> |
| 431 |
[% END %] |
| 432 |
|
| 433 |
<li> |
| 434 |
<label for="relationship">Relationship: </label> |
| 435 |
<span>[% r.relationship | html %]</span> |
| 436 |
</li> |
| 437 |
|
| 438 |
<li> |
| 439 |
<label for="delete_guarantor-[% r.id | uri %]">Remove: </label> |
| 440 |
<input type="checkbox" id="delete_guarantor-[% r.id | uri %]" name="delete_guarantor" value="[% r.id | html %]" /> |
| 441 |
</li> |
| 442 |
[% END %] |
| 443 |
</ol> |
| 444 |
</fieldset> |
| 445 |
[% END # END relationships foreach %] |
| 446 |
</span> |
| 447 |
|
| 448 |
<fieldset class="rows guarantor" id="guarantor_template"> |
| 449 |
<ol> |
| 450 |
<li class="guarantor-details" data-borrowernumber="0"> |
| 451 |
<span class="label">Patron #:</span> |
| 452 |
<span class="new_guarantor_id_text"></span> |
| 453 |
<input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value=""/> |
| 454 |
</li> |
| 455 |
|
| 456 |
<li> |
| 457 |
<label for="guarantor_surname">Surname: </label> |
| 458 |
<span class="new_guarantor_surname_text"></span> |
| 459 |
</li> |
| 460 |
|
| 461 |
<li> |
| 462 |
<label for="guarantor_firstname">First name: </label> |
| 463 |
<span class="new_guarantor_firstname_text"></span> |
| 464 |
</li> |
| 465 |
|
| 466 |
<li> |
| 467 |
<label for="guarantor_relationship">Relationship: </label> |
| 468 |
<select class="new_guarantor_relationship" name="new_guarantor_relationship"> |
| 469 |
[% FOREACH pr IN possible_relationships.split('\|') %] |
| 470 |
<option value="[% pr | html %]">[% pr | html %]</option> |
| 471 |
[% END %] |
| 472 |
</select> |
| 473 |
</li> |
| 474 |
|
| 475 |
<li> |
| 476 |
<label for="guarantor_cancel"> </label> |
| 477 |
<span><a href="#" class="guarantor_cancel">Remove</a></span> |
| 478 |
</li> |
| 479 |
</ol> |
| 480 |
</fieldset> |
| 481 |
|
| 482 |
<ol> |
| 483 |
<input type="hidden" id="guarantor_id" value="" /> |
| 484 |
<input name="guarantor_surname" id="guarantor_surname" type="hidden" /> |
| 485 |
<input name="guarantor_firstname" id="guarantor_firstname" type="hidden" /> |
| 486 |
|
| 487 |
<li> |
| 488 |
<a href="#" id="guarantor_search" class="btn btn-default"><i class="fa fa-plus"></i> Search to add</a> |
| 489 |
</li> |
| 490 |
|
| 491 |
[% IF relationships && Koha.Preference('AllowStaffToSetCheckoutsVisibilityForGuarantor') %] |
| 492 |
<li> |
| 493 |
<label for="privacy_guarantor_checkouts">Show checkouts to guarantors</label> |
| 494 |
<select name="privacy_guarantor_checkouts" id="privacy_guarantor_checkouts"> |
| 495 |
[% IF privacy_guarantor_checkouts %] |
| 496 |
<option value="0">No</option> |
| 497 |
<option value="1" selected>Yes</option> |
| 498 |
[% ELSE %] |
| 499 |
<option value="0" selected>No</option> |
| 500 |
<option value="1">Yes</option> |
| 501 |
[% END %] |
| 502 |
</select> |
| 503 |
<div class="hint">Allow guarantors of this patron to view this patron's checkouts from the OPAC</div> |
| 504 |
</li> |
| 505 |
[% END %] |
| 506 |
[% IF relationships && Koha.Preference('AllowStaffToSetFinesVisibilityForGuarantor') %] |
| 507 |
<li> |
| 508 |
<label for="privacy_guarantor_fines">Show fines to guarantors</label> |
| 509 |
<select name="privacy_guarantor_fines" id="privacy_guarantor_fines"> |
| 510 |
[% IF privacy_guarantor_fines %] |
| 511 |
<option value="0">No</option> |
| 512 |
<option value="1" selected>Yes</option> |
| 513 |
[% ELSE %] |
| 514 |
<option value="0" selected>No</option> |
| 515 |
<option value="1">Yes</option> |
| 516 |
[% END %] |
| 517 |
</select> |
| 518 |
<div class="hint">Allow guarantors of this patron to view this patron's fines from the OPAC</div> |
| 519 |
</li> |
| 520 |
[% END %] |
| 521 |
</ol> |
| 522 |
</fieldset> |
| 523 |
</span> |
| 524 |
[% END %] |
| 592 |
|
525 |
|
| 593 |
[% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %] |
|
|
| 594 |
[% SWITCH Koha.Preference( 'AddressFormat' ) %] |
| 595 |
[% CASE 'de' %] |
| 596 |
[% INCLUDE 'member-alt-address-style-de.inc' %] |
| 597 |
[% CASE # us %] |
| 598 |
[% INCLUDE 'member-alt-address-style-us.inc' %] |
| 599 |
[% END %] |
| 600 |
|
526 |
|
| 601 |
[% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %] |
527 |
[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] |
| 602 |
[% END %] |
528 |
[% IF Koha.Preference( 'AddressFormat' ) %] |
| 603 |
[% IF ( step_2 ) %] |
529 |
[% INCLUDE "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] |
| 604 |
[% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %] |
530 |
[% END %] |
| 605 |
[% SWITCH Koha.Preference( 'AddressFormat' ) %] |
531 |
[% END # nostreet && nocity etc group%] |
| 606 |
[% CASE 'de' %] |
532 |
|
| 607 |
[% INCLUDE 'member-alt-contact-style-de.inc' %] |
533 |
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %] |
| 608 |
[% CASE # us %] |
534 |
<fieldset class="rows" id="memberentry_contact"> |
| 609 |
[% INCLUDE 'member-alt-contact-style-us.inc' %] |
535 |
<legend id="contact_lgd">Contact</legend> |
| 610 |
[% END %] |
536 |
<ol> |
| 611 |
[% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %] |
537 |
[% UNLESS nocontactname %] |
|
|
538 |
<li> |
| 539 |
[% IF ( mandatorycontactname ) %] |
| 540 |
<label for="contactname" class="required"> |
| 541 |
[% ELSE %] |
| 542 |
<label for="contactname"> |
| 543 |
[% END %] |
| 544 |
Guarantor surname: |
| 545 |
</label> |
| 546 |
<input type="text" id="contactname" name="contactname" value="[% contactname | html %]" /> |
| 547 |
[% IF ( mandatorycontactname ) %] |
| 548 |
<span class="required">Required</span> |
| 549 |
[% END %] |
| 550 |
<div class="hint">Non-patron guarantor surname</div> |
| 551 |
</li> |
| 552 |
[% END %] |
| 553 |
|
| 554 |
[% UNLESS nocontactfirstname %] |
| 555 |
<li> |
| 556 |
[% IF ( mandatorycontactfirstname ) %] |
| 557 |
<label for="contactfirstname" class="required"> |
| 558 |
[% ELSE %] |
| 559 |
<label for="contactfirstname"> |
| 560 |
[% END %] |
| 561 |
Guarantor first name: |
| 562 |
</label> |
| 563 |
<input type="text" id="contactfirstname" name="contactfirstname" value="[% contactfirstname | html %]" /> |
| 564 |
[% IF ( mandatorycontactfirstname ) %] |
| 565 |
<span class="required">Required</span> |
| 566 |
[% END %] |
| 567 |
<div class="hint">Non-patron guarantor first name</div> |
| 568 |
</li> |
| 569 |
[% END %] |
| 570 |
|
| 571 |
[% UNLESS norelationship %] |
| 572 |
[% IF possible_relationships %] |
| 573 |
<li> |
| 574 |
<label for="relationship">Relationship: </label> |
| 575 |
<select class="relationship" name="relationship"> |
| 576 |
<option value=""></option> |
| 577 |
[% FOREACH pr IN possible_relationships.split('\|') %] |
| 578 |
[% IF pr == relationship %] |
| 579 |
<option value="[% pr | html %]" selected="selected">[% pr | html %]</option> |
| 580 |
[% ELSE %] |
| 581 |
<option value="[% pr | html %]">[% pr | html %]</option> |
| 582 |
[% END %] |
| 583 |
[% END %] |
| 584 |
</select> |
| 585 |
</li> |
| 586 |
[% END %] |
| 587 |
[% END %] |
| 588 |
|
| 589 |
[% UNLESS nophone %] |
| 590 |
<li> |
| 591 |
[% IF ( mandatoryphone ) %] |
| 592 |
<label for="phone" class="required"> |
| 593 |
[% ELSE %] |
| 594 |
<label for="phone"> |
| 595 |
[% END %] |
| 596 |
Primary phone: |
| 597 |
</label> |
| 598 |
<input type="text" id="phone" name="phone" value="[% phone | html %]" /> |
| 599 |
[% IF ( mandatoryphone ) %] |
| 600 |
<span class="required">Required</span> |
| 601 |
[% END %] |
| 602 |
<div class="hint">Shows on transit slips</div> |
| 603 |
</li> |
| 604 |
[% END %] |
| 605 |
|
| 606 |
[% UNLESS nophonepro %] |
| 607 |
<li> |
| 608 |
[% IF ( mandatoryphonepro ) %] |
| 609 |
<label for="phonepro" class="required"> |
| 610 |
[% ELSE %] |
| 611 |
<label for="phonepro"> |
| 612 |
[% END %] |
| 613 |
Secondary phone: |
| 614 |
</label> |
| 615 |
<input type="text" id="phonepro" name="phonepro" value="[% phonepro | html %]" /> |
| 616 |
[% IF ( mandatoryphonepro ) %] |
| 617 |
<span class="required">Required</span> |
| 618 |
[% END %] |
| 619 |
</li> |
| 620 |
[% END %] |
| 621 |
|
| 622 |
[% UNLESS nomobile %] |
| 623 |
<li> |
| 624 |
[% IF ( mandatorymobile ) %] |
| 625 |
<label for="mobile" class="required"> |
| 626 |
[% ELSE %] |
| 627 |
<label for="mobile"> |
| 628 |
[% END %] |
| 629 |
Other phone: |
| 630 |
</label> |
| 631 |
<input type="text" id="mobile" name="mobile" value="[% mobile | html %]" /> |
| 632 |
[% IF ( mandatorymobile ) %] |
| 633 |
<span class="required">Required</span> |
| 634 |
[% END %] |
| 635 |
</li> |
| 636 |
[% END %] |
| 637 |
|
| 638 |
[% UNLESS noemail %] |
| 639 |
<li> |
| 640 |
[% IF ( mandatoryemail ) %] |
| 641 |
<label for="email" class="required"> |
| 642 |
[% ELSE %] |
| 643 |
<label for="email"> |
| 644 |
[% END %] |
| 645 |
Primary email: |
| 646 |
</label> |
| 647 |
<input type="text" id="email" name="email" size="45" value="[% email | html %]" /> |
| 648 |
[% IF ( mandatoryemail ) %] |
| 649 |
<span class="required">Required</span> |
| 650 |
[% END %] |
| 651 |
<div class="hint">Shows on transit slips</div> |
| 652 |
</li> |
| 653 |
[% END %] |
| 654 |
|
| 655 |
[% UNLESS noemailpro %] |
| 656 |
<li> |
| 657 |
[% IF ( mandatoryemailpro ) %] |
| 658 |
<label for="emailpro" class="required"> |
| 659 |
[% ELSE %] |
| 660 |
<label for="emailpro"> |
| 661 |
[% END %] |
| 662 |
Secondary email: |
| 663 |
</label> |
| 664 |
<input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro | html %]" /> |
| 665 |
[% IF ( mandatoryemailpro ) %] |
| 666 |
<span class="required">Required</span> |
| 667 |
[% END %] |
| 668 |
</li> |
| 669 |
[% END %] |
| 670 |
|
| 671 |
[% UNLESS nofax %] |
| 672 |
<li> |
| 673 |
[% IF ( mandatoryfax ) %] |
| 674 |
<label for="fax" class="required"> |
| 675 |
[% ELSE %] |
| 676 |
<label for="fax"> |
| 677 |
[% END %] |
| 678 |
Fax: |
| 679 |
</label> |
| 680 |
<input type="text" id="fax" name="fax" value="[% fax | html %]" /> |
| 681 |
[% IF ( mandatoryfax ) %] |
| 682 |
<span class="required">Required</span> |
| 683 |
[% END %] |
| 684 |
</li> |
| 685 |
[% END %] |
| 686 |
</ol> |
| 687 |
</fieldset> |
| 688 |
[% END # hide fieldset %] |
| 689 |
|
| 690 |
<!-- ************************ STEP_1 *********************** --> |
| 691 |
[% END %] |
| 612 |
|
692 |
|
| 613 |
[% END %] |
693 |
[% IF ( step_6 ) %] |
| 614 |
[% IF ( step_3 ) %] |
694 |
[% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %] |
| 615 |
|
695 |
[% SWITCH Koha.Preference( 'AddressFormat' ) %] |
| 616 |
[% SET autoMemberNum = Koha.Preference('autoMemberNum') %] |
696 |
[% CASE 'de' %] |
| 617 |
<fieldset class="rows" id="memberentry_library_management"> |
697 |
[% INCLUDE 'member-alt-address-style-de.inc' %] |
| 618 |
<legend id="library_management_lgd">Library management</legend><ol> |
698 |
[% CASE # us %] |
| 619 |
[% UNLESS nocardnumber %] |
699 |
[% INCLUDE 'member-alt-address-style-us.inc' %] |
| 620 |
<li> |
700 |
[% END %] |
| 621 |
[% IF mandatorycardnumber %] |
701 |
[% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %] |
| 622 |
<label for="cardnumber" class="required"> |
|
|
| 623 |
[% ELSE %] |
| 624 |
<label for="cardnumber" class="validated"> |
| 625 |
[% END %] |
| 626 |
Card number: </label> |
| 627 |
|
| 628 |
<!-- NOTE: div.hint closing tag isn't on the same line --> |
| 629 |
[% IF minlength_cardnumber == maxlength_cardnumber %] |
| 630 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> |
| 631 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %]<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> |
| 632 |
<div class="hint">Card number must be exactly [% minlength_cardnumber | html %] characters. |
| 633 |
[% ELSIF minlength_cardnumber && maxlength_cardnumber %] |
| 634 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> |
| 635 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %]<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> |
| 636 |
<div class="hint">Card number must be between [% minlength_cardnumber | html %] and [% maxlength_cardnumber | html %] characters. |
| 637 |
[% ELSIF maxlength_cardnumber %] |
| 638 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> |
| 639 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %]<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> |
| 640 |
<div class="hint">Card number can be up to [% maxlength_cardnumber | html %] characters. |
| 641 |
[% ELSE %] |
| 642 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" /> |
| 643 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] |
| 644 |
<div class="hint">There is no minimum or maximum character length. |
| 645 |
[% END %] |
| 646 |
[% IF autoMemberNum %] |
| 647 |
[% IF mandatorycardnumber %] |
| 648 |
<br/><span class="error">AutoMemberNum is set to enabled, but cardnumber is marked as mandatory in BorrowerMandatoryField: auto calc has been disabled.</span> |
| 649 |
[% ELSE %] |
| 650 |
<br/>Leave blank for auto calc during registration |
| 651 |
[% END %] |
| 652 |
[% END %] |
| 653 |
</div><!--/hint div --> |
| 654 |
</li> |
| 655 |
[% END %] |
| 656 |
[% UNLESS nobranchcode %] |
| 657 |
<li> |
| 658 |
<label for="libraries" class="required">Library:</label> |
| 659 |
<select name="branchcode" size="1" id="libraries"> |
| 660 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %] |
| 661 |
</select> |
| 662 |
<span class="required">Required</span> |
| 663 |
</li> |
| 664 |
[% END %] |
| 665 |
<li> |
| 666 |
<label for="categorycode_entry" class="required">Category: </label> |
| 667 |
<select id="categorycode_entry" name="categorycode" onchange="update_category_code(this);"> |
| 668 |
[% FOREACH typeloo IN typeloop %] |
| 669 |
[% FOREACH categoryloo IN typeloo.categoryloop %] |
| 670 |
[% IF ( loop.first ) %] |
| 671 |
[% IF ( typeloo.typename_C ) %]<optgroup label="Child">[% END %] |
| 672 |
[% IF ( typeloo.typename_A ) %]<optgroup label="Adult">[% END %] |
| 673 |
[% IF ( typeloo.typename_S ) %]<optgroup label="Staff">[% END %] |
| 674 |
[% IF ( typeloo.typename_I ) %]<optgroup label="Organization">[% END %] |
| 675 |
[% IF ( typeloo.typename_P ) %]<optgroup label="Professional">[% END %] |
| 676 |
[% IF ( typeloo.typename_X ) %]<optgroup label="Statistical">[% END %] |
| 677 |
[% END %] |
| 678 |
[% IF ( categoryloo.categorycodeselected ) %] |
| 679 |
<option value="[% categoryloo.categorycode | html %]" selected="selected" data-typename="[% typeloo.typename | html %]">[% categoryloo.categoryname | html %]</option> |
| 680 |
[% ELSE %] |
| 681 |
<option value="[% categoryloo.categorycode | html %]" data-typename="[% typeloo.typename | html %]">[% categoryloo.categoryname | html %]</option> |
| 682 |
[% END %] |
| 683 |
[% IF ( loop.last ) %] |
| 684 |
</optgroup> |
| 685 |
[% END %] |
| 686 |
[% END %] |
| 687 |
[% END %] |
| 688 |
</select> |
| 689 |
<span class="required">Required</span> |
| 690 |
</li> |
| 691 |
[% UNLESS nosort1 %] |
| 692 |
<li> |
| 693 |
[% IF ( mandatorysort1 ) %] |
| 694 |
<label for="sort1" class="required"> |
| 695 |
[% ELSE %] |
| 696 |
<label for="sort1"> |
| 697 |
[% END %] |
| 698 |
Sort 1: </label> |
| 699 |
[% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, size = 20 %] |
| 700 |
[% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %] |
| 701 |
</li> |
| 702 |
[% END %] |
| 703 |
[% UNLESS nosort2 %] |
| 704 |
<li> |
| 705 |
[% IF ( mandatorysort2 ) %] |
| 706 |
<label for="sort2" class="required"> |
| 707 |
[% ELSE %] |
| 708 |
<label for="sort2"> |
| 709 |
[% END %] |
| 710 |
Sort 2: </label> |
| 711 |
[% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, size = 20 %] |
| 712 |
[% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %] |
| 713 |
</li> |
| 714 |
[% END %] |
| 715 |
[% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] |
| 716 |
<li><label for="checkprevcheckout">Check for previous checkouts: </label> |
| 717 |
<select name="checkprevcheckout" id="checkprevcheckout"> |
| 718 |
[% IF ( checkprevcheckout == 'yes' ) %] |
| 719 |
<option value="yes" selected="selected">Yes if settings allow it</option> |
| 720 |
<option value="no">No if settings allow it</option> |
| 721 |
<option value="inherit">Inherit from settings</option> |
| 722 |
[% ELSIF ( checkprevcheckout == 'no' ) %] |
| 723 |
<option value="yes">Yes if settings allow it</option> |
| 724 |
<option value="no" selected="selected">No if settings allow it</option> |
| 725 |
<option value="inherit">Inherit from settings</option> |
| 726 |
[% ELSE %] |
| 727 |
<option value="yes">Yes if settings allow it</option> |
| 728 |
<option value="no">No if settings allow it</option> |
| 729 |
<option value="inherit" selected="selected">Inherit from settings</option> |
| 730 |
[% END %] |
| 731 |
</select> |
| 732 |
</li> |
| 733 |
[% END %] |
| 734 |
[% IF Koha.Preference('TranslateNotices') %] |
| 735 |
<li> |
| 736 |
<label for="lang">Preferred language for notices: </label> |
| 737 |
<select id="lang" name="lang"> |
| 738 |
<option value="default">Default</option> |
| 739 |
[% FOR language IN languages %] |
| 740 |
[% FOR sublanguage IN language.sublanguages_loop %] |
| 741 |
[% IF language.plural %] |
| 742 |
[% IF sublanguage.rfc4646_subtag == lang %] |
| 743 |
<option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
| 744 |
[% ELSE %] |
| 745 |
<option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
| 746 |
[% END %] |
702 |
[% END %] |
| 747 |
[% ELSE %] |
703 |
|
| 748 |
[% IF sublanguage.rfc4646_subtag == lang %] |
704 |
[% IF ( step_2 ) %] |
| 749 |
<option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
705 |
[% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %] |
| 750 |
[% ELSE %] |
706 |
[% SWITCH Koha.Preference( 'AddressFormat' ) %] |
| 751 |
<option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
707 |
[% CASE 'de' %] |
|
|
708 |
[% INCLUDE 'member-alt-contact-style-de.inc' %] |
| 709 |
[% CASE # us %] |
| 710 |
[% INCLUDE 'member-alt-contact-style-us.inc' %] |
| 711 |
[% END %] |
| 712 |
[% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %] |
| 752 |
[% END %] |
713 |
[% END %] |
| 753 |
[% END %] |
|
|
| 754 |
[% END %] |
| 755 |
[% END %] |
| 756 |
</select> |
| 757 |
</li> |
| 758 |
[% END %] |
| 759 |
</ol> |
| 760 |
</fieldset> |
| 761 |
[% UNLESS nodateenrolled && noopacnote && noborrowernotes %] |
| 762 |
<fieldset class="rows" id="memberentry_subscription"> |
| 763 |
<legend id="library_setup_lgd">Library set-up</legend><ol> |
| 764 |
[% UNLESS nodateenrolled %] |
| 765 |
<li> |
| 766 |
[% IF ( mandatorydateenrolled ) %] |
| 767 |
<label for="from" class="required"> |
| 768 |
[% ELSE %] |
| 769 |
<label for="from"> |
| 770 |
[% END %] |
| 771 |
Registration date: </label> |
| 772 |
[% IF ( dateformat == "metric" ) %] |
| 773 |
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled | html %]" class="datepickerfrom" /> |
| 774 |
[% ELSE %] |
| 775 |
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled | html %]" class="datepickerfrom" /> |
| 776 |
[% END %] |
| 777 |
[% IF ( mandatorydateenrolled ) %]<span class="required">Required</span>[% END %] |
| 778 |
[% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %] |
| 779 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 780 |
</li> |
| 781 |
[% END %] |
| 782 |
[% UNLESS nodateexpiry %] |
| 783 |
<li> |
| 784 |
[% ELSE %] |
| 785 |
<li style="display:none"> |
| 786 |
[% END %] |
| 787 |
[% IF ( mandatorydateexpiry ) %] |
| 788 |
<label for="to" class="required"> |
| 789 |
[% ELSE %] |
| 790 |
<label for="to"> |
| 791 |
[% END %] |
| 792 |
Expiry date (leave blank for auto calc): </label> |
| 793 |
[% IF ( dateformat == "metric" ) %] |
| 794 |
[% UNLESS ( opadd ) %] |
| 795 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" /> |
| 796 |
[% ELSE %] |
| 797 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" /> |
| 798 |
[% END %] |
| 799 |
[% ELSE %] |
| 800 |
[% UNLESS ( opadd ) %] |
| 801 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" /> |
| 802 |
[% ELSE %] |
| 803 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html %]" class="datepickerto" /> |
| 804 |
[% END %] |
| 805 |
[% END %] |
| 806 |
[% IF ( mandatorydateexpiry ) %]<span class="required">Required</span>[% END %] |
| 807 |
[% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %] |
| 808 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 809 |
</li> |
| 810 |
[% UNLESS noopacnote %] |
| 811 |
<li> |
| 812 |
[% IF ( mandatoryopacnote ) %] |
| 813 |
<label for="opacnote" class="required"> |
| 814 |
[% ELSE %] |
| 815 |
<label for="opacnote"> |
| 816 |
[% END %] |
| 817 |
OPAC note: </label> |
| 818 |
<textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote | html UNLESS opduplicate %]</textarea> |
| 819 |
<div class="hint">This message appears on this patron's user page in the OPAC</div> |
| 820 |
[% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %] |
| 821 |
</li> |
| 822 |
[% END %] |
| 823 |
[% UNLESS noborrowernotes %] |
| 824 |
<li> |
| 825 |
[% IF ( mandatoryborrowernotes ) %] |
| 826 |
<label for="borrowernotes" class="required"> |
| 827 |
[% ELSE %] |
| 828 |
<label for="borrowernotes"> |
| 829 |
[% END %] |
| 830 |
Circulation note: </label> |
| 831 |
<textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes | html UNLESS opduplicate %]</textarea> |
| 832 |
<div class="hint">This message displays when checking out to this patron</div> |
| 833 |
[% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %] |
| 834 |
</li> |
| 835 |
[% END %] |
| 836 |
</ol> |
| 837 |
</fieldset> |
| 838 |
[% END # hide fieldset %] |
| 839 |
|
| 840 |
[% UNLESS nouserid && nopassword %] |
| 841 |
<fieldset class="rows" id="memberentry_userid"> |
| 842 |
<legend id="opac_staff_login_lgd">OPAC/Staff login</legend><ol> |
| 843 |
[% UNLESS nouserid %] |
| 844 |
<li> |
| 845 |
[% IF ( mandatoryuserid ) %] |
| 846 |
<label for="userid" class="required"> |
| 847 |
[% ELSE %] |
| 848 |
<label for="userid"> |
| 849 |
[% END %] |
| 850 |
Username: </label> |
| 851 |
|
| 852 |
[% IF ( NoUpdateLogin ) %] |
| 853 |
[% IF ( opduplicate ) %] |
| 854 |
<input type="text" id="userid" name="userid" size="20" disabled="disabled" /> |
| 855 |
[% ELSE %] |
| 856 |
<input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid | html %]" /> |
| 857 |
[% END %] |
| 858 |
[% ELSE %] |
| 859 |
[% IF ( opduplicate ) %] |
| 860 |
<input type="text" id="userid" name="userid" size="20" value="" /> |
| 861 |
[% ELSE %] |
| 862 |
<input type="text" id="userid" name="userid" size="20" value="[% userid | html %]" /> |
| 863 |
[% END %] |
| 864 |
[% END %] |
| 865 |
|
714 |
|
| 866 |
[%# Dummy input to avoid Firefox from using userid/password saved for authentication %] |
715 |
[% IF ( step_3 ) %] |
| 867 |
<input type="text" disabled="disabled" style="display:none" /> |
716 |
[% SET autoMemberNum = Koha.Preference('autoMemberNum') %] |
| 868 |
|
717 |
<fieldset class="rows" id="memberentry_library_management"> |
| 869 |
[% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %] |
718 |
<legend id="library_management_lgd">Library management</legend> |
| 870 |
</li> |
719 |
<ol> |
| 871 |
[%END %] |
720 |
[% UNLESS nocardnumber %] |
| 872 |
[% UNLESS nopassword %] |
721 |
<li> |
| 873 |
<li> |
722 |
[% IF mandatorycardnumber %] |
| 874 |
[% IF ( mandatorypassword ) %] |
723 |
<label for="cardnumber" class="required"> |
| 875 |
<label for="password" class="required"> |
724 |
[% ELSE %] |
| 876 |
[% ELSE %] |
725 |
<label for="cardnumber" class="validated"> |
| 877 |
<label for="password"> |
726 |
[% END %] |
| 878 |
[% END %] |
727 |
Card number: |
| 879 |
Password: </label> |
728 |
</label> |
| 880 |
[% IF ( opadd ) %] |
729 |
|
| 881 |
[% IF ( NoUpdateLogin ) %] |
730 |
<!-- NOTE: div.hint closing tag isn't on the same line --> |
| 882 |
[% IF ( opduplicate ) %] |
731 |
[% IF minlength_cardnumber == maxlength_cardnumber %] |
| 883 |
<input type="password" id="password" name="password" size="20" disabled="disabled" /> |
732 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> |
| 884 |
[% ELSE %] |
733 |
[% IF mandatorycardnumber %] |
| 885 |
<input type="password" id="password" name="password" size="20" disabled="disabled" value="[% password | html %]" /> |
734 |
<span class="required">Required</span> |
| 886 |
[% END %] |
735 |
[% END %] |
| 887 |
[% ELSE %] |
736 |
<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> |
| 888 |
[% IF ( opduplicate ) %] |
737 |
<div class="hint">Card number must be exactly [% minlength_cardnumber | html %] characters. |
| 889 |
<input type="password" id="password" name="password" size="20" /> |
738 |
[% ELSIF minlength_cardnumber && maxlength_cardnumber %] |
| 890 |
[% ELSE %] |
739 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> |
| 891 |
<input type="password" id="password" name="password" size="20" value="[% password | html %]" /> |
740 |
[% IF mandatorycardnumber %] |
| 892 |
[% END %] |
741 |
<span class="required">Required</span> |
| 893 |
[% END %] |
742 |
[% END %] |
| 894 |
[% ELSE %] |
743 |
<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> |
| 895 |
[% IF ( password ) %] |
744 |
<div class="hint">Card number must be between [% minlength_cardnumber | html %] and [% maxlength_cardnumber | html %] characters. |
| 896 |
[% IF ( NoUpdateLogin ) %] |
745 |
[% ELSIF maxlength_cardnumber %] |
| 897 |
<input type="password" id="password" name="password" size="20" disabled="disabled" value="****" /> |
746 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> |
| 898 |
[% ELSE %] |
747 |
[% IF mandatorycardnumber %] |
| 899 |
[% IF ( opduplicate ) %] |
748 |
<span class="required">Required</span> |
| 900 |
<input type="password" id="password" name="password" size="20" /> |
749 |
[% END %] |
| 901 |
[% ELSE %] |
750 |
<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> |
| 902 |
<input type="password" id="password" name="password" size="20" value="****" /> |
751 |
<div class="hint">Card number can be up to [% maxlength_cardnumber | html %] characters. |
| 903 |
[% END %] |
752 |
[% ELSE %] |
| 904 |
[% END %] |
753 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" /> |
| 905 |
[% ELSE %] |
754 |
[% IF mandatorycardnumber %] |
| 906 |
[% IF ( NoUpdateLogin ) %] |
755 |
<span class="required">Required</span> |
| 907 |
<input type="password" id="password" name="password" size="20" disabled="disabled" value="" /> |
756 |
[% END %] |
| 908 |
[% ELSE %] |
757 |
<div class="hint">There is no minimum or maximum character length. |
| 909 |
<input type="password" id="password" name="password" size="20" value="" /> |
758 |
[% END %] |
| 910 |
[% END %] |
759 |
[% IF autoMemberNum %] |
| 911 |
[% END %] |
760 |
[% IF mandatorycardnumber %] |
| 912 |
[% END %] |
761 |
<br/><span class="error">AutoMemberNum is set to enabled, but cardnumber is marked as mandatory in BorrowerMandatoryField: auto calc has been disabled.</span> |
| 913 |
[% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %] |
762 |
[% ELSE %] |
| 914 |
[% IF ( ERROR_password_too_short ) %]<span class="required">Password is too short</span>[% END %] |
763 |
<br/>Leave blank for auto calc during registration |
| 915 |
[% IF ( ERROR_password_too_weak ) %]<span class="required">Password is too weak</span>[% END %] |
764 |
[% END %] |
| 916 |
[% IF ( ERROR_password_has_whitespaces ) %]<span class="required">Password has leading or trailing whitespaces</span>[% END %] |
765 |
[% END %] |
| 917 |
<div class="hint">Minimum password length: [% minPasswordLength | html %]</div> |
766 |
</div><!--/hint div --> |
| 918 |
</li> |
767 |
</li> |
| 919 |
<li> |
768 |
[% END %] |
| 920 |
[% IF ( mandatorypassword ) %] |
769 |
|
| 921 |
<label for="password2" class="required"> |
770 |
[% UNLESS nobranchcode %] |
| 922 |
[% ELSE %] |
771 |
<li> |
| 923 |
<label for="password2"> |
772 |
<label for="libraries" class="required">Library:</label> |
| 924 |
[% END %] |
773 |
<select name="branchcode" size="1" id="libraries"> |
| 925 |
Confirm password: </label> |
774 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %] |
| 926 |
[% IF ( opadd ) %] |
775 |
</select> |
| 927 |
[% IF ( NoUpdateLogin ) %] |
776 |
<span class="required">Required</span> |
| 928 |
[% IF ( opduplicate ) %] |
777 |
</li> |
| 929 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" /> |
778 |
[% END %] |
| 930 |
[% ELSE %] |
779 |
|
| 931 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="[% password | html %]" /> |
780 |
<li> |
| 932 |
[% END %] |
781 |
<label for="categorycode_entry" class="required">Category: </label> |
| 933 |
[% ELSE %] |
782 |
<select id="categorycode_entry" name="categorycode" onchange="update_category_code(this);"> |
| 934 |
[% IF ( opduplicate ) %] |
783 |
[% FOREACH typeloo IN typeloop %] |
| 935 |
<input type="password" id="password2" name="password2" size="20" /> |
784 |
[% FOREACH categoryloo IN typeloo.categoryloop %] |
| 936 |
[% ELSE %] |
785 |
[% IF ( loop.first ) %] |
| 937 |
<input type="password" id="password2" name="password2" size="20" value="[% password | html %]" /> |
786 |
[% IF ( typeloo.typename_C ) %]<optgroup label="Child">[% END %] |
| 938 |
[% END %] |
787 |
[% IF ( typeloo.typename_A ) %]<optgroup label="Adult">[% END %] |
| 939 |
[% END %] |
788 |
[% IF ( typeloo.typename_S ) %]<optgroup label="Staff">[% END %] |
| 940 |
[% ELSE %] |
789 |
[% IF ( typeloo.typename_I ) %]<optgroup label="Organization">[% END %] |
| 941 |
[% IF ( password ) %] |
790 |
[% IF ( typeloo.typename_P ) %]<optgroup label="Professional">[% END %] |
| 942 |
[% IF ( NoUpdateLogin ) %] |
791 |
[% IF ( typeloo.typename_X ) %]<optgroup label="Statistical">[% END %] |
| 943 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="****" /> |
792 |
[% END %] |
| 944 |
[% ELSE %] |
793 |
[% IF ( categoryloo.categorycodeselected ) %] |
| 945 |
[% IF ( opduplicate ) %] |
794 |
<option value="[% categoryloo.categorycode | html %]" selected="selected" data-typename="[% typeloo.typename | html %]">[% categoryloo.categoryname | html %]</option> |
| 946 |
<input type="password" id="password2" name="password2" size="20" /> |
795 |
[% ELSE %] |
| 947 |
[% ELSE %] |
796 |
<option value="[% categoryloo.categorycode | html %]" data-typename="[% typeloo.typename | html %]">[% categoryloo.categoryname | html %]</option> |
| 948 |
<input type="password" id="password2" name="password2" size="20" value="****" /> |
797 |
[% END %] |
| 949 |
[% END %] |
798 |
[% IF ( loop.last ) %] |
| 950 |
[% END %] |
799 |
</optgroup> |
| 951 |
[% ELSE %] |
800 |
[% END %] |
| 952 |
[% IF ( NoUpdateLogin ) %] |
801 |
[% END %] |
| 953 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="" /> |
802 |
[% END %] |
| 954 |
[% ELSE %] |
803 |
</select> |
| 955 |
<input type="password" id="password2" name="password2" size="20" value="" /> |
804 |
<span class="required">Required</span> |
| 956 |
[% END %] |
805 |
</li> |
| 957 |
[% END %] |
806 |
|
| 958 |
[% END %] |
807 |
[% UNLESS nosort1 %] |
| 959 |
[% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %] |
808 |
<li> |
| 960 |
</li> |
809 |
[% IF ( mandatorysort1 ) %] |
| 961 |
</ol> |
810 |
<label for="sort1" class="required"> |
| 962 |
</fieldset> |
811 |
[% ELSE %] |
| 963 |
[% END # hide fieldset %][% END %] |
812 |
<label for="sort1"> |
| 964 |
<!--this zones are not necessary in modif mode --> |
813 |
[% END %] |
| 965 |
[% UNLESS ( opadd || opduplicate ) %] |
814 |
Sort 1: |
| 966 |
<fieldset class="rows" id="memberentry_account_flags"> |
815 |
</label> |
| 967 |
<legend id="account_flags_lgd">Patron account flags</legend> |
816 |
[% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, size = 20 %] |
| 968 |
<ol class="radio"> |
817 |
[% IF ( mandatorysort1 ) %] |
| 969 |
[% FOREACH flagloo IN flagloop %] |
818 |
<span class="required">Required</span> |
| 970 |
<li><label class="radio" for="yes[% flagloo.name | html %]"> |
819 |
[% END %] |
| 971 |
[% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no address:[% END %] |
820 |
</li> |
| 972 |
[% IF ( flagloo.key == 'lost' ) %]Lost card:[% END %] |
821 |
[% END %] |
| 973 |
</label> |
822 |
|
| 974 |
[% IF CAN_user_circulate_manage_restrictions %] |
823 |
[% UNLESS nosort2 %] |
| 975 |
<label for="yes[% flagloo.name | html %]"> |
824 |
<li> |
| 976 |
[% IF ( flagloo.yes ) %] |
825 |
[% IF ( mandatorysort2 ) %] |
| 977 |
<input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" checked="checked" /> |
826 |
<label for="sort2" class="required"> |
| 978 |
[% ELSE %] |
827 |
[% ELSE %] |
| 979 |
<input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" /> |
828 |
<label for="sort2"> |
| 980 |
[% END %] |
829 |
[% END %] |
| 981 |
Yes </label> |
830 |
Sort 2: |
| 982 |
<label for="no[% flagloo.name | html %]"> |
831 |
</label> |
| 983 |
[% IF ( flagloo.no ) %] |
832 |
[% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, size = 20 %] |
| 984 |
<input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" checked="checked"/> |
833 |
[% IF ( mandatorysort2 ) %] |
| 985 |
[% ELSE %] |
834 |
<span class="required">Required</span> |
| 986 |
<input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" /> |
835 |
[% END %] |
| 987 |
[% END %] |
836 |
</li> |
| 988 |
No </label> |
837 |
[% END %] |
| 989 |
[% ELSE %] |
838 |
|
| 990 |
[% IF flagloo.yes %]Yes[% ELSE %]No[% END %] |
839 |
[% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] |
| 991 |
[% END %] |
840 |
<li> |
|
|
841 |
<label for="checkprevcheckout">Check for previous checkouts: </label> |
| 842 |
<select name="checkprevcheckout" id="checkprevcheckout"> |
| 843 |
[% IF ( checkprevcheckout == 'yes' ) %] |
| 844 |
<option value="yes" selected="selected">Yes if settings allow it</option> |
| 845 |
<option value="no">No if settings allow it</option> |
| 846 |
<option value="inherit">Inherit from settings</option> |
| 847 |
[% ELSIF ( checkprevcheckout == 'no' ) %] |
| 848 |
<option value="yes">Yes if settings allow it</option> |
| 849 |
<option value="no" selected="selected">No if settings allow it</option> |
| 850 |
<option value="inherit">Inherit from settings</option> |
| 851 |
[% ELSE %] |
| 852 |
<option value="yes">Yes if settings allow it</option> |
| 853 |
<option value="no">No if settings allow it</option> |
| 854 |
<option value="inherit" selected="selected">Inherit from settings</option> |
| 855 |
[% END %] |
| 856 |
</select> |
| 857 |
</li> |
| 858 |
[% END %] |
| 859 |
|
| 860 |
[% IF Koha.Preference('TranslateNotices') %] |
| 861 |
<li> |
| 862 |
<label for="lang">Preferred language for notices: </label> |
| 863 |
<select id="lang" name="lang"> |
| 864 |
<option value="default">Default</option> |
| 865 |
[% FOR language IN languages %] |
| 866 |
[% FOR sublanguage IN language.sublanguages_loop %] |
| 867 |
[% IF language.plural %] |
| 868 |
[% IF sublanguage.rfc4646_subtag == lang %] |
| 869 |
<option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
| 870 |
[% ELSE %] |
| 871 |
<option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
| 872 |
[% END %] |
| 873 |
[% ELSE %] |
| 874 |
[% IF sublanguage.rfc4646_subtag == lang %] |
| 875 |
<option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
| 876 |
[% ELSE %] |
| 877 |
<option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
| 878 |
[% END %] |
| 879 |
[% END %] |
| 880 |
[% END %] |
| 881 |
[% END %] |
| 882 |
</select> |
| 883 |
</li> |
| 884 |
[% END %] |
| 885 |
</ol> |
| 886 |
</fieldset> |
| 887 |
|
| 888 |
[% UNLESS nodateenrolled && noopacnote && noborrowernotes %] |
| 889 |
<fieldset class="rows" id="memberentry_subscription"> |
| 890 |
<legend id="library_setup_lgd">Library set-up</legend><ol> |
| 891 |
[% UNLESS nodateenrolled %] |
| 892 |
<li> |
| 893 |
[% IF ( mandatorydateenrolled ) %] |
| 894 |
<label for="from" class="required"> |
| 895 |
[% ELSE %] |
| 896 |
<label for="from"> |
| 897 |
[% END %] |
| 898 |
Registration date: |
| 899 |
</label> |
| 900 |
[% IF ( dateformat == "metric" ) %] |
| 901 |
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled | html %]" class="datepickerfrom" /> |
| 902 |
[% ELSE %] |
| 903 |
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled | html %]" class="datepickerfrom" /> |
| 904 |
[% END %] |
| 905 |
[% IF ( mandatorydateenrolled ) %] |
| 906 |
<span class="required">Required</span> |
| 907 |
[% END %] |
| 908 |
[% IF ( ERROR_dateenrolled ) %] |
| 909 |
<span class="required">(Error)</span> |
| 910 |
[% END %] |
| 911 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 912 |
</li> |
| 913 |
[% END %] |
| 914 |
|
| 915 |
[% UNLESS nodateexpiry %] |
| 916 |
<li> |
| 917 |
[% ELSE %] |
| 918 |
<li style="display:none"> |
| 919 |
[% END %] |
| 920 |
[% IF ( mandatorydateexpiry ) %] |
| 921 |
<label for="to" class="required"> |
| 922 |
[% ELSE %] |
| 923 |
<label for="to"> |
| 924 |
[% END %] |
| 925 |
Expiry date (leave blank for auto calc): |
| 926 |
</label> |
| 927 |
[% IF ( dateformat == "metric" ) %] |
| 928 |
[% UNLESS ( opadd ) %] |
| 929 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" /> |
| 930 |
[% ELSE %] |
| 931 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" /> |
| 932 |
[% END %] |
| 933 |
[% ELSE %] |
| 934 |
[% UNLESS ( opadd ) %] |
| 935 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" /> |
| 936 |
[% ELSE %] |
| 937 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html %]" class="datepickerto" /> |
| 938 |
[% END %] |
| 939 |
[% END %] |
| 940 |
[% IF ( mandatorydateexpiry ) %] |
| 941 |
<span class="required">Required</span> |
| 942 |
[% END %] |
| 943 |
[% IF ( ERROR_dateexpiry ) %] |
| 944 |
<span class="required">(Error)</span> |
| 945 |
[% END %] |
| 946 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 947 |
</li> |
| 948 |
|
| 949 |
[% UNLESS noopacnote %] |
| 950 |
<li> |
| 951 |
[% IF ( mandatoryopacnote ) %] |
| 952 |
<label for="opacnote" class="required"> |
| 953 |
[% ELSE %] |
| 954 |
<label for="opacnote"> |
| 955 |
[% END %] |
| 956 |
OPAC note: |
| 957 |
</label> |
| 958 |
<textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote | html UNLESS opduplicate %]</textarea> |
| 959 |
<div class="hint">This message appears on this patron's user page in the OPAC</div> |
| 960 |
[% IF ( mandatoryopacnote ) %] |
| 961 |
<span class="required">Required</span> |
| 962 |
[% END %] |
| 963 |
</li> |
| 964 |
[% END %] |
| 965 |
|
| 966 |
[% UNLESS noborrowernotes %] |
| 967 |
<li> |
| 968 |
[% IF ( mandatoryborrowernotes ) %] |
| 969 |
<label for="borrowernotes" class="required"> |
| 970 |
[% ELSE %] |
| 971 |
<label for="borrowernotes"> |
| 972 |
[% END %] |
| 973 |
Circulation note: |
| 974 |
</label> |
| 975 |
<textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes | html UNLESS opduplicate %]</textarea> |
| 976 |
<div class="hint">This message displays when checking out to this patron</div> |
| 977 |
[% IF ( mandatoryborrowernotes ) %] |
| 978 |
<span class="required">Required</span> |
| 979 |
[% END %] |
| 980 |
</li> |
| 981 |
[% END %] |
| 982 |
</ol> |
| 983 |
</fieldset> |
| 984 |
[% END # hide fieldset %] |
| 985 |
|
| 986 |
[% UNLESS nouserid && nopassword %] |
| 987 |
<fieldset class="rows" id="memberentry_userid"> |
| 988 |
<legend id="opac_staff_login_lgd">OPAC/Staff login</legend><ol> |
| 989 |
[% UNLESS nouserid %] |
| 990 |
<li> |
| 991 |
[% IF ( mandatoryuserid ) %] |
| 992 |
<label for="userid" class="required"> |
| 993 |
[% ELSE %] |
| 994 |
<label for="userid"> |
| 995 |
[% END %] |
| 996 |
Username: |
| 997 |
</label> |
| 998 |
|
| 999 |
[% IF ( NoUpdateLogin ) %] |
| 1000 |
[% IF ( opduplicate ) %] |
| 1001 |
<input type="text" id="userid" name="userid" size="20" disabled="disabled" /> |
| 1002 |
[% ELSE %] |
| 1003 |
<input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid | html %]" /> |
| 1004 |
[% END %] |
| 1005 |
[% ELSE %] |
| 1006 |
[% IF ( opduplicate ) %] |
| 1007 |
<input type="text" id="userid" name="userid" size="20" value="" /> |
| 1008 |
[% ELSE %] |
| 1009 |
<input type="text" id="userid" name="userid" size="20" value="[% userid | html %]" /> |
| 1010 |
[% END %] |
| 1011 |
[% END %] |
| 1012 |
|
| 1013 |
[%# Dummy input to avoid Firefox from using userid/password saved for authentication %] |
| 1014 |
<input type="text" disabled="disabled" style="display:none" /> |
| 1015 |
|
| 1016 |
[% IF ( mandatoryuserid ) %] |
| 1017 |
<span class="required">Required</span> |
| 1018 |
[% END %] |
| 1019 |
</li> |
| 1020 |
[% END %] |
| 1021 |
|
| 1022 |
[% UNLESS nopassword %] |
| 1023 |
<li> |
| 1024 |
[% IF ( mandatorypassword ) %] |
| 1025 |
<label for="password" class="required"> |
| 1026 |
[% ELSE %] |
| 1027 |
<label for="password"> |
| 1028 |
[% END %] |
| 1029 |
Password: |
| 1030 |
</label> |
| 1031 |
[% IF ( opadd ) %] |
| 1032 |
[% IF ( NoUpdateLogin ) %] |
| 1033 |
[% IF ( opduplicate ) %] |
| 1034 |
<input type="password" id="password" name="password" size="20" disabled="disabled" /> |
| 1035 |
[% ELSE %] |
| 1036 |
<input type="password" id="password" name="password" size="20" disabled="disabled" value="[% password | html %]" /> |
| 1037 |
[% END %] |
| 1038 |
[% ELSE %] |
| 1039 |
[% IF ( opduplicate ) %] |
| 1040 |
<input type="password" id="password" name="password" size="20" /> |
| 1041 |
[% ELSE %] |
| 1042 |
<input type="password" id="password" name="password" size="20" value="[% password | html %]" /> |
| 1043 |
[% END %] |
| 1044 |
[% END %] |
| 1045 |
[% ELSE %] |
| 1046 |
|
| 1047 |
[% IF ( password ) %] |
| 1048 |
[% IF ( NoUpdateLogin ) %] |
| 1049 |
<input type="password" id="password" name="password" size="20" disabled="disabled" value="****" /> |
| 1050 |
[% ELSE %] |
| 1051 |
[% IF ( opduplicate ) %] |
| 1052 |
<input type="password" id="password" name="password" size="20" /> |
| 1053 |
[% ELSE %] |
| 1054 |
<input type="password" id="password" name="password" size="20" value="****" /> |
| 1055 |
[% END %] |
| 1056 |
[% END %] |
| 1057 |
[% ELSE %] |
| 1058 |
[% IF ( NoUpdateLogin ) %] |
| 1059 |
<input type="password" id="password" name="password" size="20" disabled="disabled" value="" /> |
| 1060 |
[% ELSE %] |
| 1061 |
<input type="password" id="password" name="password" size="20" value="" /> |
| 1062 |
[% END %] |
| 1063 |
[% END %] |
| 1064 |
[% END %] |
| 1065 |
[% IF ( mandatorypassword ) %] |
| 1066 |
<span class="required">Required</span> |
| 1067 |
[% END %] |
| 1068 |
[% IF ( ERROR_password_too_short ) %] |
| 1069 |
<span class="required">Password is too short</span> |
| 1070 |
[% END %] |
| 1071 |
[% IF ( ERROR_password_too_weak ) %] |
| 1072 |
<span class="required">Password is too weak</span> |
| 1073 |
[% END %] |
| 1074 |
[% IF ( ERROR_password_has_whitespaces ) %] |
| 1075 |
<span class="required">Password has leading or trailing whitespaces</span> |
| 1076 |
[% END %] |
| 1077 |
<div class="hint">Minimum password length: [% minPasswordLength | html %]</div> |
| 1078 |
</li> |
| 1079 |
|
| 1080 |
<li> |
| 1081 |
[% IF ( mandatorypassword ) %] |
| 1082 |
<label for="password2" class="required"> |
| 1083 |
[% ELSE %] |
| 1084 |
<label for="password2"> |
| 1085 |
[% END %] |
| 1086 |
Confirm password: |
| 1087 |
</label> |
| 1088 |
[% IF ( opadd ) %] |
| 1089 |
[% IF ( NoUpdateLogin ) %] |
| 1090 |
[% IF ( opduplicate ) %] |
| 1091 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" /> |
| 1092 |
[% ELSE %] |
| 1093 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="[% password | html %]" /> |
| 1094 |
[% END %] |
| 1095 |
[% ELSE %] |
| 1096 |
[% IF ( opduplicate ) %] |
| 1097 |
<input type="password" id="password2" name="password2" size="20" /> |
| 1098 |
[% ELSE %] |
| 1099 |
<input type="password" id="password2" name="password2" size="20" value="[% password | html %]" /> |
| 1100 |
[% END %] |
| 1101 |
[% END %] |
| 1102 |
[% ELSE %] |
| 1103 |
[% IF ( password ) %] |
| 1104 |
[% IF ( NoUpdateLogin ) %] |
| 1105 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="****" /> |
| 1106 |
[% ELSE %] |
| 1107 |
[% IF ( opduplicate ) %] |
| 1108 |
<input type="password" id="password2" name="password2" size="20" /> |
| 1109 |
[% ELSE %] |
| 1110 |
<input type="password" id="password2" name="password2" size="20" value="****" /> |
| 1111 |
[% END %] |
| 1112 |
[% END %] |
| 1113 |
[% ELSE %] |
| 1114 |
[% IF ( NoUpdateLogin ) %] |
| 1115 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="" /> |
| 1116 |
[% ELSE %] |
| 1117 |
<input type="password" id="password2" name="password2" size="20" value="" /> |
| 1118 |
[% END %] |
| 1119 |
[% END %] |
| 1120 |
[% END %] |
| 1121 |
|
| 1122 |
[% IF ( mandatorypassword ) %] |
| 1123 |
<span class="required">Required</span> |
| 1124 |
[% END %] |
| 1125 |
[% IF ( ERROR_password_mismatch ) %] |
| 1126 |
<span class="required">Passwords do not match</span> |
| 1127 |
[% END %] |
| 1128 |
</li> |
| 1129 |
</ol> |
| 1130 |
</fieldset> |
| 1131 |
[% END # hide fieldset %] |
| 1132 |
[% END %] |
| 992 |
|
1133 |
|
| 993 |
</li> |
1134 |
<!--this zones are not necessary in modif mode --> |
| 994 |
[% END %] |
1135 |
[% UNLESS ( opadd || opduplicate ) %] |
| 995 |
|
1136 |
<fieldset class="rows" id="memberentry_account_flags"> |
| 996 |
</ol> |
1137 |
<legend id="account_flags_lgd">Patron account flags</legend> |
| 997 |
</fieldset> |
1138 |
<ol class="radio"> |
| 998 |
|
1139 |
[% FOREACH flagloo IN flagloop %] |
| 999 |
<fieldset class="rows" id="memberentry_restrictions"> |
1140 |
<li> |
| 1000 |
<legend id="restrictions_lgd">Patron restrictions</legend> |
1141 |
<label class="radio" for="yes[% flagloo.name | html %]"> |
| 1001 |
|
1142 |
[% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no address:[% END %] |
| 1002 |
[% IF ( debarments ) %] |
1143 |
[% IF ( flagloo.key == 'lost' ) %]Lost card:[% END %] |
| 1003 |
<table> |
1144 |
</label> |
| 1004 |
<thead> |
1145 |
[% IF CAN_user_circulate_manage_restrictions %] |
| 1005 |
<tr> |
1146 |
<label for="yes[% flagloo.name | html %]"> |
| 1006 |
<th>Type</th> |
1147 |
[% IF ( flagloo.yes ) %] |
| 1007 |
<th>Comment</th> |
1148 |
<input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" checked="checked" /> |
| 1008 |
<th>Expiration</th> |
1149 |
[% ELSE %] |
| 1009 |
<th>Created</th> |
1150 |
<input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" /> |
| 1010 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
1151 |
[% END %] |
| 1011 |
<th>Remove?</th> |
1152 |
Yes |
| 1012 |
[% END %] |
1153 |
</label> |
| 1013 |
</tr> |
1154 |
<label for="no[% flagloo.name | html %]"> |
| 1014 |
</thead> |
1155 |
[% IF ( flagloo.no ) %] |
| 1015 |
|
1156 |
<input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" checked="checked"/> |
| 1016 |
<tbody> |
1157 |
[% ELSE %] |
| 1017 |
[% FOREACH d IN debarments %] |
1158 |
<input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" /> |
| 1018 |
<tr> |
1159 |
[% END %] |
| 1019 |
<td>[% d.type | html %]</td> |
1160 |
No |
| 1020 |
<td> |
1161 |
</label> |
| 1021 |
[% IF d.comment.search('OVERDUES_PROCESS') %] |
1162 |
[% ELSE %] |
| 1022 |
Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') | $raw %] |
1163 |
[% IF flagloo.yes %]Yes[% ELSE %]No[% END %] |
|
|
1164 |
[% END %] |
| 1165 |
</li> |
| 1166 |
[% END %] |
| 1167 |
</ol> |
| 1168 |
</fieldset> |
| 1169 |
|
| 1170 |
<fieldset class="rows" id="memberentry_restrictions"> |
| 1171 |
<legend id="restrictions_lgd">Patron restrictions</legend> |
| 1172 |
[% IF ( debarments ) %] |
| 1173 |
<table> |
| 1174 |
<thead> |
| 1175 |
<tr> |
| 1176 |
<th>Type</th> |
| 1177 |
<th>Comment</th> |
| 1178 |
<th>Expiration</th> |
| 1179 |
<th>Created</th> |
| 1180 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
| 1181 |
<th>Remove?</th> |
| 1182 |
[% END %] |
| 1183 |
</tr> |
| 1184 |
</thead> |
| 1185 |
<tbody> |
| 1186 |
[% FOREACH d IN debarments %] |
| 1187 |
<tr> |
| 1188 |
<td>[% d.type | html %]</td> |
| 1189 |
<td> |
| 1190 |
[% IF d.comment.search('OVERDUES_PROCESS') %] |
| 1191 |
Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') | $raw %] |
| 1192 |
[% ELSE %] |
| 1193 |
[% d.comment | $raw %] |
| 1194 |
[% END %] |
| 1195 |
</td> |
| 1196 |
<td> |
| 1197 |
[% IF d.expiration %] |
| 1198 |
[% d.expiration | $KohaDates %] |
| 1199 |
[% ELSE %] |
| 1200 |
<i>Indefinite</i> |
| 1201 |
[% END %] |
| 1202 |
</td> |
| 1203 |
<td>[% d.created | $KohaDates %]</td> |
| 1204 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
| 1205 |
<td> |
| 1206 |
<input type="checkbox" id="debarment_[% d.borrower_debarment_id | html %]" name="remove_debarment" value="[% d.borrower_debarment_id | html %]" /> |
| 1207 |
</td> |
| 1208 |
[% END %] |
| 1209 |
</tr> |
| 1210 |
[% END %] |
| 1211 |
</tbody> |
| 1212 |
</table> |
| 1023 |
[% ELSE %] |
1213 |
[% ELSE %] |
| 1024 |
[% d.comment | $raw %] |
1214 |
<p>Patron is currently unrestricted.</p> |
| 1025 |
[% END %] |
1215 |
[% END %] |
| 1026 |
</td> |
1216 |
|
| 1027 |
<td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td> |
|
|
| 1028 |
<td>[% d.created | $KohaDates %]</td> |
| 1029 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
1217 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
| 1030 |
<td> |
1218 |
<p><a href="#" id="add_manual_restriction">Add manual restriction</a></p> |
| 1031 |
<input type="checkbox" id="debarment_[% d.borrower_debarment_id | html %]" name="remove_debarment" value="[% d.borrower_debarment_id | html %]" /> |
1219 |
<fieldset id="manual_restriction_form"> |
| 1032 |
</td> |
1220 |
<input type="hidden" id="add_debarment" name="add_debarment" value="0" /> |
|
|
1221 |
<legend id="manual_restriction_lgd">Add manual restriction</legend> |
| 1222 |
<ol> |
| 1223 |
<li> |
| 1224 |
<label for="debarred_comment">Comment: </label> |
| 1225 |
<input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" /> |
| 1226 |
</li> |
| 1227 |
<li> |
| 1228 |
<label for="debarred_expiration">Expiration: </label> |
| 1229 |
<input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" type="text" /> |
| 1230 |
<a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a> |
| 1231 |
</li> |
| 1232 |
</ol> |
| 1233 |
<p> |
| 1234 |
<a class="cancel" id="cancel_manual_restriction" href="#">Cancel</a> |
| 1235 |
</p> |
| 1236 |
</fieldset> |
| 1033 |
[% END %] |
1237 |
[% END %] |
| 1034 |
</tr> |
1238 |
</fieldset> |
| 1035 |
[% END %] |
1239 |
[% END %] |
| 1036 |
</tbody> |
1240 |
[% END %] |
| 1037 |
</table> |
|
|
| 1038 |
[% ELSE %] |
| 1039 |
<p>Patron is currently unrestricted.</p> |
| 1040 |
[% END %] |
| 1041 |
|
| 1042 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
| 1043 |
<p><a href="#" id="add_manual_restriction">Add manual restriction</a></p> |
| 1044 |
<fieldset id="manual_restriction_form"> |
| 1045 |
<input type="hidden" id="add_debarment" name="add_debarment" value="0" /> |
| 1046 |
<legend id="manual_restriction_lgd">Add manual restriction</legend> |
| 1047 |
<ol> |
| 1048 |
<li><label for="debarred_comment">Comment: </label><input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" /></li> |
| 1049 |
<li><label for="debarred_expiration">Expiration: </label><input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" type="text" /> |
| 1050 |
<a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a></li> |
| 1051 |
|
| 1052 |
</ol> |
| 1053 |
<p> |
| 1054 |
<a class="cancel" id="cancel_manual_restriction" href="#">Cancel</a> |
| 1055 |
</p> |
| 1056 |
</fieldset> |
| 1057 |
[% END %] |
| 1058 |
</fieldset> |
| 1059 |
[% END %] |
| 1060 |
|
| 1061 |
[% END %] |
| 1062 |
|
1241 |
|
| 1063 |
[% IF ( step_7 ) %] |
1242 |
[% IF ( step_7 ) %] |
| 1064 |
[% IF Koha.Preference('HouseboundModule') %] |
1243 |
[% IF Koha.Preference('HouseboundModule') %] |
| 1065 |
<fieldset class="rows" id="memberentry_housebound_roles"> |
1244 |
<fieldset class="rows" id="memberentry_housebound_roles"> |
| 1066 |
<legend id="housebound_roles">Housebound roles</legend> |
1245 |
<legend id="housebound_roles">Housebound roles</legend> |
| 1067 |
<ol class="radio"> |
1246 |
<ol class="radio"> |
| 1068 |
<li> |
1247 |
<li> |
| 1069 |
<label class="radio" for="housebound_chooser"> |
1248 |
<label class="radio" for="housebound_chooser"> |
| 1070 |
Chooser: |
1249 |
Chooser: |
| 1071 |
</label> |
1250 |
</label> |
| 1072 |
[% IF ( housebound_role.housebound_chooser == 1 ) %] |
1251 |
[% IF ( housebound_role.housebound_chooser == 1 ) %] |
| 1073 |
<label for="yes_housebound_chooser">Yes </label> |
1252 |
<label for="yes_housebound_chooser">Yes </label> |
| 1074 |
<input type="radio" id="yes_housebound_chooser" |
1253 |
<input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" checked="checked" /> |
| 1075 |
name="housebound_chooser" value="1" |
1254 |
<label for="no_housebound_chooser">No </label> |
| 1076 |
checked="checked" /> |
1255 |
<input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" /> |
| 1077 |
<label for="no_housebound_chooser">No </label> |
1256 |
[% ELSE %] |
| 1078 |
<input type="radio" id="no_housebound_chooser" |
1257 |
<label for="yes_housebound_chooser">Yes </label> |
| 1079 |
name="housebound_chooser" value="0" /> |
1258 |
<input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" /> |
| 1080 |
[% ELSE %] |
1259 |
<label for="no_housebound_chooser">No </label> |
| 1081 |
<label for="yes_housebound_chooser">Yes </label> |
1260 |
<input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" checked="checked" /> |
| 1082 |
<input type="radio" id="yes_housebound_chooser" |
1261 |
[% END %] |
| 1083 |
name="housebound_chooser" value="1" /> |
1262 |
</li> |
| 1084 |
<label for="no_housebound_chooser">No </label> |
1263 |
<li> |
| 1085 |
<input type="radio" id="no_housebound_chooser" |
1264 |
<label class="radio" for="housebound_deliverer">Deliverer:</label> |
| 1086 |
name="housebound_chooser" value="0" |
1265 |
[% IF ( housebound_role.housebound_deliverer == 1 ) %] |
| 1087 |
checked="checked" /> |
1266 |
<label for="yes_housebound_deliverer">Yes </label> |
| 1088 |
[% END %] |
1267 |
<input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" checked="checked" /> |
| 1089 |
</li> |
1268 |
<label for="no_housebound_deliverer">No </label> |
| 1090 |
<li> |
1269 |
<input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" /> |
| 1091 |
<label class="radio" for="housebound_deliverer">Deliverer:</label> |
1270 |
[% ELSE %] |
| 1092 |
[% IF ( housebound_role.housebound_deliverer == 1 ) %] |
1271 |
<label for="yes_housebound_deliverer">Yes </label> |
| 1093 |
<label for="yes_housebound_deliverer">Yes </label> |
1272 |
<input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" /> |
| 1094 |
<input type="radio" id="yes_housebound_deliverer" |
1273 |
<label for="no_housebound_deliverer">No </label> |
| 1095 |
name="housebound_deliverer" value="1" |
1274 |
<input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" checked="checked" /> |
| 1096 |
checked="checked" /> |
1275 |
[% END %] |
| 1097 |
<label for="no_housebound_deliverer">No </label> |
1276 |
</li> |
| 1098 |
<input type="radio" id="no_housebound_deliverer" |
1277 |
</ol> |
| 1099 |
name="housebound_deliverer" value="0" /> |
1278 |
</fieldset> |
| 1100 |
[% ELSE %] |
1279 |
[% END # hide fieldset %] |
| 1101 |
<label for="yes_housebound_deliverer">Yes </label> |
1280 |
[% END # IF step_7 %] |
| 1102 |
<input type="radio" id="yes_housebound_deliverer" |
1281 |
|
| 1103 |
name="housebound_deliverer" value="1" /> |
1282 |
[% IF ( step_4 ) %] |
| 1104 |
<label for="no_housebound_deliverer">No </label> |
1283 |
[% IF Koha.Preference('ExtendedPatronAttributes') %] |
| 1105 |
<input type="radio" id="no_housebound_deliverer" |
1284 |
[% UNLESS ( no_patron_attribute_types ) %] |
| 1106 |
name="housebound_deliverer" value="0" |
1285 |
<fieldset class="rows" id="memberentry_patron_attributes"> |
| 1107 |
checked="checked" /> |
1286 |
<legend id="patron_attributes_lgd">Additional attributes and identifiers</legend> |
| 1108 |
[% END %] |
1287 |
<input type="hidden" name="setting_extended_patron_attributes" value="1" /> |
| 1109 |
</li> |
1288 |
[% FOREACH pa_loo IN patron_attributes %] |
| 1110 |
</ol> |
1289 |
<ol class="attributes_table"> |
| 1111 |
</fieldset> |
1290 |
[% IF pa_loo.class %] |
| 1112 |
[% END # hide fieldset %] |
1291 |
<fieldset id="aai_[% pa_loo.class | html %]"> |
| 1113 |
[% END # IF step_7 %] |
1292 |
<legend id="[% pa_loo.class | html %]_lgd">[% pa_loo.lib | html %]</legend> |
| 1114 |
|
1293 |
[% END %] |
| 1115 |
[% IF ( step_4 ) %] |
1294 |
[% FOREACH patron_attribute IN pa_loo.items %] |
| 1116 |
[% IF Koha.Preference('ExtendedPatronAttributes') %][% UNLESS ( no_patron_attribute_types ) %] |
1295 |
<li data-category_code="[% patron_attribute.category_code | html %]"> |
| 1117 |
<fieldset class="rows" id="memberentry_patron_attributes"> |
1296 |
<label for="[% patron_attribute.form_id | html %]"> |
| 1118 |
<legend id="patron_attributes_lgd">Additional attributes and identifiers</legend> |
1297 |
[% patron_attribute.description | html %]: |
| 1119 |
<input type="hidden" name="setting_extended_patron_attributes" value="1" /> |
1298 |
</label> |
| 1120 |
[% FOREACH pa_loo IN patron_attributes %] |
1299 |
[% IF ( patron_attribute.use_dropdown ) %] |
| 1121 |
<ol class="attributes_table"> |
1300 |
<select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]"> |
| 1122 |
[% IF pa_loo.class %] |
1301 |
<option value=""></option> |
| 1123 |
<fieldset id="aai_[% pa_loo.class | html %]"> |
1302 |
[% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %] |
| 1124 |
<legend id="[% pa_loo.class | html %]_lgd">[% pa_loo.lib | html %]</legend> |
1303 |
[% IF auth_val_loo.authorised_value == patron_attribute.value %] |
| 1125 |
[% END %] |
1304 |
<option value="[% auth_val_loo.authorised_value | html %]" selected="selected"> |
| 1126 |
[% FOREACH patron_attribute IN pa_loo.items %] |
1305 |
[% auth_val_loo.lib | html %] |
| 1127 |
<li data-category_code="[% patron_attribute.category_code | html %]"> |
1306 |
</option> |
| 1128 |
<label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label> |
1307 |
[% ELSE %] |
| 1129 |
[% IF ( patron_attribute.use_dropdown ) %] |
1308 |
<option value="[% auth_val_loo.authorised_value | html %]" > |
| 1130 |
<select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]"> |
1309 |
[% auth_val_loo.lib | html %] |
| 1131 |
<option value=""></option> |
1310 |
</option> |
| 1132 |
[% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %] |
1311 |
[% END %] |
| 1133 |
[% IF auth_val_loo.authorised_value == patron_attribute.value %] |
1312 |
[% END %] |
| 1134 |
<option value="[% auth_val_loo.authorised_value | html %]" selected="selected"> |
1313 |
</select> |
| 1135 |
[% auth_val_loo.lib | html %] |
1314 |
[% ELSE %] |
| 1136 |
</option> |
1315 |
<textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea> |
| 1137 |
[% ELSE %] |
1316 |
[% END %] |
| 1138 |
<option value="[% auth_val_loo.authorised_value | html %]" > |
1317 |
<input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" /> |
| 1139 |
[% auth_val_loo.lib | html %] |
1318 |
<a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a> |
| 1140 |
</option> |
1319 |
[% IF ( patron_attribute.repeatable ) %] |
|
|
1320 |
<a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a> |
| 1321 |
[% END %] |
| 1322 |
</li> |
| 1323 |
[% END %] |
| 1324 |
[% IF pa_loo.class %]</fieldset>[% END %] |
| 1325 |
</ol> |
| 1326 |
[% END %] |
| 1327 |
</fieldset> |
| 1141 |
[% END %] |
1328 |
[% END %] |
| 1142 |
[% END %] |
1329 |
[% END %] |
| 1143 |
</select> |
1330 |
[% END %] |
| 1144 |
[% ELSE %] |
1331 |
|
| 1145 |
<textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea> |
1332 |
[% IF ( step_5 ) %] |
| 1146 |
[% END %] |
1333 |
[% IF ( EnhancedMessagingPreferences ) %] |
| 1147 |
<input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" /> |
1334 |
<fieldset class="rows" id="memberentry_messaging_prefs"> |
| 1148 |
<a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a> |
1335 |
<legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend> |
| 1149 |
[% IF ( patron_attribute.repeatable ) %] |
1336 |
<div id="messaging_prefs_loading" class="form-message" style="display:none"> |
| 1150 |
<a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a> |
1337 |
<img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading new messaging defaults |
|
|
1338 |
</div> |
| 1339 |
<input type="hidden" name="setting_messaging_prefs" value="1" /> |
| 1340 |
[% INCLUDE 'messaging-preference-form.inc' %] |
| 1341 |
[% IF ( SMSSendDriver ) %] |
| 1342 |
<p> |
| 1343 |
<label for="SMSnumber">SMS number:</label> |
| 1344 |
<input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber | html %]" /> |
| 1345 |
<span class="hint">SMS number should be in the format 1234567890 or +11234567890</span> |
| 1346 |
</p> |
| 1347 |
[% UNLESS nosms_provider_id %] |
| 1348 |
<p> |
| 1349 |
<label for="sms_provider_id">SMS provider:</label> |
| 1350 |
<select id="sms_provider_id" name="sms_provider_id"> |
| 1351 |
<option value="">Unknown</option> |
| 1352 |
[% FOREACH s IN sms_providers %] |
| 1353 |
[% IF s.id == sms_provider_id %] |
| 1354 |
<option value="[% s.id | html %]" selected="selected">[% s.name | html %]</option> |
| 1355 |
[% ELSE %] |
| 1356 |
<option value="[% s.id | html %]">[% s.name | html %]</option> |
| 1357 |
[% END %] |
| 1358 |
[% END %] |
| 1359 |
</select> |
| 1360 |
</p> |
| 1361 |
[% END %] |
| 1362 |
[% END %] |
| 1363 |
</fieldset> |
| 1364 |
[% END %] |
| 1365 |
[% END %] |
| 1366 |
</form> |
| 1367 |
|
| 1368 |
[% IF quickadd && opadd && !check_member %] |
| 1369 |
<form id="quick_add_form" class="toggler"> |
| 1370 |
<fieldset class="rows quick_add"><legend>Quick add</legend> |
| 1371 |
<ol id="quick_add_list"> |
| 1372 |
</ol> |
| 1373 |
</fieldset> |
| 1374 |
</form> |
| 1151 |
[% END %] |
1375 |
[% END %] |
| 1152 |
</li> |
|
|
| 1153 |
[% END %] |
| 1154 |
[% IF pa_loo.class %]</fieldset>[% END %] |
| 1155 |
</ol> |
| 1156 |
[% END %] |
| 1157 |
</fieldset> |
| 1158 |
[% END %][% END %][% END %] |
| 1159 |
|
| 1160 |
[% IF ( step_5 ) %][% IF ( EnhancedMessagingPreferences ) %] |
| 1161 |
<fieldset class="rows" id="memberentry_messaging_prefs"> |
| 1162 |
<legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend> |
| 1163 |
<div id="messaging_prefs_loading" class="form-message" style="display:none"> |
| 1164 |
<img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading new messaging defaults |
| 1165 |
</div> |
| 1166 |
<input type="hidden" name="setting_messaging_prefs" value="1" /> |
| 1167 |
[% INCLUDE 'messaging-preference-form.inc' %] |
| 1168 |
[% IF ( SMSSendDriver ) %] |
| 1169 |
<p><label for="SMSnumber">SMS number:</label> |
| 1170 |
<input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber | html %]" /> |
| 1171 |
<span class="hint">SMS number should be in the format 1234567890 or +11234567890</span> |
| 1172 |
</p> |
| 1173 |
[% UNLESS nosms_provider_id %] |
| 1174 |
<p> |
| 1175 |
<label for="sms_provider_id">SMS provider:</label> |
| 1176 |
<select id="sms_provider_id" name="sms_provider_id"> |
| 1177 |
<option value="">Unknown</option> |
| 1178 |
[% FOREACH s IN sms_providers %] |
| 1179 |
[% IF s.id == sms_provider_id %] |
| 1180 |
<option value="[% s.id | html %]" selected="selected">[% s.name | html %]</option> |
| 1181 |
[% ELSE %] |
| 1182 |
<option value="[% s.id | html %]">[% s.name | html %]</option> |
| 1183 |
[% END %] |
| 1184 |
[% END %] |
| 1185 |
</select> |
| 1186 |
</p> |
| 1187 |
[% END %] |
| 1188 |
[% END %] |
| 1189 |
</fieldset> |
| 1190 |
[% END %] [% END %] |
| 1191 |
|
| 1192 |
</form> |
| 1193 |
|
| 1194 |
[% IF quickadd && opadd && !check_member %] |
| 1195 |
<form id="quick_add_form" class="toggler"> |
| 1196 |
<fieldset class="rows quick_add"><legend>Quick add</legend> |
| 1197 |
<ol id="quick_add_list"> |
| 1198 |
</ol> |
| 1199 |
</fieldset> |
| 1200 |
</form> |
| 1201 |
[% END %] |
| 1202 |
|
1376 |
|
| 1203 |
[% END %] |
1377 |
[% END %] |
| 1204 |
</main> |
1378 |
</main> |
| 1205 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
1379 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
| 1206 |
|
1380 |
|
| 1207 |
[% UNLESS ( opadd ) %] |
1381 |
[% UNLESS ( opadd ) %] |
| 1208 |
<div class="col-sm-2 col-sm-pull-10"> |
1382 |
<div class="col-sm-2 col-sm-pull-10"> |
| 1209 |
<aside> |
1383 |
<aside> |
| 1210 |
[% INCLUDE 'circ-menu.inc' %] |
1384 |
[% INCLUDE 'circ-menu.inc' %] |
| 1211 |
</aside> |
1385 |
</aside> |
| 1212 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
1386 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
| 1213 |
[% END %] |
1387 |
[% END %] |
| 1214 |
</div> <!-- /.row --> |
1388 |
</div> <!-- /.row --> |
| 1215 |
|
1389 |
|
| 1216 |
[% MACRO jsinclude BLOCK %] |
1390 |
[% MACRO jsinclude BLOCK %] |
| 1217 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
1391 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
|
Lines 1229-1236
Link Here
|
| 1229 |
} |
1403 |
} |
| 1230 |
var Sticky; |
1404 |
var Sticky; |
| 1231 |
$(document).ready(function() { |
1405 |
$(document).ready(function() { |
| 1232 |
|
1406 |
$("#saverecord").css({ 'margin-left': 0 }); |
| 1233 |
$("#saverecord").css({ 'margin-left': 0 }); |
|
|
| 1234 |
|
1407 |
|
| 1235 |
Sticky = $("#toolbar"); |
1408 |
Sticky = $("#toolbar"); |
| 1236 |
Sticky.hcSticky({ |
1409 |
Sticky.hcSticky({ |
| 1237 |
- |
|
|