[% END %]
[% IF ( op == 'show') && (!borrowers) && (!notfoundcardnumbers) # Alert if no patrons given%]
[% op = 'noshow' # Change op to prevent display in code below %]
Batch patrons modification
No patron card numbers given.
[% END #Alert if no patrons %]
[% 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' ) %]
[% END %]
[% END %]
[% END %]
[% IF ( op == 'show_results' ) %]