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