[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE KohaDates %] [% USE Branches %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Batch patron deletion and anonymization [% IF step == 2 %]› Confirm[% END %][% IF step == 3 %]› Finished[% END %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]
[% IF !OnlyMine %] [% IF current_branch == '*' %]

Batch patron deletion and anonymization

[% ELSE %]

Batch patron deletion and anonymization for [% Branches.GetName( current_branch ) | html %]

[% END %] [% IF step == 1 %]
Select a library :
[% END %] [% ELSE %]

Batch patron deletion and anonymization for [% Branches.GetLoggedInBranchname | html %]

[% END %] [% IF step == 1 %]

This tool allows you to delete patrons and anonymize checkout history. For deleting patrons, any combination of limits can be used. Patrons will not be deleted if they meet one or more of the following conditions:

  • They have items currently checked out.
  • They have a non-zero account balance.
  • They are the guarantor to another patron.
  • They are in a patron category of type staff.
Delete patrons


Delete patrons who meet the following criteria:
  • [% INCLUDE 'date-format.inc' %]
  • [% INCLUDE 'date-format.inc' %]
  • [% IF Koha.Preference('TrackLastPatronActivity') %]
  • [% INCLUDE 'date-format.inc' %]
  • [% END %]
  • [% IF patron_lists %]
  • [% END %]
Anonymize checkout history [% UNLESS Koha.Preference('AnonymousPatron') %]
The AnonymousPatron system preference is not defined. You can use this feature anyway but NULL will be used to update the checkout history.
[% END %]


  • [% INCLUDE 'date-format.inc' %]
[% END %] [% IF step == 2 %]

Warning

  • [% patrons_to_delete.size || 0 | html %] patrons will be deleted
  • [% patrons_to_anonymize.count || 0 | html %] patrons' checkout histories will be anonymized
[% IF patrons_to_delete.size %]
How should patrons be deleted?

Delete patrons directly from the database. Patron data will not be recoverable.

Move patrons to the deleted patrons table. They can be deleted permanently by the cleanup_database script.

[% END %] [% IF patrons_to_anonymize.count %]
Checkout history for [% patrons_to_anonymize.count | html %] patrons will be anonymized
[% END %] [% IF Koha.Preference('TrackLastPatronActivity') %] [% END %]
Cancel
[% END %] [% IF step == 3 %]
[% IF ( testrun ) %]

[% TotalDel | html %] patrons would have been removed (if it wasn't a test run)

No patron records have been actually removed

[% ELSE %] [% IF ( do_delete ) %] [% IF ( trash ) %]

[% TotalDel | html %] patrons have been successfully moved to trash

[% ELSE %]

[% TotalDel | html %] patrons have been successfully deleted

[% END %] [% ELSE %]

No patron records have been removed

[% END %] [% END %] [% IF do_anonym %]

All checkouts ([% do_anonym | html %]) older than [% last_issue_date | $KohaDates %] have been anonymized

[% ELSE %]

No patron records have been anonymized

[% END %]
[% END %]
[% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] [% INCLUDE 'calendar.inc' %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]