[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE KohaDates %] [% USE Branches %] [% USE Categories %] [% 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 | html %]
[% 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 | html %] [% END %] (Borrowernumber: [% error.borrowernumber | html %])
  • [% ELSE %]
  • [% error.error | html %]
  • [% 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 Patron category Street number Address Address 2 City State ZIP/Postal code Country Primary email Phone Mobile Registration date Expiry date Circulation note OPAC note Restriction expiration Restriction comment[% attrh.attribute | html %]
[% borrower.cardnumber | html %] [% borrower.surname | html %] [% borrower.firstname | html %] [% Branches.GetName( borrower.branchcode ) | html %] [% Categories.GetName(borrower.categorycode) | html %] [% borrower.streetnumber | html %] [% borrower.address | html %] [% borrower.address2 | html %] [% borrower.city | html %] [% borrower.state | html %] [% borrower.zipcode | html %] [% borrower.country | html %] [% borrower.email | html %] [% borrower.phone | html %] [% borrower.mobile | html %] [% borrower.dateenrolled | $KohaDates %] [% borrower.dateexpiry | $KohaDates %] [% borrower.borrowernotes | html %] [% borrower.opacnote | html %] [% borrower.debarred | $KohaDates %] [% borrower.debarredcomment | html %][% pa.code | html %]=[% pa.value | html %]
[% 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 %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %] [% Asset.js("js/tools-menu.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]