From a7867e74bd58c3d75a85f46e576f0d6bdbe8dc46 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 10 Dec 2019 16:34:56 +0000 Subject: [PATCH] Bug 23533: Reindent patron entry form (memberentrygen.tt) This patch re-indents the template for patron entry/editing. It makes only whitespace changes. It should have no effect on the behavior of the page. To test, create or edit a patron. Test every aspect of the process. At each step the page should work correctly. Including: - Adult patron - Child patron - Organizational patron - Quick patron add - Duplicate patron - With mandatory fields - With 'BorrowerUnwantedField's defined - With ExtendedPatronAttributes enabled Signed-off-by: Lucas Gass --- .../prog/en/modules/members/memberentrygen.tt | 2503 +++++++++++--------- 1 file changed, 1338 insertions(+), 1165 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index 23a32e0785..7735b19a3d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -6,1212 +6,1386 @@ [% USE Branches %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Patrons › - [% UNLESS blocking_error %] - [% 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 %]) - [% END %] - -[% INCLUDE 'doc-head-close.inc' %] - - - -[% INCLUDE 'header.inc' %] -[% INCLUDE 'patron-search.inc' %] - - - -
-
- [% IF ( opadd ) %] -
- [% ELSE %] -
- [% END %] -
- [% INCLUDE 'blocking_errors.inc' %] - - [% IF error_alert %] - [% IF ( error_alert == "no_email" ) %] -
This member has no email
- [% ELSE %] -
[% error_alert | html %]
- [% END %] - [% END %] - [% IF info_alert %] -
Email has been sent.
- [% END %] - - [% INCLUDE 'noadd-warnings.inc' %] - - [% UNLESS ( no_add ) %] -

[% 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 %])

- - [% IF quickadd && opadd && !check_member %] - Show full form - - [% END %] - - [% IF ( check_member ) %] -
-

Duplicate patron record?

-

View existing record

- - - -
- [% END %] - - [% IF ( nok ) %] -
-

The following fields are wrong. Please fix them.

-
    - [% IF ( ERROR_login_exist ) %] -
  • Username/password already exists.
  • - [% END %] - [% IF ERROR_cardnumber_already_exists %] -
  • Cardnumber already in use.
  • - [% END %] - [% IF ERROR_cardnumber_length %] -
  • Cardnumber length is incorrect.
  • - [% END %] - [% IF ( ERROR_age_limitations ) %] -
  • Patron's age is incorrect for their category. - Ages allowed are [% age_low | html %]-[% age_high | html %].
  • - [% END %] - [% IF ( ERROR_branch ) %] -
  • Library is invalid.
  • - [% END %] - [% IF ( ERROR_dateofbirth ) %] -
  • Date of birth is invalid.
  • - [% END %] - [% IF ( ERROR_dateenrolled ) %] -
  • Date of enrollment is invalid.
  • - [% END %] - [% IF ( ERROR_dateexpiry ) %] -
  • Date of expiration is invalid.
  • - [% END %] - [% IF ( ERROR_password_too_short ) %] -
  • Password must be at least [% minPasswordLength | html %] characters long.
  • - [% END %] - [% IF ( ERROR_password_too_weak ) %] -
  • Password must contain at least one digit, one lowercase and one uppercase.
  • - [% END %] - [% IF ( ERROR_password_has_whitespaces ) %] -
  • Password must not contain leading or trailing whitespaces.
  • - [% END %] - [% IF ( ERROR_password_mismatch ) %] -
  • Passwords do not match.
  • - [% END %] - [% IF ( ERROR_extended_unique_id_failed ) %] -
  • [% ERROR_extended_unique_id_failed_description | html %]: Attribute value "[% ERROR_extended_unique_id_failed_value | html %]" is already in use by another patron record.
  • - [% END %] - [% IF ERROR_bad_email %] -
  • The primary email is invalid.
  • - [% END %] - [% IF ERROR_bad_email_secondary %] -
  • The secondary email is invalid.
  • - [% END %] - [% IF ERROR_bad_email_alternative %] -
  • The alternative email is invalid.
  • - [% END %] -
-
- [% END %] - - -
-[% UNLESS ( check_member ) %] - [% IF quickadd && opadd %] - - [% END %] - - [% IF opadd %] - - [% ELSE %] - - [% END %] - Cancel - -[% END %] -
- -
-[% UNLESS ( check_member ) %] - -[% END %] - - - - - - - - - -[% IF ( step ) %][% END %] -[% IF ( opadd ) %] -[% ELSIF ( opduplicate ) %] - -[% ELSE %] - -[% IF step == 4 || step == 5 || step == 6 || step == 2 || step == 1 || step == 7 %] -[%# Only put the cardnumber if we arent showing it in the form later %] -[% IF cardnumber %] - -[% END %] -[% END %] -[% END %] - -[% IF ( step_1 ) %] -[%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] -
- [% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity -
    - [% UNLESS ( I ) %] - [% UNLESS notitle %] - [% IF Koha.Preference('BorrowersTitles') %] -
  1. - [% IF ( mandatorytitle ) %] -
  2. - [% END %] - [% UNLESS ( I ) %] - [% UNLESS nofirstname %] -
  3. - [% IF ( mandatoryfirstname ) %] -
  4. - [% END %] - [% UNLESS nodateofbirth %] -
  5. - [% IF ( mandatorydateofbirth ) %] -
  6. - [% END %] - [% UNLESS noinitials %] -
  7. - [% IF ( mandatoryinitials ) %] -
  8. + [% IF ( I ) %] Organization [% END %] + [% IF ( A ) %] Adult [% END %] + [% IF ( C ) %] Child [% END %] + [% IF ( P ) %] Professional [% END %] + [% IF ( S ) %] Staff [% END %] + [% END %]) +
    [% END %] - [% END %] - [% UNLESS noothernames %] -
  9. - [% IF ( mandatoryothernames ) %] -
  10. - [% END %] - [% UNLESS ( I ) %] - [% UNLESS nosex %] -
  11. +
- [% UNLESS ( opduplicate ) %] - [% IF ( female ) %] - - [% ELSE %] - - [% END %] - [% IF ( male ) %] - - [% ELSE %] - - [% END %] - [% IF ( none ) %] - - [% ELSE %] - - [% END %] +
+
+ [% IF ( opadd ) %] +
[% ELSE %] - - - +
[% END %] +
+ [% INCLUDE 'blocking_errors.inc' %] - - [% END %] - [% END %] - - -[% END # hide fieldset %] - -[% IF show_guarantor || guarantor %] - [% SET possible_relationships = Koha.Preference('borrowerRelationship') %] - -
- Guarantor information - - - [% FOREACH r IN relationships %] -
-
    - [% IF category_type == 'I' %] -
  1. - Organization #: [% IF ( r.guarantor_id ) %] [% r.guarantor_id | html %][% END %] -
  2. - -
  3. - - [% r.guarantor.surname | html %] -
  4. + [% IF error_alert %] + [% IF ( error_alert == "no_email" ) %] +
    This member has no email
    [% ELSE %] -
  5. - Patron #: - [% r.guarantor_id | html %] -
  6. - - [% IF r.guarantor.surname %] -
  7. - - [% r.guarantor.surname | html %] -
  8. - [% END %] - - [% IF r.guarantor.firstname %] -
  9. - - [% r.guarantor.firstname | html %] -
  10. - [% END %] +
    [% error_alert | html %]
    + [% END %] + [% END %] + [% IF info_alert %] +
    Email has been sent.
    + [% END %] -
  11. - - [% r.relationship | html %] -
  12. + [% INCLUDE 'noadd-warnings.inc' %] -
  13. - - -
  14. - [% END %] -
-
- [% END # END relationships foreach %] -
- -
-
    -
  1. - Patron #: - - -
  2. - -
  3. - - -
  4. - -
  5. - - -
  6. - -
  7. - - -
  8. - -
  9. - - Remove -
  10. -
-
- -
    - - - - -
  1. - Search to add -
  2. - - [% IF relationships && Koha.Preference('AllowStaffToSetCheckoutsVisibilityForGuarantor') %] -
  3. - - -
    Allow guarantors of this patron to view this patron's checkouts from the OPAC
    -
  4. - [% END %] - [% IF relationships && Koha.Preference('AllowStaffToSetFinesVisibilityForGuarantor') %] -
  5. - - -
    Allow guarantors of this patron to view this patron's fines from the OPAC
    -
  6. - [% END %] -
-
-
-[% END %] - - -[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] - [% IF Koha.Preference( 'AddressFormat' ) %] - [% INCLUDE "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] - [% END %] -[% END # nostreet && nocity etc group%] + [% IF ( I ) %] Organization [% END %] + [% IF ( A ) %] Adult [% END %] + [% IF ( C ) %] Child [% END %] + [% IF ( P ) %] Professional [% END %] + [% IF ( S ) %] Staff [% END %] + [% END %]) + + + [% IF quickadd && opadd && !check_member %] + Show full form + + [% END %] -[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %] -
- Contact
    + [% IF ( check_member ) %] +
    +

    Duplicate patron record?

    +

    View existing record

    + + +
    + [% END %] - [% UNLESS nocontactname %] -
  1. - [% IF ( mandatorycontactname ) %] -
  2. - [% END %] + [% IF ( nok ) %] +
    +

    The following fields are wrong. Please fix them.

    +
      + [% IF ( ERROR_login_exist ) %] +
    • Username/password already exists.
    • + [% END %] + [% IF ERROR_cardnumber_already_exists %] +
    • Cardnumber already in use.
    • + [% END %] + [% IF ERROR_cardnumber_length %] +
    • Cardnumber length is incorrect.
    • + [% END %] + [% IF ( ERROR_age_limitations ) %] +
    • Patron's age is incorrect for their category. + Ages allowed are [% age_low | html %]-[% age_high | html %].
    • + [% END %] + [% IF ( ERROR_branch ) %] +
    • Library is invalid.
    • + [% END %] + [% IF ( ERROR_dateofbirth ) %] +
    • Date of birth is invalid.
    • + [% END %] + [% IF ( ERROR_dateenrolled ) %] +
    • Date of enrollment is invalid.
    • + [% END %] + [% IF ( ERROR_dateexpiry ) %] +
    • Date of expiration is invalid.
    • + [% END %] + [% IF ( ERROR_password_too_short ) %] +
    • Password must be at least [% minPasswordLength | html %] characters long.
    • + [% END %] + [% IF ( ERROR_password_too_weak ) %] +
    • Password must contain at least one digit, one lowercase and one uppercase.
    • + [% END %] + [% IF ( ERROR_password_has_whitespaces ) %] +
    • Password must not contain leading or trailing whitespaces.
    • + [% END %] + [% IF ( ERROR_password_mismatch ) %] +
    • Passwords do not match.
    • + [% END %] + [% IF ( ERROR_extended_unique_id_failed ) %] +
    • [% ERROR_extended_unique_id_failed_description | html %]: Attribute value "[% ERROR_extended_unique_id_failed_value | html %]" is already in use by another patron record.
    • + [% END %] + [% IF ERROR_bad_email %] +
    • The primary email is invalid.
    • + [% END %] + [% IF ERROR_bad_email_secondary %] +
    • The secondary email is invalid.
    • + [% END %] + [% IF ERROR_bad_email_alternative %] +
    • The alternative email is invalid.
    • + [% END %] +
    +
    + [% END %] - [% UNLESS nocontactfirstname %] -
  3. - [% IF ( mandatorycontactfirstname ) %] -
  4. - [% END %] +
    + [% UNLESS ( check_member ) %] + [% IF quickadd && opadd %] + + [% END %] + + [% IF opadd %] + + [% ELSE %] + + [% END %] + Cancel + + [% END %] +
    - [% UNLESS norelationship %] - [% IF possible_relationships %] -
  5. - - + [% END %] + + + + + + + + + + [% IF ( step ) %] + + [% END %] + [% IF ( opadd ) %] + + [% ELSIF ( opduplicate ) %] + [% ELSE %] - + + [% IF step == 4 || step == 5 || step == 6 || step == 2 || step == 1 || step == 7 %] + [%# Only put the cardnumber if we arent showing it in the form later %] + [% IF cardnumber %] + + [% END %] + [% END %] [% END %] - [% END %] - -
  6. - [% END %] - [% END %] - - [% UNLESS nophone %] -
  7. - [% IF ( mandatoryphone ) %] -
  8. - [% END %] - - [% UNLESS nophonepro %] -
  9. - [% IF ( mandatoryphonepro ) %] -
  10. - [% END %] - - [% UNLESS nomobile %] -
  11. - [% IF ( mandatorymobile ) %] -
  12. - [% END %] - - [% UNLESS noemail %] -
  13. - [% IF ( mandatoryemail ) %] -
  14. - [% END %] - - [% UNLESS noemailpro %] -
  15. - [% IF ( mandatoryemailpro ) %] -
  16. - [% END %] - [% UNLESS nofax %] -
  17. - [% IF ( mandatoryfax ) %] -
  18. - [% END %] -
-
-[%END # hide fieldset %] - - -[% END %] -[% IF ( step_6 ) %] + [% IF ( step_1 ) %] + [%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] +
+ [% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity +
    + [% UNLESS ( I ) %] + [% UNLESS notitle %] + [% IF Koha.Preference('BorrowersTitles') %] +
  1. + [% IF ( mandatorytitle ) %] +
  2. + [% END %] + [% END %] + [% END %] + + [% UNLESS nosurname %] +
  3. + [% IF ( I ) %] + + [% ELSE %] + [% IF ( mandatorysurname ) %] +
  4. + [% END %] + + [% UNLESS ( I ) %] + [% UNLESS nofirstname %] +
  5. + [% IF ( mandatoryfirstname ) %] +
  6. + [% END %] + [% UNLESS nodateofbirth %] +
  7. + [% IF ( mandatorydateofbirth ) %] +
  8. + [% END %] + [% UNLESS noinitials %] +
  9. + [% IF ( mandatoryinitials ) %] +
  10. + [% END %] + [% END %] + [% UNLESS noothernames %] +
  11. + [% IF ( mandatoryothernames ) %] +
  12. + [% END %] + + [% UNLESS ( I ) %] + [% UNLESS nosex %] +
  13. + [% UNLESS ( opduplicate ) %] + [% IF ( female ) %] + + [% ELSE %] + + [% END %] + [% IF ( male ) %] + + [% ELSE %] + + [% END %] + [% IF ( none ) %] + + [% ELSE %] + + [% END %] + [% ELSE %] + + + + [% END %] +
  14. + [% END %] + [% END %] +
+
+ [% END # hide fieldset %] + + [% IF show_guarantor || guarantor %] + [% SET possible_relationships = Koha.Preference('borrowerRelationship') %] + +
+ Guarantor information + + + [% FOREACH r IN relationships %] +
+
    + [% IF category_type == 'I' %] +
  1. + Organization #: [% IF ( r.guarantor_id ) %] [% r.guarantor_id | html %][% END %] +
  2. + +
  3. + + [% r.guarantor.surname | html %] +
  4. + [% ELSE %] +
  5. + Patron #: + [% r.guarantor_id | html %] +
  6. + + [% IF r.guarantor.surname %] +
  7. + + [% r.guarantor.surname | html %] +
  8. + [% END %] + + [% IF r.guarantor.firstname %] +
  9. + + [% r.guarantor.firstname | html %] +
  10. + [% END %] + +
  11. + + [% r.relationship | html %] +
  12. + +
  13. + + +
  14. + [% END %] +
+
+ [% END # END relationships foreach %] +
+ +
+
    +
  1. + Patron #: + + +
  2. + +
  3. + + +
  4. + +
  5. + + +
  6. + +
  7. + + +
  8. + +
  9. + + Remove +
  10. +
+
+ +
    + + + + +
  1. + Search to add +
  2. + + [% IF relationships && Koha.Preference('AllowStaffToSetCheckoutsVisibilityForGuarantor') %] +
  3. + + +
    Allow guarantors of this patron to view this patron's checkouts from the OPAC
    +
  4. + [% END %] + [% IF relationships && Koha.Preference('AllowStaffToSetFinesVisibilityForGuarantor') %] +
  5. + + +
    Allow guarantors of this patron to view this patron's fines from the OPAC
    +
  6. + [% END %] +
+
+
+ [% END %] - [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %] - [% SWITCH Koha.Preference( 'AddressFormat' ) %] - [% CASE 'de' %] - [% INCLUDE 'member-alt-address-style-de.inc' %] - [% CASE # us %] - [% INCLUDE 'member-alt-address-style-us.inc' %] - [% END %] - [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %] -[% END %] -[% IF ( step_2 ) %] - [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %] - [% SWITCH Koha.Preference( 'AddressFormat' ) %] - [% CASE 'de' %] - [% INCLUDE 'member-alt-contact-style-de.inc' %] - [% CASE # us %] - [% INCLUDE 'member-alt-contact-style-us.inc' %] - [% END %] - [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %] + [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] + [% IF Koha.Preference( 'AddressFormat' ) %] + [% INCLUDE "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %] + [% END %] + [% END # nostreet && nocity etc group%] + + [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %] +
+ Contact +
    + [% UNLESS nocontactname %] +
  1. + [% IF ( mandatorycontactname ) %] +
  2. + [% END %] + + [% UNLESS nocontactfirstname %] +
  3. + [% IF ( mandatorycontactfirstname ) %] +
  4. + [% END %] + + [% UNLESS norelationship %] + [% IF possible_relationships %] +
  5. + + +
  6. + [% END %] + [% END %] + + [% UNLESS nophone %] +
  7. + [% IF ( mandatoryphone ) %] +
  8. + [% END %] + + [% UNLESS nophonepro %] +
  9. + [% IF ( mandatoryphonepro ) %] +
  10. + [% END %] + + [% UNLESS nomobile %] +
  11. + [% IF ( mandatorymobile ) %] +
  12. + [% END %] + + [% UNLESS noemail %] +
  13. + [% IF ( mandatoryemail ) %] +
  14. + [% END %] + + [% UNLESS noemailpro %] +
  15. + [% IF ( mandatoryemailpro ) %] +
  16. + [% END %] + + [% UNLESS nofax %] +
  17. + [% IF ( mandatoryfax ) %] +
  18. + [% END %] +
+
+ [% END # hide fieldset %] + + + [% END %] -[% END %] -[% IF ( step_3 ) %] - - [% SET autoMemberNum = Koha.Preference('autoMemberNum') %] -
- Library management
    - [% UNLESS nocardnumber %] -
  1. - [% IF mandatorycardnumber %] -
  2. - [% END %] - [% UNLESS nobranchcode %] -
  3. - - - Required -
  4. - [% END %] -
  5. - - - Required -
  6. - [% UNLESS nosort1 %] -
  7. - [% IF ( mandatorysort1 ) %] -
  8. - [% END %] - [% UNLESS nosort2 %] -
  9. - [% IF ( mandatorysort2 ) %] -
  10. - [% END %] - [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] -
  11. - -
  12. - [% END %] - [% IF Koha.Preference('TranslateNotices') %] -
  13. - - -
  14. - [% END %] -
-
- [% UNLESS nodateenrolled && noopacnote && noborrowernotes %] -
- Library set-up
    - [% UNLESS nodateenrolled %] -
  1. - [% IF ( mandatorydateenrolled ) %] -
  2. - [% END %] - [% UNLESS nodateexpiry %] -
  3. - [% ELSE %] -
  4. - [% END %] - [% IF ( mandatorydateexpiry ) %] -
  5. - [% UNLESS noopacnote %] -
  6. - [% IF ( mandatoryopacnote ) %] -
  7. - [% END %] - [% UNLESS noborrowernotes %] -
  8. - [% IF ( mandatoryborrowernotes ) %] -
  9. - [% END %] -
-
- [% END # hide fieldset %] - - [% UNLESS nouserid && nopassword %] -
- OPAC/Staff login
    - [% UNLESS nouserid %] -
  1. - [% IF ( mandatoryuserid ) %] -
  2. - [%END %] - [% UNLESS nopassword %] -
  3. - [% IF ( mandatorypassword ) %] -
  4. -
  5. - [% IF ( mandatorypassword ) %] -
  6. -
-
- [% END # hide fieldset %][% END %] - - [% UNLESS ( opadd || opduplicate ) %] -
- Patron account flags -
    - [% FOREACH flagloo IN flagloop %] -
  1. - [% IF CAN_user_circulate_manage_restrictions %] - - - [% ELSE %] - [% IF flagloo.yes %]Yes[% ELSE %]No[% END %] - [% END %] + [% IF ( step_3 ) %] + [% SET autoMemberNum = Koha.Preference('autoMemberNum') %] +
    + Library management +
      + [% UNLESS nocardnumber %] +
    1. + [% IF mandatorycardnumber %] +
    2. + [% END %] + + [% UNLESS nobranchcode %] +
    3. + + + Required +
    4. + [% END %] + +
    5. + + + Required +
    6. + + [% UNLESS nosort1 %] +
    7. + [% IF ( mandatorysort1 ) %] +
    8. + [% END %] + + [% UNLESS nosort2 %] +
    9. + [% IF ( mandatorysort2 ) %] +
    10. + [% END %] + + [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] +
    11. + + +
    12. + [% END %] + + [% IF Koha.Preference('TranslateNotices') %] +
    13. + + +
    14. + [% END %] +
    +
    + + [% UNLESS nodateenrolled && noopacnote && noborrowernotes %] +
    + Library set-up
      + [% UNLESS nodateenrolled %] +
    1. + [% IF ( mandatorydateenrolled ) %] +
    2. + [% END %] + + [% UNLESS nodateexpiry %] +
    3. + [% ELSE %] +
    4. + [% END %] + [% IF ( mandatorydateexpiry ) %] +
    5. + + [% UNLESS noopacnote %] +
    6. + [% IF ( mandatoryopacnote ) %] +
    7. + [% END %] + + [% UNLESS noborrowernotes %] +
    8. + [% IF ( mandatoryborrowernotes ) %] +
    9. + [% END %] +
    +
    + [% END # hide fieldset %] + + [% UNLESS nouserid && nopassword %] +
    + OPAC/Staff login
      + [% UNLESS nouserid %] +
    1. + [% IF ( mandatoryuserid ) %] +
    2. + [% END %] + + [% UNLESS nopassword %] +
    3. + [% IF ( mandatorypassword ) %] +
    4. + +
    5. + [% IF ( mandatorypassword ) %] +
    6. +
    +
    + [% END # hide fieldset %] + [% END %] -
  2. - [% END %] - -
-
- -
- Patron restrictions - - [% IF ( debarments ) %] - - - - - - - - [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] - - [% END %] - - - - - [% FOREACH d IN debarments %] - - - - - + [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] - +

Add manual restriction

+
+ + Add manual restriction +
    +
  1. + + +
  2. +
  3. + + + Clear date +
  4. +
+

+ Cancel +

+
[% END %] - + [% END %] - -
TypeCommentExpirationCreatedRemove?
[% d.type | html %] - [% IF d.comment.search('OVERDUES_PROCESS') %] - Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') | $raw %] + + [% UNLESS ( opadd || opduplicate ) %] +
+ Patron account flags +
    + [% FOREACH flagloo IN flagloop %] +
  1. + + [% IF CAN_user_circulate_manage_restrictions %] + + + [% ELSE %] + [% IF flagloo.yes %]Yes[% ELSE %]No[% END %] + [% END %] +
  2. + [% END %] +
+
+ +
+ Patron restrictions + [% IF ( debarments ) %] + + + + + + + + [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] + + [% END %] + + + + [% FOREACH d IN debarments %] + + + + + + [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] + + [% END %] + + [% END %] + +
TypeCommentExpirationCreatedRemove?
[% d.type | html %] + [% IF d.comment.search('OVERDUES_PROCESS') %] + Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') | $raw %] + [% ELSE %] + [% d.comment | $raw %] + [% END %] + + [% IF d.expiration %] + [% d.expiration | $KohaDates %] + [% ELSE %] + Indefinite + [% END %] + [% d.created | $KohaDates %] + +
[% ELSE %] - [% d.comment | $raw %] +

Patron is currently unrestricted.

[% END %] -
[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] Indefinite [% END %][% d.created | $KohaDates %] - -
- [% ELSE %] -

Patron is currently unrestricted.

- [% END %] - - [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] -

Add manual restriction

-
- - Add manual restriction -
    -
  1. -
  2. - Clear date
  3. - -
-

- Cancel -

-
- [% END %] -
- [% END %] - -[% END %] + [% END %] -[% IF ( step_7 ) %] -[% IF Koha.Preference('HouseboundModule') %] -
- Housebound roles -
    -
  1. - - [% IF ( housebound_role.housebound_chooser == 1 ) %] - - - - - [% ELSE %] - - - - - [% END %] -
  2. -
  3. - - [% IF ( housebound_role.housebound_deliverer == 1 ) %] - - - - - [% ELSE %] - - - - - [% END %] -
  4. -
-
-[% END # hide fieldset %] -[% END # IF step_7 %] - -[% IF ( step_4 ) %] -[% IF Koha.Preference('ExtendedPatronAttributes') %][% UNLESS ( no_patron_attribute_types ) %] -
- Additional attributes and identifiers - - [% FOREACH pa_loo IN patron_attributes %] -
    - [% IF pa_loo.class %] -
    - [% pa_loo.lib | html %] - [% END %] - [% FOREACH patron_attribute IN pa_loo.items %] -
  1. - - [% IF ( patron_attribute.use_dropdown ) %] - + + + [% ELSE %] + + + + + [% END %] +
  2. +
  3. + + [% IF ( housebound_role.housebound_deliverer == 1 ) %] + + + + + [% ELSE %] + + + + + [% END %] +
  4. +
+
+ [% END # hide fieldset %] + [% END # IF step_7 %] + + [% IF ( step_4 ) %] + [% IF Koha.Preference('ExtendedPatronAttributes') %] + [% UNLESS ( no_patron_attribute_types ) %] +
+ Additional attributes and identifiers + + [% FOREACH pa_loo IN patron_attributes %] +
    + [% IF pa_loo.class %] +
    + [% pa_loo.lib | html %] + [% END %] + [% FOREACH patron_attribute IN pa_loo.items %] +
  1. + + [% IF ( patron_attribute.use_dropdown ) %] + + [% ELSE %] + + [% END %] + + Clear + [% IF ( patron_attribute.repeatable ) %] + New + [% END %] +
  2. + [% END %] + [% IF pa_loo.class %]
    [% END %] +
+ [% END %] +
[% END %] [% END %] - - [% ELSE %] - - [% END %] - - Clear - [% IF ( patron_attribute.repeatable ) %] - New + [% END %] + + [% IF ( step_5 ) %] + [% IF ( EnhancedMessagingPreferences ) %] +
+ Patron messaging preferences + + + [% INCLUDE 'messaging-preference-form.inc' %] + [% IF ( SMSSendDriver ) %] +

+ + + SMS number should be in the format 1234567890 or +11234567890 +

+ [% UNLESS nosms_provider_id %] +

+ + +

+ [% END %] + [% END %] +
+ [% END %] + [% END %] + + + [% IF quickadd && opadd && !check_member %] +
+
Quick add +
    +
+
+
[% END %] - - [% END %] - [% IF pa_loo.class %][% END %] - - [% END %] - -[% END %][% END %][% END %] - -[% IF ( step_5 ) %][% IF ( EnhancedMessagingPreferences ) %] -
- Patron messaging preferences - - - [% INCLUDE 'messaging-preference-form.inc' %] - [% IF ( SMSSendDriver ) %] -

- - SMS number should be in the format 1234567890 or +11234567890 -

- [% UNLESS nosms_provider_id %] -

- - -

- [% END %] - [% END %] -
-[% END %] [% END %] - - - -[% IF quickadd && opadd && !check_member %] -
-
Quick add -
    -
-
-
-[% END %] -[% END %] -
-
- - [% UNLESS ( opadd ) %] -
- -
- [% END %] -
+ [% END %] + +
+ + [% UNLESS ( opadd ) %] +
+ +
+ [% END %] +
[% MACRO jsinclude BLOCK %] [% Asset.js("lib/hc-sticky.js") | $raw %] @@ -1229,8 +1403,7 @@ } var Sticky; $(document).ready(function() { - - $("#saverecord").css({ 'margin-left': 0 }); + $("#saverecord").css({ 'margin-left': 0 }); Sticky = $("#toolbar"); Sticky.hcSticky({ -- 2.11.0