|
Lines 122-128
Link Here
|
| 122 |
|
122 |
|
| 123 |
<button type="submit" id="not-duplicate" class="new"><i class="fa fa-plus"></i> Not a duplicate. Save as new record</button> |
123 |
<button type="submit" id="not-duplicate" class="new"><i class="fa fa-plus"></i> Not a duplicate. Save as new record</button> |
| 124 |
</div> |
124 |
</div> |
| 125 |
[% END %] |
125 |
[% END # /IF check_member %] |
| 126 |
|
126 |
|
| 127 |
[% IF ( nok ) %] |
127 |
[% IF ( nok ) %] |
| 128 |
<div class="dialog alert"> |
128 |
<div class="dialog alert"> |
|
Lines 178-185
Link Here
|
| 178 |
<li id="ERROR_bad_email_alternative">The alternative email is invalid.</li> |
178 |
<li id="ERROR_bad_email_alternative">The alternative email is invalid.</li> |
| 179 |
[% END %] |
179 |
[% END %] |
| 180 |
</ul> |
180 |
</ul> |
| 181 |
</div> |
181 |
</div> <!-- /.dialog.alert --> |
| 182 |
[% END %] |
182 |
[% END # /IF nok %] |
| 183 |
|
183 |
|
| 184 |
|
184 |
|
| 185 |
<div id="toolbar" class="btn-toolbar"> |
185 |
<div id="toolbar" class="btn-toolbar"> |
|
Lines 195-202
Link Here
|
| 195 |
[% END %] |
195 |
[% END %] |
| 196 |
<i class="fa fa-times"></i> Cancel |
196 |
<i class="fa fa-times"></i> Cancel |
| 197 |
</a> |
197 |
</a> |
| 198 |
[% END %] |
198 |
[% END # /UNLESS check_member %] |
| 199 |
</div> |
199 |
</div> <!-- /#toolbar --> |
| 200 |
|
200 |
|
| 201 |
<form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class="toggler" > |
201 |
<form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class="toggler" > |
| 202 |
[% UNLESS ( check_member ) %] |
202 |
[% UNLESS ( check_member ) %] |
|
Lines 226-232
Link Here
|
| 226 |
<input type="hidden" name="cardnumber" value="[% cardnumber | html %]" /> |
226 |
<input type="hidden" name="cardnumber" value="[% cardnumber | html %]" /> |
| 227 |
[% END %] |
227 |
[% END %] |
| 228 |
[% END %] |
228 |
[% END %] |
| 229 |
[% END %] |
229 |
[% END # /IF opadd %] |
| 230 |
|
230 |
|
| 231 |
[% IF ( step_1 ) %] |
231 |
[% IF ( step_1 ) %] |
| 232 |
[% UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] |
232 |
[% UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] |
|
Lines 257-265
Link Here
|
| 257 |
<span class="required">Required</span> |
257 |
<span class="required">Required</span> |
| 258 |
[% END %] |
258 |
[% END %] |
| 259 |
</li> |
259 |
</li> |
| 260 |
[% END %] |
260 |
[% END # /IF BorrowersTitles %] |
| 261 |
[% END %] |
261 |
[% END # /UNLESS notitle %] |
| 262 |
[% END %] |
262 |
[% END # /UNLESS I %] |
| 263 |
|
263 |
|
| 264 |
[% UNLESS nosurname %] |
264 |
[% UNLESS nosurname %] |
| 265 |
<li> |
265 |
<li> |
|
Lines 274-280
Link Here
|
| 274 |
<label for="surname"> |
274 |
<label for="surname"> |
| 275 |
[% END %] |
275 |
[% END %] |
| 276 |
Surname: </label> |
276 |
Surname: </label> |
| 277 |
[% END %] |
277 |
[% END # /IF I %] |
| 278 |
|
278 |
|
| 279 |
[% IF ( uppercasesurnames ) %] |
279 |
[% IF ( uppercasesurnames ) %] |
| 280 |
<input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% surname | html %]" /> |
280 |
<input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% surname | html %]" /> |
|
Lines 283-289
Link Here
|
| 283 |
[% END %] |
283 |
[% END %] |
| 284 |
[% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %] |
284 |
[% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %] |
| 285 |
</li> |
285 |
</li> |
| 286 |
[% END %] |
286 |
[% END # /UNLESS nosurname %] |
| 287 |
|
287 |
|
| 288 |
[% UNLESS ( I ) %] |
288 |
[% UNLESS ( I ) %] |
| 289 |
[% UNLESS nofirstname %] |
289 |
[% UNLESS nofirstname %] |
|
Lines 298-304
Link Here
|
| 298 |
<input type="text" id="firstname" name="firstname" size="20" value="[% firstname | html UNLESS opduplicate %]" /> |
298 |
<input type="text" id="firstname" name="firstname" size="20" value="[% firstname | html UNLESS opduplicate %]" /> |
| 299 |
[% IF ( mandatoryfirstname ) %]<span class="required">Required</span>[% END %] |
299 |
[% IF ( mandatoryfirstname ) %]<span class="required">Required</span>[% END %] |
| 300 |
</li> |
300 |
</li> |
| 301 |
[% END %] |
301 |
[% END # /UNLESS nofirstname %] |
| 302 |
[% UNLESS nodateofbirth %] |
302 |
[% UNLESS nodateofbirth %] |
| 303 |
<li> |
303 |
<li> |
| 304 |
[% IF ( mandatorydateofbirth ) %] |
304 |
[% IF ( mandatorydateofbirth ) %] |
|
Lines 313-319
Link Here
|
| 313 |
[% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %] |
313 |
[% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %] |
| 314 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
314 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 315 |
</li> |
315 |
</li> |
| 316 |
[% END %] |
316 |
[% END # /UNLESS nodateofbirth %] |
| 317 |
[% UNLESS noinitials %] |
317 |
[% UNLESS noinitials %] |
| 318 |
<li> |
318 |
<li> |
| 319 |
[% IF ( mandatoryinitials ) %] |
319 |
[% IF ( mandatoryinitials ) %] |
|
Lines 326-333
Link Here
|
| 326 |
<input type="text" id="initials" name="initials" size="20" value="[% initials | html UNLESS opduplicate %]" /> |
326 |
<input type="text" id="initials" name="initials" size="20" value="[% initials | html UNLESS opduplicate %]" /> |
| 327 |
[% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %] |
327 |
[% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %] |
| 328 |
</li> |
328 |
</li> |
| 329 |
[% END %] |
329 |
[% END # /UNLESS noinitials %] |
| 330 |
[% END %] |
330 |
[% END # /UNLESS I %] |
| 331 |
|
331 |
|
| 332 |
[% UNLESS noothernames %] |
332 |
[% UNLESS noothernames %] |
| 333 |
<li> |
333 |
<li> |
|
Lines 342-348
Link Here
|
| 342 |
[% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %] |
342 |
[% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %] |
| 343 |
[% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %] |
343 |
[% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %] |
| 344 |
</li> |
344 |
</li> |
| 345 |
[% END %] |
345 |
[% END # /UNLESS noothernames %] |
| 346 |
|
346 |
|
| 347 |
[% UNLESS ( I ) %] |
347 |
[% UNLESS ( I ) %] |
| 348 |
[% UNLESS nosex %] |
348 |
[% UNLESS nosex %] |
|
Lines 367-379
Link Here
|
| 367 |
<label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" /> |
367 |
<label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" /> |
| 368 |
<label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" /> |
368 |
<label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" /> |
| 369 |
<label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> |
369 |
<label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> |
| 370 |
[% END %] |
370 |
[% END # /UNLESS opduplicate %] |
| 371 |
</li> |
371 |
</li> |
| 372 |
[% END %] |
372 |
[% END # /UNLESS nosex %] |
| 373 |
[% END %] |
373 |
[% END # /UNLESS I %] |
| 374 |
</ol> |
374 |
</ol> |
| 375 |
</fieldset> |
375 |
</fieldset> |
| 376 |
[% END # hide fieldset %] |
376 |
[% END # /UNLESS notitle && nosurname && nofirstname... %] |
| 377 |
|
377 |
|
| 378 |
[% IF show_guarantor || guarantor %] |
378 |
[% IF show_guarantor || guarantor %] |
| 379 |
[% SET possible_relationships = Koha.Preference('borrowerRelationship') %] |
379 |
[% SET possible_relationships = Koha.Preference('borrowerRelationship') %] |
|
Lines 422-431
Link Here
|
| 422 |
<label for="delete_guarantor-[% r.id | uri %]">Remove: </label> |
422 |
<label for="delete_guarantor-[% r.id | uri %]">Remove: </label> |
| 423 |
<input type="checkbox" id="delete_guarantor-[% r.id | uri %]" name="delete_guarantor" value="[% r.id | html %]" /> |
423 |
<input type="checkbox" id="delete_guarantor-[% r.id | uri %]" name="delete_guarantor" value="[% r.id | html %]" /> |
| 424 |
</li> |
424 |
</li> |
| 425 |
[% END %] |
425 |
[% END # /IF category_type %] |
| 426 |
</ol> |
426 |
</ol> |
| 427 |
</fieldset> |
427 |
</fieldset> |
| 428 |
[% END # END relationships foreach %] |
428 |
[% END # END FOREACH r %] |
| 429 |
</span> |
429 |
</span> |
| 430 |
|
430 |
|
| 431 |
<fieldset class="rows guarantor" id="guarantor_template"> |
431 |
<fieldset class="rows guarantor" id="guarantor_template"> |
|
Lines 485-491
Link Here
|
| 485 |
</select> |
485 |
</select> |
| 486 |
<div class="hint">Allow guarantors of this patron to view this patron's checkouts from the OPAC</div> |
486 |
<div class="hint">Allow guarantors of this patron to view this patron's checkouts from the OPAC</div> |
| 487 |
</li> |
487 |
</li> |
| 488 |
[% END %] |
488 |
[% END # /IF relationships %] |
| 489 |
[% IF relationships && Koha.Preference('AllowStaffToSetFinesVisibilityForGuarantor') %] |
489 |
[% IF relationships && Koha.Preference('AllowStaffToSetFinesVisibilityForGuarantor') %] |
| 490 |
<li> |
490 |
<li> |
| 491 |
<label for="privacy_guarantor_fines">Show fines to guarantors</label> |
491 |
<label for="privacy_guarantor_fines">Show fines to guarantors</label> |
|
Lines 500-509
Link Here
|
| 500 |
</select> |
500 |
</select> |
| 501 |
<div class="hint">Allow guarantors of this patron to view this patron's fines from the OPAC</div> |
501 |
<div class="hint">Allow guarantors of this patron to view this patron's fines from the OPAC</div> |
| 502 |
</li> |
502 |
</li> |
| 503 |
[% END %] |
503 |
[% END # /IF relationships %] |
| 504 |
</ol> |
504 |
</ol> |
| 505 |
</fieldset> |
505 |
</fieldset> |
| 506 |
[% END %] |
506 |
[% END # /IF show_guarantor %] |
| 507 |
|
507 |
|
| 508 |
[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] |
508 |
[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] |
| 509 |
[% IF Koha.Preference( 'AddressFormat' ) %] |
509 |
[% IF Koha.Preference( 'AddressFormat' ) %] |
|
Lines 513-1305
Link Here
|
| 513 |
|
513 |
|
| 514 |
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %] |
514 |
[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %] |
| 515 |
<fieldset class="rows" id="memberentry_contact"> |
515 |
<fieldset class="rows" id="memberentry_contact"> |
| 516 |
<legend id="contact_lgd">Contact</legend><ol> |
516 |
<legend id="contact_lgd">Contact</legend> |
| 517 |
|
517 |
<ol> |
| 518 |
[% UNLESS nocontactname %] |
|
|
| 519 |
<li> |
| 520 |
[% IF ( mandatorycontactname ) %] |
| 521 |
<label for="contactname" class="required"> |
| 522 |
[% ELSE %] |
| 523 |
<label for="contactname"> |
| 524 |
[% END %] |
| 525 |
Guarantor surname: |
| 526 |
</label> |
| 527 |
<input type="text" id="contactname" name="contactname" value="[% contactname | html %]" /> |
| 528 |
[% IF ( mandatorycontactname ) %]<span class="required">Required</span>[% END %] |
| 529 |
<div class="hint">Non-patron guarantor surname</div> |
| 530 |
</li> |
| 531 |
[% END %] |
| 532 |
|
| 533 |
[% UNLESS nocontactfirstname %] |
| 534 |
<li> |
| 535 |
[% IF ( mandatorycontactfirstname ) %] |
| 536 |
<label for="contactfirstname" class="required"> |
| 537 |
[% ELSE %] |
| 538 |
<label for="contactfirstname"> |
| 539 |
[% END %] |
| 540 |
Guarantor first name: |
| 541 |
</label> |
| 542 |
<input type="text" id="contactfirstname" name="contactfirstname" value="[% contactfirstname | html %]" /> |
| 543 |
[% IF ( mandatorycontactfirstname ) %]<span class="required">Required</span>[% END %] |
| 544 |
<div class="hint">Non-patron guarantor first name</div> |
| 545 |
</li> |
| 546 |
[% END %] |
| 547 |
|
518 |
|
| 548 |
[% UNLESS norelationship %] |
519 |
[% UNLESS nocontactname %] |
| 549 |
[% IF possible_relationships %] |
|
|
| 550 |
<li> |
520 |
<li> |
| 551 |
<label for="relationship">Relationship: </label> |
521 |
[% IF ( mandatorycontactname ) %] |
| 552 |
<select class="relationship" name="relationship"> |
522 |
<label for="contactname" class="required"> |
| 553 |
<option value=""></option> |
523 |
[% ELSE %] |
| 554 |
[% FOREACH pr IN possible_relationships.split('\|') %] |
524 |
<label for="contactname"> |
| 555 |
[% IF pr == relationship %] |
525 |
[% END %] |
| 556 |
<option value="[% pr | html %]" selected="selected">[% pr | html %]</option> |
526 |
Guarantor surname: |
| 557 |
[% ELSE %] |
527 |
</label> |
| 558 |
<option value="[% pr | html %]">[% pr | html %]</option> |
528 |
<input type="text" id="contactname" name="contactname" value="[% contactname | html %]" /> |
| 559 |
[% END %] |
529 |
[% IF ( mandatorycontactname ) %]<span class="required">Required</span>[% END %] |
| 560 |
[% END %] |
530 |
<div class="hint">Non-patron guarantor surname</div> |
| 561 |
</select> |
|
|
| 562 |
</li> |
531 |
</li> |
| 563 |
[% END %] |
532 |
[% END # /UNLESS nocontactname %] |
| 564 |
[% END %] |
|
|
| 565 |
|
533 |
|
| 566 |
[% UNLESS nophone %] |
534 |
[% UNLESS nocontactfirstname %] |
| 567 |
<li> |
535 |
<li> |
| 568 |
[% IF ( mandatoryphone ) %] |
536 |
[% IF ( mandatorycontactfirstname ) %] |
| 569 |
<label for="phone" class="required"> |
537 |
<label for="contactfirstname" class="required"> |
| 570 |
[% ELSE %] |
538 |
[% ELSE %] |
| 571 |
<label for="phone"> |
539 |
<label for="contactfirstname"> |
| 572 |
[% END %] |
540 |
[% END %] |
| 573 |
Primary phone: |
541 |
Guarantor first name: |
| 574 |
</label> |
542 |
</label> |
| 575 |
<input type="text" id="phone" name="phone" value="[% phone | html %]" /> |
543 |
<input type="text" id="contactfirstname" name="contactfirstname" value="[% contactfirstname | html %]" /> |
| 576 |
[% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %] |
544 |
[% IF ( mandatorycontactfirstname ) %]<span class="required">Required</span>[% END %] |
| 577 |
<div class="hint">Shows on transit slips</div> |
545 |
<div class="hint">Non-patron guarantor first name</div> |
| 578 |
</li> |
546 |
</li> |
| 579 |
[% END %] |
547 |
[% END # /UNLESS nocontactfirstname %] |
| 580 |
|
548 |
|
| 581 |
[% UNLESS nophonepro %] |
549 |
[% UNLESS norelationship %] |
| 582 |
<li> |
550 |
[% IF possible_relationships %] |
| 583 |
[% IF ( mandatoryphonepro ) %] |
551 |
<li> |
| 584 |
<label for="phonepro" class="required"> |
552 |
<label for="relationship">Relationship: </label> |
| 585 |
[% ELSE %] |
553 |
<select class="relationship" name="relationship"> |
| 586 |
<label for="phonepro"> |
554 |
<option value=""></option> |
| 587 |
[% END %] |
555 |
[% FOREACH pr IN possible_relationships.split('\|') %] |
| 588 |
Secondary phone: |
556 |
[% IF pr == relationship %] |
| 589 |
</label> |
557 |
<option value="[% pr | html %]" selected="selected">[% pr | html %]</option> |
| 590 |
<input type="text" id="phonepro" name="phonepro" value="[% phonepro | html %]" /> |
558 |
[% ELSE %] |
| 591 |
[% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %] |
559 |
<option value="[% pr | html %]">[% pr | html %]</option> |
| 592 |
</li> |
560 |
[% END %] |
| 593 |
[% END %] |
561 |
[% END %] |
|
|
562 |
</select> |
| 563 |
</li> |
| 564 |
[% END # /UNLESS possible_relationships %] |
| 565 |
[% END # /UNLESS norelationship %] |
| 594 |
|
566 |
|
| 595 |
[% UNLESS nomobile %] |
567 |
[% UNLESS nophone %] |
| 596 |
<li> |
568 |
<li> |
| 597 |
[% IF ( mandatorymobile ) %] |
569 |
[% IF ( mandatoryphone ) %] |
| 598 |
<label for="mobile" class="required"> |
570 |
<label for="phone" class="required"> |
| 599 |
[% ELSE %] |
571 |
[% ELSE %] |
| 600 |
<label for="mobile"> |
572 |
<label for="phone"> |
| 601 |
[% END %] |
573 |
[% END %] |
| 602 |
Other phone: |
574 |
Primary phone: |
| 603 |
</label> |
575 |
</label> |
| 604 |
<input type="text" id="mobile" name="mobile" value="[% mobile | html %]" /> |
576 |
<input type="text" id="phone" name="phone" value="[% phone | html %]" /> |
| 605 |
[% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %] |
577 |
[% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %] |
| 606 |
</li> |
578 |
<div class="hint">Shows on transit slips</div> |
| 607 |
[% END %] |
579 |
</li> |
|
|
580 |
[% END # /UNLESS nophone %] |
| 608 |
|
581 |
|
| 609 |
[% UNLESS noemail %] |
582 |
[% UNLESS nophonepro %] |
| 610 |
<li> |
583 |
<li> |
| 611 |
[% IF ( mandatoryemail ) %] |
584 |
[% IF ( mandatoryphonepro ) %] |
| 612 |
<label for="email" class="required"> |
585 |
<label for="phonepro" class="required"> |
| 613 |
[% ELSE %] |
586 |
[% ELSE %] |
| 614 |
<label for="email"> |
587 |
<label for="phonepro"> |
| 615 |
[% END %] |
588 |
[% END %] |
| 616 |
Primary email: |
589 |
Secondary phone: |
| 617 |
</label> |
590 |
</label> |
| 618 |
<input type="text" id="email" name="email" size="45" value="[% email | html %]" /> |
591 |
<input type="text" id="phonepro" name="phonepro" value="[% phonepro | html %]" /> |
| 619 |
[% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %] |
592 |
[% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %] |
| 620 |
<div class="hint">Shows on transit slips</div> |
593 |
</li> |
| 621 |
</li> |
594 |
[% END # /UNLESS nophonepro %] |
| 622 |
[% END %] |
|
|
| 623 |
|
595 |
|
| 624 |
[% UNLESS noemailpro %] |
596 |
[% UNLESS nomobile %] |
| 625 |
<li> |
597 |
<li> |
| 626 |
[% IF ( mandatoryemailpro ) %] |
598 |
[% IF ( mandatorymobile ) %] |
| 627 |
<label for="emailpro" class="required"> |
599 |
<label for="mobile" class="required"> |
| 628 |
[% ELSE %] |
600 |
[% ELSE %] |
| 629 |
<label for="emailpro"> |
601 |
<label for="mobile"> |
| 630 |
[% END %] |
602 |
[% END %] |
| 631 |
Secondary email: |
603 |
Other phone: |
| 632 |
</label> |
604 |
</label> |
| 633 |
<input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro | html %]" /> |
605 |
<input type="text" id="mobile" name="mobile" value="[% mobile | html %]" /> |
| 634 |
[% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %] |
606 |
[% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %] |
| 635 |
</li> |
607 |
</li> |
| 636 |
[% END %] |
608 |
[% END # /UNLESS nomobile %] |
| 637 |
|
609 |
|
| 638 |
[% UNLESS nofax %] |
610 |
[% UNLESS noemail %] |
| 639 |
<li> |
611 |
<li> |
| 640 |
[% IF ( mandatoryfax ) %] |
612 |
[% IF ( mandatoryemail ) %] |
| 641 |
<label for="fax" class="required"> |
613 |
<label for="email" class="required"> |
| 642 |
[% ELSE %] |
614 |
[% ELSE %] |
| 643 |
<label for="fax"> |
615 |
<label for="email"> |
| 644 |
[% END %] |
616 |
[% END %] |
| 645 |
Fax: |
617 |
Primary email: |
| 646 |
</label> |
618 |
</label> |
| 647 |
<input type="text" id="fax" name="fax" value="[% fax | html %]" /> |
619 |
<input type="text" id="email" name="email" size="45" value="[% email | html %]" /> |
| 648 |
[% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %] |
620 |
[% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %] |
| 649 |
</li> |
621 |
<div class="hint">Shows on transit slips</div> |
| 650 |
[% END %] |
622 |
</li> |
| 651 |
</ol> |
623 |
[% END # /UNLESS noemail %] |
| 652 |
</fieldset> |
|
|
| 653 |
[% END # hide fieldset %] |
| 654 |
|
624 |
|
| 655 |
<!-- ************************ STEP_1 *********************** --> |
625 |
[% UNLESS noemailpro %] |
| 656 |
[% END %] |
626 |
<li> |
|
|
627 |
[% IF ( mandatoryemailpro ) %] |
| 628 |
<label for="emailpro" class="required"> |
| 629 |
[% ELSE %] |
| 630 |
<label for="emailpro"> |
| 631 |
[% END %] |
| 632 |
Secondary email: |
| 633 |
</label> |
| 634 |
<input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro | html %]" /> |
| 635 |
[% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %] |
| 636 |
</li> |
| 637 |
[% END # /UNLESS noemailpro %] |
| 657 |
|
638 |
|
| 658 |
[% IF ( step_6 ) %] |
639 |
[% UNLESS nofax %] |
| 659 |
[% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %] |
640 |
<li> |
|
|
641 |
[% IF ( mandatoryfax ) %] |
| 642 |
<label for="fax" class="required"> |
| 643 |
[% ELSE %] |
| 644 |
<label for="fax"> |
| 645 |
[% END %] |
| 646 |
Fax: |
| 647 |
</label> |
| 648 |
<input type="text" id="fax" name="fax" value="[% fax | html %]" /> |
| 649 |
[% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %] |
| 650 |
</li> |
| 651 |
[% END # /nofax %] |
| 652 |
</ol> |
| 653 |
</fieldset> <!-- /#memberentry_contact --> |
| 654 |
[% END # /UNLESS nophone && nophonepro... %] |
| 655 |
|
| 656 |
<!-- ************************ STEP_1 *********************** --> |
| 657 |
[% END # /IF step_1 %] |
| 658 |
|
| 659 |
[% IF ( step_6 ) %] |
| 660 |
[% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %] |
| 661 |
[% SWITCH Koha.Preference( 'AddressFormat' ) %] |
| 662 |
[% CASE 'de' %] |
| 663 |
[% INCLUDE 'member-alt-address-style-de.inc' %] |
| 664 |
[% CASE # us %] |
| 665 |
[% INCLUDE 'member-alt-address-style-us.inc' %] |
| 666 |
[% END %] |
| 667 |
[% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %] |
| 668 |
[% END # /IF step_6 %] |
| 669 |
|
| 670 |
[% IF ( step_2 ) %] |
| 671 |
[% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %] |
| 660 |
[% SWITCH Koha.Preference( 'AddressFormat' ) %] |
672 |
[% SWITCH Koha.Preference( 'AddressFormat' ) %] |
| 661 |
[% CASE 'de' %] |
673 |
[% CASE 'de' %] |
| 662 |
[% INCLUDE 'member-alt-address-style-de.inc' %] |
674 |
[% INCLUDE 'member-alt-contact-style-de.inc' %] |
| 663 |
[% CASE # us %] |
675 |
[% CASE # us %] |
| 664 |
[% INCLUDE 'member-alt-address-style-us.inc' %] |
676 |
[% INCLUDE 'member-alt-contact-style-us.inc' %] |
| 665 |
[% END %] |
677 |
[% END %] |
| 666 |
[% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %] |
678 |
[% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %] |
| 667 |
[% END %] |
679 |
[% END # /IF step_2 %] |
| 668 |
|
680 |
|
| 669 |
[% IF ( step_2 ) %] |
681 |
[% IF ( step_3 ) %] |
| 670 |
[% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %] |
682 |
[% SET autoMemberNum = Koha.Preference('autoMemberNum') %] |
| 671 |
[% SWITCH Koha.Preference( 'AddressFormat' ) %] |
683 |
<fieldset class="rows" id="memberentry_library_management"> |
| 672 |
[% CASE 'de' %] |
684 |
<legend id="library_management_lgd">Library management</legend> |
| 673 |
[% INCLUDE 'member-alt-contact-style-de.inc' %] |
685 |
<ol> |
| 674 |
[% CASE # us %] |
686 |
[% UNLESS nocardnumber %] |
| 675 |
[% INCLUDE 'member-alt-contact-style-us.inc' %] |
687 |
<li> |
| 676 |
[% END %] |
|
|
| 677 |
[% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %] |
| 678 |
[% END %] |
| 679 |
|
| 680 |
[% IF ( step_3 ) %] |
| 681 |
[% SET autoMemberNum = Koha.Preference('autoMemberNum') %] |
| 682 |
<fieldset class="rows" id="memberentry_library_management"> |
| 683 |
<legend id="library_management_lgd">Library management</legend> |
| 684 |
<ol> |
| 685 |
[% UNLESS nocardnumber %] |
| 686 |
<li> |
| 687 |
[% IF mandatorycardnumber %] |
| 688 |
<label for="cardnumber" class="required"> |
| 689 |
[% ELSE %] |
| 690 |
<label for="cardnumber" class="validated"> |
| 691 |
[% END %] |
| 692 |
Card number: |
| 693 |
</label> |
| 694 |
|
| 695 |
<!-- NOTE: div.hint closing tag isn't on the same line --> |
| 696 |
[% IF minlength_cardnumber == maxlength_cardnumber %] |
| 697 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> |
| 698 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] |
| 699 |
<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> |
| 700 |
<div class="hint">Card number must be exactly [% minlength_cardnumber | html %] characters.</div> |
| 701 |
[% ELSIF minlength_cardnumber && maxlength_cardnumber %] |
| 702 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> |
| 703 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] |
| 704 |
<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> |
| 705 |
<div class="hint">Card number must be between [% minlength_cardnumber | html %] and [% maxlength_cardnumber | html %] characters.</div> |
| 706 |
[% ELSIF maxlength_cardnumber %] |
| 707 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> |
| 708 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] |
| 709 |
<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> |
| 710 |
<div class="hint">Card number can be up to [% maxlength_cardnumber | html %] characters.</div> |
| 711 |
[% ELSE %] |
| 712 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" /> |
| 713 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] |
| 714 |
<div class="hint">There is no minimum or maximum character length.</div> |
| 715 |
[% END %] |
| 716 |
[% IF autoMemberNum %] |
| 717 |
[% IF mandatorycardnumber %] |
688 |
[% IF mandatorycardnumber %] |
| 718 |
<br/><span class="error">AutoMemberNum is set to enabled, but cardnumber is marked as mandatory in BorrowerMandatoryField: auto calc has been disabled.</span> |
689 |
<label for="cardnumber" class="required"> |
| 719 |
[% ELSE %] |
690 |
[% ELSE %] |
| 720 |
<br/>Leave blank for auto calc during registration |
691 |
<label for="cardnumber" class="validated"> |
| 721 |
[% END %] |
692 |
[% END %] |
| 722 |
[% END %] |
693 |
Card number: |
| 723 |
</li> |
694 |
</label> |
| 724 |
[% END %] |
|
|
| 725 |
|
| 726 |
[% UNLESS nobranchcode %] |
| 727 |
<li> |
| 728 |
<label for="libraries" class="required">Library:</label> |
| 729 |
<select name="branchcode" size="1" id="libraries"> |
| 730 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %] |
| 731 |
</select> |
| 732 |
<span class="required">Required</span> |
| 733 |
</li> |
| 734 |
[% END %] |
| 735 |
|
695 |
|
| 736 |
<li> |
696 |
<!-- NOTE: div.hint closing tag isn't on the same line --> |
| 737 |
<label for="categorycode_entry" class="required">Category: </label> |
697 |
[% IF minlength_cardnumber == maxlength_cardnumber %] |
| 738 |
<select id="categorycode_entry" name="categorycode" onchange="update_category_code(this);"> |
698 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> |
| 739 |
[% FOREACH typeloo IN typeloop %] |
699 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] |
| 740 |
[% FOREACH categoryloo IN typeloo.categoryloop %] |
700 |
<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> |
| 741 |
[% IF ( loop.first ) %] |
701 |
<div class="hint">Card number must be exactly [% minlength_cardnumber | html %] characters.</div> |
| 742 |
[% IF ( typeloo.typename_C ) %]<optgroup label="Child">[% END %] |
702 |
[% ELSIF minlength_cardnumber && maxlength_cardnumber %] |
| 743 |
[% IF ( typeloo.typename_A ) %]<optgroup label="Adult">[% END %] |
703 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> |
| 744 |
[% IF ( typeloo.typename_S ) %]<optgroup label="Staff">[% END %] |
704 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] |
| 745 |
[% IF ( typeloo.typename_I ) %]<optgroup label="Organization">[% END %] |
705 |
<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> |
| 746 |
[% IF ( typeloo.typename_P ) %]<optgroup label="Professional">[% END %] |
706 |
<div class="hint">Card number must be between [% minlength_cardnumber | html %] and [% maxlength_cardnumber | html %] characters.</div> |
| 747 |
[% IF ( typeloo.typename_X ) %]<optgroup label="Statistical">[% END %] |
707 |
[% ELSIF maxlength_cardnumber %] |
| 748 |
[% END %] |
708 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> |
| 749 |
[% IF ( categoryloo.categorycodeselected ) %] |
709 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] |
| 750 |
<option value="[% categoryloo.categorycode | html %]" selected="selected" data-typename="[% typeloo.typename | html %]">[% categoryloo.categoryname | html %]</option> |
710 |
<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> |
|
|
711 |
<div class="hint">Card number can be up to [% maxlength_cardnumber | html %] characters.</div> |
| 712 |
[% ELSE %] |
| 713 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" /> |
| 714 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] |
| 715 |
<div class="hint">There is no minimum or maximum character length.</div> |
| 716 |
[% END # /IF minlength_cardnumber %] |
| 717 |
[% IF autoMemberNum %] |
| 718 |
[% IF mandatorycardnumber %] |
| 719 |
<br/><span class="error">AutoMemberNum is set to enabled, but cardnumber is marked as mandatory in BorrowerMandatoryField: auto calc has been disabled.</span> |
| 751 |
[% ELSE %] |
720 |
[% ELSE %] |
| 752 |
<option value="[% categoryloo.categorycode | html %]" data-typename="[% typeloo.typename | html %]">[% categoryloo.categoryname | html %]</option> |
721 |
<br/>Leave blank for auto calc during registration |
| 753 |
[% END %] |
|
|
| 754 |
[% IF ( loop.last ) %] |
| 755 |
</optgroup> |
| 756 |
[% END %] |
722 |
[% END %] |
| 757 |
[% END %] |
723 |
[% END # /IF mandatorycardnumber %] |
| 758 |
[% END %] |
724 |
</li> |
| 759 |
</select> |
725 |
[% END # /UNLESS nocardnumber %] |
| 760 |
<span class="required">Required</span> |
|
|
| 761 |
</li> |
| 762 |
|
| 763 |
[% UNLESS nosort1 %] |
| 764 |
<li> |
| 765 |
[% IF ( mandatorysort1 ) %] |
| 766 |
<label for="sort1" class="required"> |
| 767 |
[% ELSE %] |
| 768 |
<label for="sort1"> |
| 769 |
[% END %] |
| 770 |
Sort 1: |
| 771 |
</label> |
| 772 |
[% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, size = 20 %] |
| 773 |
[% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %] |
| 774 |
</li> |
| 775 |
[% END %] |
| 776 |
|
| 777 |
[% UNLESS nosort2 %] |
| 778 |
<li> |
| 779 |
[% IF ( mandatorysort2 ) %] |
| 780 |
<label for="sort2" class="required"> |
| 781 |
[% ELSE %] |
| 782 |
<label for="sort2"> |
| 783 |
[% END %] |
| 784 |
Sort 2: |
| 785 |
</label> |
| 786 |
[% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, size = 20 %] |
| 787 |
[% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %] |
| 788 |
</li> |
| 789 |
[% END %] |
| 790 |
|
726 |
|
| 791 |
[% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] |
727 |
[% UNLESS nobranchcode %] |
| 792 |
<li> |
728 |
<li> |
| 793 |
<label for="checkprevcheckout">Check for previous checkouts: </label> |
729 |
<label for="libraries" class="required">Library:</label> |
| 794 |
<select name="checkprevcheckout" id="checkprevcheckout"> |
730 |
<select name="branchcode" size="1" id="libraries"> |
| 795 |
[% IF ( checkprevcheckout == 'yes' ) %] |
731 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %] |
| 796 |
<option value="yes" selected="selected">Yes if settings allow it</option> |
732 |
</select> |
| 797 |
<option value="no">No if settings allow it</option> |
733 |
<span class="required">Required</span> |
| 798 |
<option value="inherit">Inherit from settings</option> |
734 |
</li> |
| 799 |
[% ELSIF ( checkprevcheckout == 'no' ) %] |
735 |
[% END # /UNLESS nobranchcode %] |
| 800 |
<option value="yes">Yes if settings allow it</option> |
|
|
| 801 |
<option value="no" selected="selected">No if settings allow it</option> |
| 802 |
<option value="inherit">Inherit from settings</option> |
| 803 |
[% ELSE %] |
| 804 |
<option value="yes">Yes if settings allow it</option> |
| 805 |
<option value="no">No if settings allow it</option> |
| 806 |
<option value="inherit" selected="selected">Inherit from settings</option> |
| 807 |
[% END %] |
| 808 |
</select> |
| 809 |
</li> |
| 810 |
[% END %] |
| 811 |
|
736 |
|
| 812 |
[% IF Koha.Preference('TranslateNotices') %] |
|
|
| 813 |
<li> |
737 |
<li> |
| 814 |
<label for="lang">Preferred language for notices: </label> |
738 |
<label for="categorycode_entry" class="required">Category: </label> |
| 815 |
<select id="lang" name="lang"> |
739 |
<select id="categorycode_entry" name="categorycode" onchange="update_category_code(this);"> |
| 816 |
<option value="default">Default</option> |
740 |
[% FOREACH typeloo IN typeloop %] |
| 817 |
[% FOR language IN languages %] |
741 |
[% FOREACH categoryloo IN typeloo.categoryloop %] |
| 818 |
[% FOR sublanguage IN language.sublanguages_loop %] |
742 |
[% IF ( loop.first ) %] |
| 819 |
[% IF language.plural %] |
743 |
[% IF ( typeloo.typename_C ) %]<optgroup label="Child">[% END %] |
| 820 |
[% IF sublanguage.rfc4646_subtag == lang %] |
744 |
[% IF ( typeloo.typename_A ) %]<optgroup label="Adult">[% END %] |
| 821 |
<option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
745 |
[% IF ( typeloo.typename_S ) %]<optgroup label="Staff">[% END %] |
| 822 |
[% ELSE %] |
746 |
[% IF ( typeloo.typename_I ) %]<optgroup label="Organization">[% END %] |
| 823 |
<option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
747 |
[% IF ( typeloo.typename_P ) %]<optgroup label="Professional">[% END %] |
| 824 |
[% END %] |
748 |
[% IF ( typeloo.typename_X ) %]<optgroup label="Statistical">[% END %] |
|
|
749 |
[% END %] |
| 750 |
[% IF ( categoryloo.categorycodeselected ) %] |
| 751 |
<option value="[% categoryloo.categorycode | html %]" selected="selected" data-typename="[% typeloo.typename | html %]">[% categoryloo.categoryname | html %]</option> |
| 825 |
[% ELSE %] |
752 |
[% ELSE %] |
| 826 |
[% IF sublanguage.rfc4646_subtag == lang %] |
753 |
<option value="[% categoryloo.categorycode | html %]" data-typename="[% typeloo.typename | html %]">[% categoryloo.categoryname | html %]</option> |
| 827 |
<option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
754 |
[% END %] |
| 828 |
[% ELSE %] |
755 |
[% IF ( loop.last ) %] |
| 829 |
<option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
756 |
</optgroup> |
| 830 |
[% END %] |
|
|
| 831 |
[% END %] |
757 |
[% END %] |
| 832 |
[% END %] |
758 |
[% END %] |
| 833 |
[% END %] |
759 |
[% END %] |
| 834 |
</select> |
760 |
</select> <!-- # /categorycode_entry --> |
|
|
761 |
<span class="required">Required</span> |
| 835 |
</li> |
762 |
</li> |
| 836 |
[% END %] |
|
|
| 837 |
</ol> |
| 838 |
</fieldset> |
| 839 |
|
763 |
|
| 840 |
[% UNLESS nodateenrolled && noopacnote && noborrowernotes %] |
764 |
[% UNLESS nosort1 %] |
| 841 |
<fieldset class="rows" id="memberentry_subscription"> |
|
|
| 842 |
<legend id="library_setup_lgd">Library set-up</legend> |
| 843 |
<ol> |
| 844 |
[% UNLESS nodateenrolled %] |
| 845 |
<li> |
765 |
<li> |
| 846 |
[% IF ( mandatorydateenrolled ) %] |
766 |
[% IF ( mandatorysort1 ) %] |
| 847 |
<label for="from" class="required"> |
767 |
<label for="sort1" class="required"> |
| 848 |
[% ELSE %] |
768 |
[% ELSE %] |
| 849 |
<label for="from"> |
769 |
<label for="sort1"> |
| 850 |
[% END %] |
770 |
[% END %] |
| 851 |
Registration date: |
771 |
Sort 1: |
| 852 |
</label> |
772 |
</label> |
| 853 |
[% IF ( dateformat == "metric" ) %] |
773 |
[% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, size = 20 %] |
| 854 |
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled | html %]" class="datepickerfrom" /> |
774 |
[% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %] |
| 855 |
[% ELSE %] |
|
|
| 856 |
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled | html %]" class="datepickerfrom" /> |
| 857 |
[% END %] |
| 858 |
[% IF ( mandatorydateenrolled ) %]<span class="required">Required</span>[% END %] |
| 859 |
[% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %] |
| 860 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 861 |
</li> |
775 |
</li> |
| 862 |
[% END %] |
776 |
[% END # /UNLESS nosort1 %] |
| 863 |
|
777 |
|
| 864 |
[% UNLESS nodateexpiry %] |
778 |
[% UNLESS nosort2 %] |
| 865 |
<li> |
779 |
<li> |
| 866 |
[% ELSE %] |
780 |
[% IF ( mandatorysort2 ) %] |
| 867 |
<li style="display:none"> |
781 |
<label for="sort2" class="required"> |
| 868 |
[% END %] |
|
|
| 869 |
|
| 870 |
[% IF ( mandatorydateexpiry ) %] |
| 871 |
<label for="to" class="required"> |
| 872 |
[% ELSE %] |
| 873 |
<label for="to"> |
| 874 |
[% END %] |
| 875 |
Expiry date (leave blank for auto calc): |
| 876 |
</label> |
| 877 |
|
| 878 |
[% IF ( dateformat == "metric" ) %] |
| 879 |
[% UNLESS ( opadd ) %] |
| 880 |
<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" /> |
| 881 |
[% ELSE %] |
| 882 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" /> |
| 883 |
[% END %] |
| 884 |
[% ELSE %] |
| 885 |
[% UNLESS ( opadd ) %] |
| 886 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" /> |
| 887 |
[% ELSE %] |
782 |
[% ELSE %] |
| 888 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html %]" class="datepickerto" /> |
783 |
<label for="sort2"> |
| 889 |
[% END %] |
784 |
[% END %] |
| 890 |
[% END %] |
785 |
Sort 2: |
| 891 |
[% IF ( mandatorydateexpiry ) %]<span class="required">Required</span>[% END %] |
786 |
</label> |
| 892 |
[% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %] |
787 |
[% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, size = 20 %] |
| 893 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
788 |
[% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %] |
| 894 |
</li> |
789 |
</li> |
|
|
790 |
[% END # /UNLESS nosort2 %] |
| 895 |
|
791 |
|
| 896 |
[% UNLESS noopacnote %] |
792 |
[% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] |
| 897 |
<li> |
793 |
<li> |
| 898 |
[% IF ( mandatoryopacnote ) %] |
794 |
<label for="checkprevcheckout">Check for previous checkouts: </label> |
| 899 |
<label for="opacnote" class="required"> |
795 |
<select name="checkprevcheckout" id="checkprevcheckout"> |
| 900 |
[% ELSE %] |
796 |
[% IF ( checkprevcheckout == 'yes' ) %] |
| 901 |
<label for="opacnote"> |
797 |
<option value="yes" selected="selected">Yes if settings allow it</option> |
| 902 |
[% END %] |
798 |
<option value="no">No if settings allow it</option> |
| 903 |
OPAC note: |
799 |
<option value="inherit">Inherit from settings</option> |
| 904 |
</label> |
800 |
[% ELSIF ( checkprevcheckout == 'no' ) %] |
| 905 |
<textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote | html UNLESS opduplicate %]</textarea> |
801 |
<option value="yes">Yes if settings allow it</option> |
| 906 |
<div class="hint">This message appears on this patron's user page in the OPAC</div> |
802 |
<option value="no" selected="selected">No if settings allow it</option> |
| 907 |
[% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %] |
803 |
<option value="inherit">Inherit from settings</option> |
|
|
804 |
[% ELSE %] |
| 805 |
<option value="yes">Yes if settings allow it</option> |
| 806 |
<option value="no">No if settings allow it</option> |
| 807 |
<option value="inherit" selected="selected">Inherit from settings</option> |
| 808 |
[% END # /IF checkprevcheckout %] |
| 809 |
</select> <!-- /#checkprevcheckout --> |
| 908 |
</li> |
810 |
</li> |
| 909 |
[% END %] |
811 |
[% END # IF Koha.Preference('CheckPrevCheckout') %] |
| 910 |
|
812 |
|
| 911 |
[% UNLESS noborrowernotes %] |
813 |
[% IF Koha.Preference('TranslateNotices') %] |
| 912 |
<li> |
814 |
<li> |
| 913 |
[% IF ( mandatoryborrowernotes ) %] |
815 |
<label for="lang">Preferred language for notices: </label> |
| 914 |
<label for="borrowernotes" class="required"> |
816 |
<select id="lang" name="lang"> |
| 915 |
[% ELSE %] |
817 |
<option value="default">Default</option> |
| 916 |
<label for="borrowernotes"> |
818 |
[% FOR language IN languages %] |
| 917 |
[% END %] |
819 |
[% FOR sublanguage IN language.sublanguages_loop %] |
| 918 |
Circulation note: |
820 |
[% IF language.plural %] |
| 919 |
</label> |
821 |
[% IF sublanguage.rfc4646_subtag == lang %] |
| 920 |
<textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes | html UNLESS opduplicate %]</textarea> |
822 |
<option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
| 921 |
<div class="hint">This message displays when checking out to this patron</div> |
823 |
[% ELSE %] |
| 922 |
[% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %] |
824 |
<option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
|
|
825 |
[% END %] |
| 826 |
[% ELSE %] |
| 827 |
[% IF sublanguage.rfc4646_subtag == lang %] |
| 828 |
<option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
| 829 |
[% ELSE %] |
| 830 |
<option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> |
| 831 |
[% END %] |
| 832 |
[% END # /IF language.plural %] |
| 833 |
[% END # /FOR sublanguage %] |
| 834 |
[% END # /FOR language %] |
| 835 |
</select> <!-- /#lang --> |
| 923 |
</li> |
836 |
</li> |
| 924 |
[% END %] |
837 |
[% END # /Koha.Preference('TranslateNotices') %] |
| 925 |
</ol> |
838 |
</ol> |
| 926 |
</fieldset> |
839 |
</fieldset> <!-- /#memberentry_library_management --> |
| 927 |
[% END # hide fieldset %] |
|
|
| 928 |
|
840 |
|
| 929 |
[% UNLESS nouserid && nopassword %] |
841 |
[% UNLESS nodateenrolled && noopacnote && noborrowernotes %] |
| 930 |
<fieldset class="rows" id="memberentry_userid"> |
842 |
<fieldset class="rows" id="memberentry_subscription"> |
| 931 |
<legend id="opac_staff_login_lgd">OPAC/Staff login</legend><ol> |
843 |
<legend id="library_setup_lgd">Library set-up</legend> |
| 932 |
[% UNLESS nouserid %] |
844 |
<ol> |
| 933 |
<li> |
845 |
[% UNLESS nodateenrolled %] |
| 934 |
[% IF ( mandatoryuserid ) %] |
846 |
<li> |
| 935 |
<label for="userid" class="required"> |
847 |
[% IF ( mandatorydateenrolled ) %] |
|
|
848 |
<label for="from" class="required"> |
| 849 |
[% ELSE %] |
| 850 |
<label for="from"> |
| 851 |
[% END %] |
| 852 |
Registration date: |
| 853 |
</label> |
| 854 |
[% IF ( dateformat == "metric" ) %] |
| 855 |
<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" /> |
| 856 |
[% ELSE %] |
| 857 |
<input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled | html %]" class="datepickerfrom" /> |
| 858 |
[% END %] |
| 859 |
[% IF ( mandatorydateenrolled ) %]<span class="required">Required</span>[% END %] |
| 860 |
[% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %] |
| 861 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 862 |
</li> |
| 863 |
[% END # /UNLESS nodateenrolled %] |
| 864 |
|
| 865 |
[% UNLESS nodateexpiry %] |
| 866 |
<li> |
| 936 |
[% ELSE %] |
867 |
[% ELSE %] |
| 937 |
<label for="userid"> |
868 |
<li style="display:none"> |
| 938 |
[% END %] |
869 |
[% END %] |
| 939 |
Username: |
|
|
| 940 |
</label> |
| 941 |
|
870 |
|
| 942 |
[% IF ( NoUpdateLogin ) %] |
871 |
[% IF ( mandatorydateexpiry ) %] |
| 943 |
[% IF ( opduplicate ) %] |
872 |
<label for="to" class="required"> |
| 944 |
<input type="text" id="userid" name="userid" size="20" disabled="disabled" /> |
|
|
| 945 |
[% ELSE %] |
| 946 |
<input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid | html %]" /> |
| 947 |
[% END %] |
| 948 |
[% ELSE %] |
| 949 |
[% IF ( opduplicate ) %] |
| 950 |
<input type="text" id="userid" name="userid" size="20" value="" /> |
| 951 |
[% ELSE %] |
873 |
[% ELSE %] |
| 952 |
<input type="text" id="userid" name="userid" size="20" value="[% userid | html %]" /> |
874 |
<label for="to"> |
| 953 |
[% END %] |
875 |
[% END %] |
| 954 |
[% END %] |
876 |
Expiry date (leave blank for auto calc): |
| 955 |
|
877 |
</label> |
| 956 |
[%# Dummy input to avoid Firefox from using userid/password saved for authentication %] |
|
|
| 957 |
<input type="text" disabled="disabled" style="display:none" /> |
| 958 |
|
| 959 |
[% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %] |
| 960 |
</li> |
| 961 |
[% END %] |
| 962 |
|
878 |
|
| 963 |
[% UNLESS nopassword %] |
879 |
[% IF ( dateformat == "metric" ) %] |
| 964 |
<li> |
880 |
[% UNLESS ( opadd ) %] |
| 965 |
[% IF ( mandatorypassword ) %] |
881 |
<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" /> |
| 966 |
<label for="password" class="required"> |
|
|
| 967 |
[% ELSE %] |
| 968 |
<label for="password"> |
| 969 |
[% END %] |
| 970 |
Password: |
| 971 |
</label> |
| 972 |
[% IF ( opadd ) %] |
| 973 |
[% IF ( NoUpdateLogin ) %] |
| 974 |
[% IF ( opduplicate ) %] |
| 975 |
<input type="password" id="password" name="password" size="20" disabled="disabled" /> |
| 976 |
[% ELSE %] |
882 |
[% ELSE %] |
| 977 |
<input type="password" id="password" name="password" size="20" disabled="disabled" value="[% password | html %]" /> |
883 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" /> |
| 978 |
[% END %] |
884 |
[% END %] |
| 979 |
[% ELSE %] |
885 |
[% ELSE %] |
| 980 |
[% IF ( opduplicate ) %] |
886 |
[% UNLESS ( opadd ) %] |
| 981 |
<input type="password" id="password" name="password" size="20" /> |
887 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" /> |
| 982 |
[% ELSE %] |
|
|
| 983 |
<input type="password" id="password" name="password" size="20" value="[% password | html %]" /> |
| 984 |
[% END %] |
| 985 |
[% END %] |
| 986 |
[% ELSE %] |
| 987 |
[% IF ( password ) %] |
| 988 |
[% IF ( NoUpdateLogin ) %] |
| 989 |
<input type="password" id="password" name="password" size="20" disabled="disabled" value="****" /> |
| 990 |
[% ELSE %] |
888 |
[% ELSE %] |
| 991 |
[% IF ( opduplicate ) %] |
889 |
<input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html %]" class="datepickerto" /> |
| 992 |
<input type="password" id="password" name="password" size="20" /> |
|
|
| 993 |
[% ELSE %] |
| 994 |
<input type="password" id="password" name="password" size="20" value="****" /> |
| 995 |
[% END %] |
| 996 |
[% END %] |
890 |
[% END %] |
| 997 |
[% ELSE %] |
891 |
[% END # /IF dateformat metric %] |
| 998 |
[% IF ( NoUpdateLogin ) %] |
892 |
[% IF ( mandatorydateexpiry ) %]<span class="required">Required</span>[% END %] |
| 999 |
<input type="password" id="password" name="password" size="20" disabled="disabled" value="" /> |
893 |
[% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %] |
|
|
894 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
| 895 |
</li> |
| 896 |
|
| 897 |
[% UNLESS noopacnote %] |
| 898 |
<li> |
| 899 |
[% IF ( mandatoryopacnote ) %] |
| 900 |
<label for="opacnote" class="required"> |
| 1000 |
[% ELSE %] |
901 |
[% ELSE %] |
| 1001 |
<input type="password" id="password" name="password" size="20" value="" /> |
902 |
<label for="opacnote"> |
| 1002 |
[% END %] |
903 |
[% END %] |
| 1003 |
[% END %] |
904 |
OPAC note: |
| 1004 |
[% END %] |
905 |
</label> |
| 1005 |
[% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %] |
906 |
<textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote | html UNLESS opduplicate %]</textarea> |
| 1006 |
[% IF ( ERROR_password_too_short ) %]<span class="required">Password is too short</span>[% END %] |
907 |
<div class="hint">This message appears on this patron's user page in the OPAC</div> |
| 1007 |
[% IF ( ERROR_password_too_weak ) %]<span class="required">Password is too weak</span>[% END %] |
908 |
[% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %] |
| 1008 |
[% IF ( ERROR_password_has_whitespaces ) %]<span class="required">Password has leading or trailing whitespaces</span>[% END %] |
909 |
</li> |
| 1009 |
<div class="hint">Minimum password length: [% minPasswordLength | html %]</div> |
910 |
[% END # /UNLESS noopacnote %] |
| 1010 |
</li> |
|
|
| 1011 |
|
911 |
|
| 1012 |
<li> |
912 |
[% UNLESS noborrowernotes %] |
| 1013 |
[% IF ( mandatorypassword ) %] |
913 |
<li> |
| 1014 |
<label for="password2" class="required"> |
914 |
[% IF ( mandatoryborrowernotes ) %] |
| 1015 |
[% ELSE %] |
915 |
<label for="borrowernotes" class="required"> |
| 1016 |
<label for="password2"> |
|
|
| 1017 |
[% END %] |
| 1018 |
Confirm password: |
| 1019 |
</label> |
| 1020 |
[% IF ( opadd ) %] |
| 1021 |
[% IF ( NoUpdateLogin ) %] |
| 1022 |
[% IF ( opduplicate ) %] |
| 1023 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" /> |
| 1024 |
[% ELSE %] |
916 |
[% ELSE %] |
| 1025 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="[% password | html %]" /> |
917 |
<label for="borrowernotes"> |
| 1026 |
[% END %] |
918 |
[% END %] |
| 1027 |
[% ELSE %] |
919 |
Circulation note: |
| 1028 |
[% IF ( opduplicate ) %] |
920 |
</label> |
| 1029 |
<input type="password" id="password2" name="password2" size="20" /> |
921 |
<textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes | html UNLESS opduplicate %]</textarea> |
|
|
922 |
<div class="hint">This message displays when checking out to this patron</div> |
| 923 |
[% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %] |
| 924 |
</li> |
| 925 |
[% END # /UNLESS noborrowernotes %] |
| 926 |
</ol> |
| 927 |
</fieldset> <!-- /#memberentry_subscription --> |
| 928 |
[% END # /UNLESS nodateenrolled && noopacnote %] |
| 929 |
|
| 930 |
[% UNLESS nouserid && nopassword %] |
| 931 |
<fieldset class="rows" id="memberentry_userid"> |
| 932 |
<legend id="opac_staff_login_lgd">OPAC/Staff login</legend> |
| 933 |
<ol> |
| 934 |
[% UNLESS nouserid %] |
| 935 |
<li> |
| 936 |
[% IF ( mandatoryuserid ) %] |
| 937 |
<label for="userid" class="required"> |
| 1030 |
[% ELSE %] |
938 |
[% ELSE %] |
| 1031 |
<input type="password" id="password2" name="password2" size="20" value="[% password | html %]" /> |
939 |
<label for="userid"> |
| 1032 |
[% END %] |
940 |
[% END %] |
| 1033 |
[% END %] |
941 |
Username: |
| 1034 |
[% ELSE %] |
942 |
</label> |
| 1035 |
[% IF ( password ) %] |
943 |
|
| 1036 |
[% IF ( NoUpdateLogin ) %] |
944 |
[% IF ( NoUpdateLogin ) %] |
| 1037 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="****" /> |
|
|
| 1038 |
[% ELSE %] |
| 1039 |
[% IF ( opduplicate ) %] |
945 |
[% IF ( opduplicate ) %] |
| 1040 |
<input type="password" id="password2" name="password2" size="20" /> |
946 |
<input type="text" id="userid" name="userid" size="20" disabled="disabled" /> |
| 1041 |
[% ELSE %] |
947 |
[% ELSE %] |
| 1042 |
<input type="password" id="password2" name="password2" size="20" value="****" /> |
948 |
<input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid | html %]" /> |
| 1043 |
[% END %] |
949 |
[% END %] |
| 1044 |
[% END %] |
|
|
| 1045 |
[% ELSE %] |
| 1046 |
[% IF ( NoUpdateLogin ) %] |
| 1047 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="" /> |
| 1048 |
[% ELSE %] |
950 |
[% ELSE %] |
| 1049 |
<input type="password" id="password2" name="password2" size="20" value="" /> |
951 |
[% IF ( opduplicate ) %] |
| 1050 |
[% END %] |
952 |
<input type="text" id="userid" name="userid" size="20" value="" /> |
| 1051 |
[% END %] |
953 |
[% ELSE %] |
| 1052 |
[% END %] |
954 |
<input type="text" id="userid" name="userid" size="20" value="[% userid | html %]" /> |
| 1053 |
[% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %] |
955 |
[% END %] |
| 1054 |
[% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %] |
956 |
[% END # /IF NoUpdateLogin %] |
| 1055 |
</li> |
|
|
| 1056 |
</ol> |
| 1057 |
</fieldset> |
| 1058 |
[% END # hide fieldset %] |
| 1059 |
[% END %] |
| 1060 |
|
957 |
|
| 1061 |
<!--this zones are not necessary in modif mode --> |
958 |
[%# Dummy input to avoid Firefox from using userid/password saved for authentication %] |
| 1062 |
[% UNLESS ( opadd || opduplicate ) %] |
959 |
<input type="text" disabled="disabled" style="display:none" /> |
| 1063 |
<fieldset class="rows" id="memberentry_account_flags"> |
960 |
|
| 1064 |
<legend id="account_flags_lgd">Patron account flags</legend> |
961 |
[% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %] |
| 1065 |
<ol class="radio"> |
962 |
</li> |
| 1066 |
[% FOREACH flagloo IN flagloop %] |
963 |
[% END # /UNLESS nouserid %] |
| 1067 |
<li> |
964 |
|
| 1068 |
<label class="radio" for="yes[% flagloo.name | html %]"> |
965 |
[% UNLESS nopassword %] |
| 1069 |
[% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no address:[% END %] |
966 |
<li> |
| 1070 |
[% IF ( flagloo.key == 'lost' ) %]Lost card:[% END %] |
967 |
[% IF ( mandatorypassword ) %] |
| 1071 |
</label> |
968 |
<label for="password" class="required"> |
| 1072 |
[% IF CAN_user_circulate_manage_restrictions %] |
|
|
| 1073 |
<label for="yes[% flagloo.name | html %]"> |
| 1074 |
[% IF ( flagloo.yes ) %] |
| 1075 |
<input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" checked="checked" /> |
| 1076 |
[% ELSE %] |
969 |
[% ELSE %] |
| 1077 |
<input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" /> |
970 |
<label for="password"> |
| 1078 |
[% END %] |
971 |
[% END %] |
| 1079 |
Yes |
972 |
Password: |
| 1080 |
</label> |
973 |
</label> |
| 1081 |
<label for="no[% flagloo.name | html %]"> |
974 |
[% IF ( opadd ) %] |
| 1082 |
[% IF ( flagloo.no ) %] |
975 |
[% IF ( NoUpdateLogin ) %] |
| 1083 |
<input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" checked="checked"/> |
976 |
[% IF ( opduplicate ) %] |
|
|
977 |
<input type="password" id="password" name="password" size="20" disabled="disabled" /> |
| 978 |
[% ELSE %] |
| 979 |
<input type="password" id="password" name="password" size="20" disabled="disabled" value="[% password | html %]" /> |
| 980 |
[% END %] |
| 981 |
[% ELSE %] |
| 982 |
[% IF ( opduplicate ) %] |
| 983 |
<input type="password" id="password" name="password" size="20" /> |
| 984 |
[% ELSE %] |
| 985 |
<input type="password" id="password" name="password" size="20" value="[% password | html %]" /> |
| 986 |
[% END %] |
| 987 |
[% END %] |
| 1084 |
[% ELSE %] |
988 |
[% ELSE %] |
| 1085 |
<input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" /> |
989 |
[% IF ( password ) %] |
| 1086 |
[% END %] |
990 |
[% IF ( NoUpdateLogin ) %] |
| 1087 |
No |
991 |
<input type="password" id="password" name="password" size="20" disabled="disabled" value="****" /> |
| 1088 |
</label> |
992 |
[% ELSE %] |
| 1089 |
[% ELSE %] |
993 |
[% IF ( opduplicate ) %] |
| 1090 |
[% IF flagloo.yes %]Yes[% ELSE %]No[% END %] |
994 |
<input type="password" id="password" name="password" size="20" /> |
| 1091 |
[% END %] |
995 |
[% ELSE %] |
| 1092 |
</li> |
996 |
<input type="password" id="password" name="password" size="20" value="****" /> |
| 1093 |
[% END %] |
997 |
[% END %] |
| 1094 |
</ol> |
998 |
[% END %] |
| 1095 |
</fieldset> |
|
|
| 1096 |
|
| 1097 |
<fieldset class="rows" id="memberentry_restrictions"> |
| 1098 |
<legend id="restrictions_lgd">Patron restrictions</legend> |
| 1099 |
[% IF ( debarments ) %] |
| 1100 |
<table> |
| 1101 |
<thead> |
| 1102 |
<tr> |
| 1103 |
<th>Type</th> |
| 1104 |
<th>Comment</th> |
| 1105 |
<th>Expiration</th> |
| 1106 |
<th>Created</th> |
| 1107 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
| 1108 |
<th>Remove?</th> |
| 1109 |
[% END %] |
| 1110 |
</tr> |
| 1111 |
</thead> |
| 1112 |
<tbody> |
| 1113 |
[% FOREACH d IN debarments %] |
| 1114 |
<tr> |
| 1115 |
<td>[% d.type | html %]</td> |
| 1116 |
<td> |
| 1117 |
[% IF d.comment.search('OVERDUES_PROCESS') %] |
| 1118 |
Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') | $raw %] |
| 1119 |
[% ELSE %] |
999 |
[% ELSE %] |
| 1120 |
[% d.comment | $raw %] |
1000 |
[% IF ( NoUpdateLogin ) %] |
|
|
1001 |
<input type="password" id="password" name="password" size="20" disabled="disabled" value="" /> |
| 1002 |
[% ELSE %] |
| 1003 |
<input type="password" id="password" name="password" size="20" value="" /> |
| 1004 |
[% END %] |
| 1121 |
[% END %] |
1005 |
[% END %] |
| 1122 |
</td> |
|
|
| 1123 |
<td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td> |
| 1124 |
<td>[% d.created | $KohaDates %]</td> |
| 1125 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
| 1126 |
<td> |
| 1127 |
<input type="checkbox" id="debarment_[% d.borrower_debarment_id | html %]" name="remove_debarment" value="[% d.borrower_debarment_id | html %]" /> |
| 1128 |
</td> |
| 1129 |
[% END %] |
1006 |
[% END %] |
| 1130 |
</tr> |
1007 |
[% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %] |
| 1131 |
[% END %] |
1008 |
[% IF ( ERROR_password_too_short ) %]<span class="required">Password is too short</span>[% END %] |
| 1132 |
</tbody> |
1009 |
[% IF ( ERROR_password_too_weak ) %]<span class="required">Password is too weak</span>[% END %] |
| 1133 |
</table> |
1010 |
[% IF ( ERROR_password_has_whitespaces ) %]<span class="required">Password has leading or trailing whitespaces</span>[% END %] |
| 1134 |
[% ELSE %] |
1011 |
<div class="hint">Minimum password length: [% minPasswordLength | html %]</div> |
| 1135 |
<p>Patron is currently unrestricted.</p> |
1012 |
</li> |
| 1136 |
[% END %] |
|
|
| 1137 |
|
| 1138 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
| 1139 |
<p><a href="#" id="add_manual_restriction">Add manual restriction</a></p> |
| 1140 |
<fieldset id="manual_restriction_form"> |
| 1141 |
<legend id="manual_restriction_lgd">Add manual restriction</legend> |
| 1142 |
<input type="hidden" id="add_debarment" name="add_debarment" value="0" /> |
| 1143 |
<ol> |
| 1144 |
<li><label for="debarred_comment">Comment: </label><input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" /></li> |
| 1145 |
<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" /> |
| 1146 |
<a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a></li> |
| 1147 |
|
| 1148 |
</ol> |
| 1149 |
<p> |
| 1150 |
<a class="cancel" id="cancel_manual_restriction" href="#">Cancel</a> |
| 1151 |
</p> |
| 1152 |
</fieldset> |
| 1153 |
[% END %] |
| 1154 |
</fieldset> |
| 1155 |
[% END %] |
| 1156 |
[% END %] |
| 1157 |
|
1013 |
|
| 1158 |
[% IF ( step_7 ) %] |
1014 |
<li> |
| 1159 |
[% IF Koha.Preference('HouseboundModule') %] |
1015 |
[% IF ( mandatorypassword ) %] |
| 1160 |
<fieldset class="rows" id="memberentry_housebound_roles"> |
1016 |
<label for="password2" class="required"> |
| 1161 |
<legend id="housebound_roles">Housebound roles</legend> |
1017 |
[% ELSE %] |
| 1162 |
<ol class="radio"> |
1018 |
<label for="password2"> |
| 1163 |
<li> |
1019 |
[% END %] |
| 1164 |
<label class="radio" for="housebound_chooser">Chooser: </label> |
1020 |
Confirm password: |
| 1165 |
[% IF ( housebound_role.housebound_chooser == 1 ) %] |
1021 |
</label> |
| 1166 |
<label for="yes_housebound_chooser">Yes </label> |
1022 |
[% IF ( opadd ) %] |
| 1167 |
<input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" checked="checked" /> |
1023 |
[% IF ( NoUpdateLogin ) %] |
| 1168 |
<label for="no_housebound_chooser">No </label> |
1024 |
[% IF ( opduplicate ) %] |
| 1169 |
<input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" /> |
1025 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" /> |
| 1170 |
[% ELSE %] |
1026 |
[% ELSE %] |
| 1171 |
<label for="yes_housebound_chooser">Yes </label> |
1027 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="[% password | html %]" /> |
| 1172 |
<input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" /> |
1028 |
[% END %] |
| 1173 |
<label for="no_housebound_chooser">No </label> |
|
|
| 1174 |
<input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" checked="checked" /> |
| 1175 |
[% END %] |
| 1176 |
</li> |
| 1177 |
<li> |
| 1178 |
<label class="radio" for="housebound_deliverer">Deliverer:</label> |
| 1179 |
[% IF ( housebound_role.housebound_deliverer == 1 ) %] |
| 1180 |
<label for="yes_housebound_deliverer">Yes </label> |
| 1181 |
<input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" checked="checked" /> |
| 1182 |
<label for="no_housebound_deliverer">No </label> |
| 1183 |
<input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" /> |
| 1184 |
[% ELSE %] |
| 1185 |
<label for="yes_housebound_deliverer">Yes </label> |
| 1186 |
<input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" /> |
| 1187 |
<label for="no_housebound_deliverer">No </label> |
| 1188 |
<input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" checked="checked" /> |
| 1189 |
[% END %] |
| 1190 |
</li> |
| 1191 |
</ol> |
| 1192 |
</fieldset> |
| 1193 |
[% END # hide fieldset %] |
| 1194 |
[% END # IF step_7 %] |
| 1195 |
|
| 1196 |
[% IF ( step_4 ) %] |
| 1197 |
[% IF Koha.Preference('ExtendedPatronAttributes') %] |
| 1198 |
[% UNLESS ( no_patron_attribute_types ) %] |
| 1199 |
<fieldset class="rows" id="memberentry_patron_attributes"> |
| 1200 |
<legend id="patron_attributes_lgd">Additional attributes and identifiers</legend> |
| 1201 |
<input type="hidden" name="setting_extended_patron_attributes" value="1" /> |
| 1202 |
[% FOREACH pa_loo IN patron_attributes %] |
| 1203 |
<ol class="attributes_table"> |
| 1204 |
[% IF pa_loo.class %] |
| 1205 |
<fieldset id="aai_[% pa_loo.class | html %]"> |
| 1206 |
<legend id="[% pa_loo.class | html %]_lgd">[% pa_loo.lib | html %]</legend> |
| 1207 |
[% END %] |
| 1208 |
[% FOREACH patron_attribute IN pa_loo.items %] |
| 1209 |
<li data-category_code="[% patron_attribute.category_code | html %]"> |
| 1210 |
<label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label> |
| 1211 |
[% IF ( patron_attribute.use_dropdown ) %] |
| 1212 |
<select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]"> |
| 1213 |
<option value=""></option> |
| 1214 |
[% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %] |
| 1215 |
[% IF auth_val_loo.authorised_value == patron_attribute.value %] |
| 1216 |
<option value="[% auth_val_loo.authorised_value | html %]" selected="selected"> |
| 1217 |
[% auth_val_loo.lib | html %] |
| 1218 |
</option> |
| 1219 |
[% ELSE %] |
| 1220 |
<option value="[% auth_val_loo.authorised_value | html %]" > |
| 1221 |
[% auth_val_loo.lib | html %] |
| 1222 |
</option> |
| 1223 |
[% END %] |
| 1224 |
[% END %] |
| 1225 |
</select> |
| 1226 |
[% ELSE %] |
1029 |
[% ELSE %] |
| 1227 |
<textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea> |
1030 |
[% IF ( opduplicate ) %] |
|
|
1031 |
<input type="password" id="password2" name="password2" size="20" /> |
| 1032 |
[% ELSE %] |
| 1033 |
<input type="password" id="password2" name="password2" size="20" value="[% password | html %]" /> |
| 1034 |
[% END %] |
| 1228 |
[% END %] |
1035 |
[% END %] |
| 1229 |
<input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" /> |
1036 |
[% ELSE %] |
| 1230 |
<a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a> |
1037 |
[% IF ( password ) %] |
| 1231 |
[% IF ( patron_attribute.repeatable ) %] |
1038 |
[% IF ( NoUpdateLogin ) %] |
| 1232 |
<a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a> |
1039 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="****" /> |
|
|
1040 |
[% ELSE %] |
| 1041 |
[% IF ( opduplicate ) %] |
| 1042 |
<input type="password" id="password2" name="password2" size="20" /> |
| 1043 |
[% ELSE %] |
| 1044 |
<input type="password" id="password2" name="password2" size="20" value="****" /> |
| 1045 |
[% END %] |
| 1046 |
[% END %] |
| 1047 |
[% ELSE %] |
| 1048 |
[% IF ( NoUpdateLogin ) %] |
| 1049 |
<input type="password" id="password2" name="password2" size="20" disabled="disabled" value="" /> |
| 1050 |
[% ELSE %] |
| 1051 |
<input type="password" id="password2" name="password2" size="20" value="" /> |
| 1052 |
[% END %] |
| 1233 |
[% END %] |
1053 |
[% END %] |
|
|
1054 |
[% END %] |
| 1055 |
[% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %] |
| 1056 |
[% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %] |
| 1234 |
</li> |
1057 |
</li> |
| 1235 |
[% END %] |
1058 |
[% END # /UNLESS nopassword %] |
| 1236 |
[% IF pa_loo.class %] |
|
|
| 1237 |
</fieldset> |
| 1238 |
[% END %] |
| 1239 |
</ol> |
1059 |
</ol> |
| 1240 |
[% END %] |
1060 |
</fieldset> <!-- /#memberentry_userid --> |
| 1241 |
</fieldset> |
1061 |
[% END # /UNLESS nouserid && nopassword %] |
| 1242 |
[% END %] |
1062 |
|
| 1243 |
[% END %] |
1063 |
<!--this zones are not necessary in modif mode --> |
| 1244 |
[% END %] |
1064 |
[% UNLESS ( opadd || opduplicate ) %] |
| 1245 |
|
1065 |
<fieldset class="rows" id="memberentry_account_flags"> |
| 1246 |
[% IF ( step_5 ) %] |
1066 |
<legend id="account_flags_lgd">Patron account flags</legend> |
| 1247 |
[% IF ( EnhancedMessagingPreferences ) %] |
1067 |
<ol class="radio"> |
| 1248 |
<fieldset class="rows" id="memberentry_messaging_prefs"> |
1068 |
[% FOREACH flagloo IN flagloop %] |
| 1249 |
<legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend> |
1069 |
<li> |
| 1250 |
<div id="messaging_prefs_loading" class="form-message" style="display:none"> |
1070 |
<label class="radio" for="yes[% flagloo.name | html %]"> |
| 1251 |
<img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading new messaging defaults |
1071 |
[% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no address:[% END %] |
| 1252 |
</div> |
1072 |
[% IF ( flagloo.key == 'lost' ) %]Lost card:[% END %] |
| 1253 |
<input type="hidden" name="setting_messaging_prefs" value="1" /> |
1073 |
</label> |
| 1254 |
[% INCLUDE 'messaging-preference-form.inc' %] |
1074 |
[% IF CAN_user_circulate_manage_restrictions %] |
| 1255 |
[% IF ( SMSSendDriver ) %] |
1075 |
<label for="yes[% flagloo.name | html %]"> |
| 1256 |
<p> |
1076 |
[% IF ( flagloo.yes ) %] |
| 1257 |
<label for="SMSnumber">SMS number:</label> |
1077 |
<input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" checked="checked" /> |
| 1258 |
<input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber | html %]" /> |
1078 |
[% ELSE %] |
| 1259 |
<span class="hint">SMS number should be in the format 1234567890 or +11234567890</span> |
1079 |
<input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" /> |
| 1260 |
</p> |
1080 |
[% END %] |
| 1261 |
[% UNLESS nosms_provider_id %] |
1081 |
Yes |
| 1262 |
<p> |
1082 |
</label> |
| 1263 |
<label for="sms_provider_id">SMS provider:</label> |
1083 |
<label for="no[% flagloo.name | html %]"> |
| 1264 |
<select id="sms_provider_id" name="sms_provider_id"> |
1084 |
[% IF ( flagloo.no ) %] |
| 1265 |
<option value="">Unknown</option> |
1085 |
<input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" checked="checked"/> |
| 1266 |
[% FOREACH s IN sms_providers %] |
1086 |
[% ELSE %] |
| 1267 |
[% IF s.id == sms_provider_id %] |
1087 |
<input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" /> |
| 1268 |
<option value="[% s.id | html %]" selected="selected">[% s.name | html %]</option> |
1088 |
[% END %] |
|
|
1089 |
No |
| 1090 |
</label> |
| 1269 |
[% ELSE %] |
1091 |
[% ELSE %] |
| 1270 |
<option value="[% s.id | html %]">[% s.name | html %]</option> |
1092 |
[% IF flagloo.yes %]Yes[% ELSE %]No[% END %] |
|
|
1093 |
[% END # /IF CAN_user_circulate_manage_restrictions %] |
| 1094 |
</li> |
| 1095 |
[% END # /FOREACH flagloo %] |
| 1096 |
</ol> <!-- /.radio --> |
| 1097 |
</fieldset> <!-- /#memberentry_account_flags --> |
| 1098 |
|
| 1099 |
<fieldset class="rows" id="memberentry_restrictions"> |
| 1100 |
<legend id="restrictions_lgd">Patron restrictions</legend> |
| 1101 |
[% IF ( debarments ) %] |
| 1102 |
<table> |
| 1103 |
<thead> |
| 1104 |
<tr> |
| 1105 |
<th>Type</th> |
| 1106 |
<th>Comment</th> |
| 1107 |
<th>Expiration</th> |
| 1108 |
<th>Created</th> |
| 1109 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
| 1110 |
<th>Remove?</th> |
| 1111 |
[% END %] |
| 1112 |
</tr> |
| 1113 |
</thead> |
| 1114 |
<tbody> |
| 1115 |
[% FOREACH d IN debarments %] |
| 1116 |
<tr> |
| 1117 |
<td>[% d.type | html %]</td> |
| 1118 |
<td> |
| 1119 |
[% IF d.comment.search('OVERDUES_PROCESS') %] |
| 1120 |
Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') | $raw %] |
| 1121 |
[% ELSE %] |
| 1122 |
[% d.comment | $raw %] |
| 1123 |
[% END %] |
| 1124 |
</td> |
| 1125 |
<td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td> |
| 1126 |
<td>[% d.created | $KohaDates %]</td> |
| 1127 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
| 1128 |
<td> |
| 1129 |
<input type="checkbox" id="debarment_[% d.borrower_debarment_id | html %]" name="remove_debarment" value="[% d.borrower_debarment_id | html %]" /> |
| 1130 |
</td> |
| 1131 |
[% END %] |
| 1132 |
</tr> |
| 1271 |
[% END %] |
1133 |
[% END %] |
|
|
1134 |
</tbody> |
| 1135 |
</table> |
| 1136 |
[% ELSE %] |
| 1137 |
<p>Patron is currently unrestricted.</p> |
| 1138 |
[% END # /IF debarments %] |
| 1139 |
|
| 1140 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
| 1141 |
<p><a href="#" id="add_manual_restriction">Add manual restriction</a></p> |
| 1142 |
<fieldset id="manual_restriction_form"> |
| 1143 |
<legend id="manual_restriction_lgd">Add manual restriction</legend> |
| 1144 |
<input type="hidden" id="add_debarment" name="add_debarment" value="0" /> |
| 1145 |
<ol> |
| 1146 |
<li><label for="debarred_comment">Comment: </label><input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" /></li> |
| 1147 |
<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" /> |
| 1148 |
<a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a></li> |
| 1149 |
|
| 1150 |
</ol> |
| 1151 |
<p> |
| 1152 |
<a class="cancel" id="cancel_manual_restriction" href="#">Cancel</a> |
| 1153 |
</p> |
| 1154 |
</fieldset> <!-- /#manual_restriction_form --> |
| 1155 |
[% END # /IF CAN_user_borrowers_edit_borrowers %] |
| 1156 |
</fieldset> <!-- /#memberentry_restrictions --> |
| 1157 |
[% END # /UNLESS ( opadd || opduplicate ) %] |
| 1158 |
[% END # /IF step_3 %] |
| 1159 |
|
| 1160 |
[% IF ( step_7 ) %] |
| 1161 |
[% IF Koha.Preference('HouseboundModule') %] |
| 1162 |
<fieldset class="rows" id="memberentry_housebound_roles"> |
| 1163 |
<legend id="housebound_roles">Housebound roles</legend> |
| 1164 |
<ol class="radio"> |
| 1165 |
<li> |
| 1166 |
<label class="radio" for="housebound_chooser">Chooser: </label> |
| 1167 |
[% IF ( housebound_role.housebound_chooser == 1 ) %] |
| 1168 |
<label for="yes_housebound_chooser">Yes </label> |
| 1169 |
<input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" checked="checked" /> |
| 1170 |
<label for="no_housebound_chooser">No </label> |
| 1171 |
<input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" /> |
| 1172 |
[% ELSE %] |
| 1173 |
<label for="yes_housebound_chooser">Yes </label> |
| 1174 |
<input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" /> |
| 1175 |
<label for="no_housebound_chooser">No </label> |
| 1176 |
<input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" checked="checked" /> |
| 1272 |
[% END %] |
1177 |
[% END %] |
| 1273 |
</select> |
1178 |
</li> |
| 1274 |
</p> |
1179 |
<li> |
| 1275 |
[% END %] |
1180 |
<label class="radio" for="housebound_deliverer">Deliverer:</label> |
| 1276 |
[% END %] |
1181 |
[% IF ( housebound_role.housebound_deliverer == 1 ) %] |
| 1277 |
</fieldset> |
1182 |
<label for="yes_housebound_deliverer">Yes </label> |
|
|
1183 |
<input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" checked="checked" /> |
| 1184 |
<label for="no_housebound_deliverer">No </label> |
| 1185 |
<input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" /> |
| 1186 |
[% ELSE %] |
| 1187 |
<label for="yes_housebound_deliverer">Yes </label> |
| 1188 |
<input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" /> |
| 1189 |
<label for="no_housebound_deliverer">No </label> |
| 1190 |
<input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" checked="checked" /> |
| 1191 |
[% END %] |
| 1192 |
</li> |
| 1193 |
</ol> |
| 1194 |
</fieldset> <!-- /#memberentry_housebound_roles --> |
| 1195 |
[% END # /IF Koha.Preference('HouseboundModule') %] |
| 1196 |
[% END # /IF step_7 %] |
| 1197 |
|
| 1198 |
[% IF ( step_4 ) %] |
| 1199 |
[% IF Koha.Preference('ExtendedPatronAttributes') %] |
| 1200 |
[% UNLESS ( no_patron_attribute_types ) %] |
| 1201 |
<fieldset class="rows" id="memberentry_patron_attributes"> |
| 1202 |
<legend id="patron_attributes_lgd">Additional attributes and identifiers</legend> |
| 1203 |
<input type="hidden" name="setting_extended_patron_attributes" value="1" /> |
| 1204 |
[% FOREACH pa_loo IN patron_attributes %] |
| 1205 |
<ol class="attributes_table"> |
| 1206 |
[% IF pa_loo.class %] |
| 1207 |
<fieldset id="aai_[% pa_loo.class | html %]"> |
| 1208 |
<legend id="[% pa_loo.class | html %]_lgd">[% pa_loo.lib | html %]</legend> |
| 1209 |
[% END %] |
| 1210 |
[% FOREACH patron_attribute IN pa_loo.items %] |
| 1211 |
<li data-category_code="[% patron_attribute.category_code | html %]"> |
| 1212 |
<label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label> |
| 1213 |
[% IF ( patron_attribute.use_dropdown ) %] |
| 1214 |
<select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]"> |
| 1215 |
<option value=""></option> |
| 1216 |
[% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %] |
| 1217 |
[% IF auth_val_loo.authorised_value == patron_attribute.value %] |
| 1218 |
<option value="[% auth_val_loo.authorised_value | html %]" selected="selected"> |
| 1219 |
[% auth_val_loo.lib | html %] |
| 1220 |
</option> |
| 1221 |
[% ELSE %] |
| 1222 |
<option value="[% auth_val_loo.authorised_value | html %]" > |
| 1223 |
[% auth_val_loo.lib | html %] |
| 1224 |
</option> |
| 1225 |
[% END %] |
| 1226 |
[% END %] |
| 1227 |
</select> |
| 1228 |
[% ELSE %] |
| 1229 |
<textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea> |
| 1230 |
[% END %] |
| 1231 |
<input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" /> |
| 1232 |
<a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a> |
| 1233 |
[% IF ( patron_attribute.repeatable ) %] |
| 1234 |
<a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a> |
| 1235 |
[% END %] |
| 1236 |
</li> |
| 1237 |
[% END # /FOREACH patron_attribute %] |
| 1238 |
[% IF pa_loo.class %] |
| 1239 |
</fieldset> |
| 1240 |
[% END %] |
| 1241 |
</ol> <!-- /.attributes_table --> |
| 1242 |
[% END # /FOREACH pa_loo %] |
| 1243 |
</fieldset> <!-- /#memberentry_patron_attributes --> |
| 1244 |
[% END # /UNLESS no_patron_attribute_types %] |
| 1245 |
[% END # /IF Koha.Preference('ExtendedPatronAttributes') %] |
| 1246 |
[% END # /IF step_4 %] |
| 1247 |
|
| 1248 |
[% IF ( step_5 ) %] |
| 1249 |
[% IF ( EnhancedMessagingPreferences ) %] |
| 1250 |
<fieldset class="rows" id="memberentry_messaging_prefs"> |
| 1251 |
<legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend> |
| 1252 |
<div id="messaging_prefs_loading" class="form-message" style="display:none"> |
| 1253 |
<img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading new messaging defaults |
| 1254 |
</div> |
| 1255 |
<input type="hidden" name="setting_messaging_prefs" value="1" /> |
| 1256 |
[% INCLUDE 'messaging-preference-form.inc' %] |
| 1257 |
[% IF ( SMSSendDriver ) %] |
| 1258 |
<p> |
| 1259 |
<label for="SMSnumber">SMS number:</label> |
| 1260 |
<input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber | html %]" /> |
| 1261 |
<span class="hint">SMS number should be in the format 1234567890 or +11234567890</span> |
| 1262 |
</p> |
| 1263 |
[% UNLESS nosms_provider_id %] |
| 1264 |
<p> |
| 1265 |
<label for="sms_provider_id">SMS provider:</label> |
| 1266 |
<select id="sms_provider_id" name="sms_provider_id"> |
| 1267 |
<option value="">Unknown</option> |
| 1268 |
[% FOREACH s IN sms_providers %] |
| 1269 |
[% IF s.id == sms_provider_id %] |
| 1270 |
<option value="[% s.id | html %]" selected="selected">[% s.name | html %]</option> |
| 1271 |
[% ELSE %] |
| 1272 |
<option value="[% s.id | html %]">[% s.name | html %]</option> |
| 1273 |
[% END %] |
| 1274 |
[% END %] |
| 1275 |
</select> |
| 1276 |
</p> |
| 1277 |
[% END # /IF nosms_provider_id %] |
| 1278 |
[% END # /IF SMSSendDriver %] |
| 1279 |
</fieldset> <!-- /#memberentry_messaging_prefs --> |
| 1280 |
[% END # /IF EnhancedMessagingPreferences %] |
| 1281 |
[% END # /IF step_5 %] |
| 1282 |
</form> <!-- /#entryform --> |
| 1283 |
|
| 1284 |
[% IF quickadd && opadd && !check_member %] |
| 1285 |
<form id="quick_add_form" class="toggler"> |
| 1286 |
<fieldset class="rows quick_add"><legend>Quick add</legend> |
| 1287 |
<ol id="quick_add_list"> |
| 1288 |
</ol> |
| 1289 |
</fieldset> |
| 1290 |
</form> |
| 1278 |
[% END %] |
1291 |
[% END %] |
| 1279 |
[% END %] |
|
|
| 1280 |
</form> |
| 1281 |
|
| 1282 |
[% IF quickadd && opadd && !check_member %] |
| 1283 |
<form id="quick_add_form" class="toggler"> |
| 1284 |
<fieldset class="rows quick_add"><legend>Quick add</legend> |
| 1285 |
<ol id="quick_add_list"> |
| 1286 |
</ol> |
| 1287 |
</fieldset> |
| 1288 |
</form> |
| 1289 |
[% END %] |
| 1290 |
|
1292 |
|
|
|
1293 |
[% END # /UNLESS no_add %] |
| 1294 |
</main> |
| 1295 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
| 1296 |
|
| 1297 |
[% UNLESS ( opadd ) %] |
| 1298 |
<div class="col-sm-2 col-sm-pull-10"> |
| 1299 |
<aside> |
| 1300 |
[% INCLUDE 'circ-menu.inc' %] |
| 1301 |
</aside> |
| 1302 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
| 1291 |
[% END %] |
1303 |
[% END %] |
| 1292 |
</main> |
1304 |
</div> <!-- /.row --> |
| 1293 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
|
|
| 1294 |
|
| 1295 |
[% UNLESS ( opadd ) %] |
| 1296 |
<div class="col-sm-2 col-sm-pull-10"> |
| 1297 |
<aside> |
| 1298 |
[% INCLUDE 'circ-menu.inc' %] |
| 1299 |
</aside> |
| 1300 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
| 1301 |
[% END %] |
| 1302 |
</div> <!-- /.row --> |
| 1303 |
|
1305 |
|
| 1304 |
[% MACRO jsinclude BLOCK %] |
1306 |
[% MACRO jsinclude BLOCK %] |
| 1305 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
1307 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
| 1306 |
- |
|
|