[% IF error_alert %]
[% IF ( error_alert == "no_email" ) %]
This member has no email
[% ELSE %]
[% error_alert %]
[% END %]
[% END %]
[% IF info_alert %]
Email has been sent.
[% END %]
[% IF ( no_add ) %]
Cannot add patron
[% IF ( no_branches ) %]
There are no libraries defined. [% IF ( CAN_user_parameters ) %]Please add a library.[% ELSE %]An administrator must define at least one library.[% END %]
[% END %]
[% IF ( no_categories ) %]
There are no patron categories defined. [% IF ( CAN_user_parameters ) %]Please add a patron category.[% ELSE %]An administrator must define at least one patron category.
[% END %][% END %]
[% END %]
[% UNLESS ( no_add ) %]
[% IF ( opadd ) %]
Add[% IF ( categoryname ) %] [% categoryname %] patron[% ELSE %][% IF ( I ) %] Organization patron[% END %][% IF ( A ) %] Adult patron[% END %][% IF ( C ) %] Child patron[% END %][% IF ( P ) %] Professional patron[% END %][% IF ( S ) %] Staff patron[% END %][% END %] [% firstname %] [% surname %]
[% ELSE %]
[% IF ( opduplicate ) %]Duplicate[% ELSE %]Modify[% END %][% IF ( categoryname ) %] [% categoryname %] patron[% ELSE %][% IF ( I ) %] Organization patron[% END %][% IF ( A ) %] Adult patron[% END %][% IF ( C ) %] Child patron[% END %][% IF ( P ) %] Professional patron[% END %][% IF ( S ) %] Staff patron[% END %][% END %]
[% firstname %] [% surname %]
[% END %]
[% IF ( check_member ) %]
[% END %]
[% IF ( debug ) %]
Debug is on (level [% debug %])
[% END %]
[% IF ( nok ) %]
The following fields are wrong. Please fix them.
[% IF ( ERROR_login_exist ) %]
- Username/password already exists.
[% END %]
[% IF ( ERROR_cardnumber ) %]
- Cardnumber already in use.
[% END %]
[% IF ( ERROR_age_limitations ) %]
- Patron's age is incorrect for their category.
Ages allowed are [% age_low %]-[% age_high %].
[% 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_short_password ) %]
- Password must be at least [% minPasswordLength %] characters long.
[% END %]
[% IF ( ERROR_password_mismatch ) %]
- Passwords do not match.
[% END %]
[% IF ( ERROR_extended_unique_id_failed ) %]
- The attribute value
[% ERROR_extended_unique_id_failed %] is already is use by another patron record.
[% END %]
[% END %]
[% UNLESS ( check_member ) %]