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

Batch patron modification

Use a file
[% IF patron_lists %]
Or use a patron list
[% END %]
Or list cardnumbers one by one
Cancel
[% 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:

[% FOREACH notfoundcardnumber IN notfoundcardnumbers %] [% END %]
Cardnumbers not found
[% notfoundcardnumber.cardnumber %]
[% 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 %] [% 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 First name Library Category City State ZIP/Postal code Country Registration date Expiry date Circulation note Opac Note[% attrh.attribute %]
[% borrower.cardnumber %] [% borrower.surname %] [% borrower.firstname %] [% Branches.GetName( borrower.branchcode ) %] [% borrower.category_description %] [% borrower.city %] [% borrower.state %] [% borrower.zipcode %] [% borrower.country %] [% borrower.dateenrolled | $KohaDates %] [% borrower.dateexpiry | $KohaDates %] [% borrower.borrowernotes %] [% borrower.opacnote %][% pa.code %]=[% pa.value %]
[% IF ( op == 'show' ) %]

Edit patrons

Checking the box right next to 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' %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]