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

Batch patron modification

Use a file of card numbers
  1. File must contain one card number per line.
Or list card numbers one by one
Cancel
Use a file of borrowernumbers
  1. File must contain one borrowernumber per line.
List borrowernumbers one by one
Cancel
[% IF patron_lists %]
Use a patron list
Cancel
[% END %]
[% 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 or borrowernumbers 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 ) %] [% IF ( useborrowernumbers ) -%]

Warning, the following borrowernumbers were not found:

[% ELSE -%]

Warning, the following card numbers were not found:

[% END %] [% IF ( useborrowernumbers ) -%] [% ELSE -%] [% END %] [% FOREACH notfoundcardnumber IN notfoundcardnumbers %] [% END %]
Borrowernumbers not found
Card numbers 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 ) %] Card number: [% 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' ) %] [% ELSE %] [% END %] [% IF CanUpdatePasswordExpiration %] [% END %] [% FOREACH attrh IN attributes_header %] [% END %] [% FOREACH borrower IN borrowers %] [% IF ( op == 'show' ) %] [% IF CanUpdatePasswordExpiration %] [% IF borrower.password_expiration_date %] [% ELSE %] [% END %] [% END %] [% FOREACH pa IN borrower.patron_attributes %] [% IF ( pa.code ) %] [%# Replace pa.attribute with pa.description if we prefer to display the description %] [% 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 datePassword expiration dateCirculation note OPAC note Restriction expiration Restriction comment[% attrh.attribute | html %]
[% ELSE %] [% END %] [% 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.password_expiration_date | $KohaDates %] Never[% borrower.borrowernotes | html %] [% borrower.opacnote | html %] [% borrower.debarred | $KohaDates %] [% borrower.debarredcomment | html %][% pa.code | html %]=[% pa.attribute | 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' %] [% INCLUDE 'columns_settings.inc' %] [% Asset.js("js/tools-menu.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]