[% USE KohaDates %] [% INCLUDE 'doc-head-open.inc'%] Koha › Tools › Batch patron modification [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables-strings.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]
[% IF ( op == 'show_form' ) %]

Batch patron modification

Use a file
Or list cardnumbers one by one
Cancel
[% 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:

[% FOREACH notfoundcardnumber IN notfoundcardnumbers %] [% END %]
Cardnumbers not found
[% notfoundcardnumber.cardnumber %]
[% END %] [% IF ( op == 'show_results' ) %] [% IF ( errors ) %]

Errors occured:

    [% FOREACH error IN errors %] [% IF ( error.error == 'can_not_update' ) %]
  • Can not update patron with borrowernumber [% error.borrowernumber %]
  • [% ELSE %]
  • [% error.error %]
  • [% END %] [% END %]
[% END %] [% END %] [% IF ( op == 'show' ) %]
[% IF ( borrowers ) %] [% END %] [% END %] [% IF borrowers %]
[% IF ( op == 'show' ) %] [% END %] [% FOREACH attrh IN attributes_header %] [% END %] [% FOREACH borrower IN borrowers %] [% IF ( op == 'show' ) %] [% END %] [% FOREACH pa IN borrower.patron_attributes %] [% IF ( pa.code ) %] [% ELSE %] [% END %] [% END %] [% END %]
 Card number Surname Firstname Library Category Registration date Expiry date Restricted[% attrh.attribute %]
[% borrower.cardnumber %] [% borrower.surname %] [% borrower.firstname %] [% borrower.branchname %] [% borrower.categorycode %] [% borrower.dateenrolled | $KohaDates %] [% borrower.dateexpiry | $KohaDates %] [% borrower.debarred | $KohaDates %][% pa.code %]=[% pa.value %]
[% IF ( op == 'show' ) %]

Edit Patrons

Checking the box right next the label will disable the entry and delete the values of that field on all selected patrons
    [% FOREACH field IN fields %]
  1. [% IF ( field.mandatory ) %]
  2. [% END %] [% IF ( patron_attributes_codes ) %]
  3. New
  4. [% END %]
Cancel
[% END %] [% END %] [% END %] [% IF ( op == 'show_results' ) %]

New batch patron modification

[% END %]
[% INCLUDE 'tools-menu.inc' %]