[% IF ( op == 'show_form' ) %]
Batch patron modification
[% END %]
[% IF ( op == 'show' or op == 'show_results' ) %]
[% IF ( op == 'show' ) %]
Batch patrons modification
[% ELSE %]
Batch patrons results
[% END %]
[% IF ( notfoundcardnumbers ) %]
Warning, the following cardnumbers were not found:
Cardnumbers not found
[% FOREACH notfoundcardnumber IN notfoundcardnumbers %]
[% notfoundcardnumber.cardnumber %]
[% END %]
[% END %]
[% IF ( op == 'show_results' ) %]
[% IF ( errors ) %]
Errors occurred:
[% FOREACH error IN errors %]
[% IF ( error.error == 'can_not_update' ) %]
Can not update patron.
[% IF ( error.cardnumber ) %] Cardnumber: [% error.cardnumber %] [% END %]
(Borrowernumber: [% error.borrowernumber %])
[% ELSE %]
[% error.error %]
[% END %]
[% END %]
[% END %]
[% END %]
[% IF ( op == 'show' ) %]
[% IF ( borrowers ) %]
[% END %]
[% END %]
[% IF borrowers %]
[% IF ( op == 'show' ) %]
[% END %]
[% END %]
[% END %]
[% IF ( op == 'show_results' ) %]
New batch patron modification
[% END %]