[% USE Koha %] [% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Batch patron deletion/anonymization [% IF step == 2 %]› Confirm[% END %][% IF step == 3 %]› Finished[% END %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]

Batch patron deletion/anonymization

This tool allows you to delete patrons and anonymize checkout history. For deleting patrons, any combination of limits can be used.

[% IF step == 1 %]
Delete patrons


Delete patrons who meet the following criteria:
  • [% INCLUDE 'date-format.inc' %]
  • [% INCLUDE 'date-format.inc' %]
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 %]
Warnings
  • [% IF ( totalToDelete ) %][% totalToDelete %] [% ELSE %]0 [% END %] patrons will be deleted
  • [% IF ( totalToAnonymize ) %][% totalToAnonymize %] [% ELSE %]0 [% END %] checkout history will be anonymized

[% IF ( totalToDelete ) %]
What do you want to do for deleted patrons?

[% END %] [% IF ( totalToAnonymize ) %] Checkout history for [% totalToAnonymize %] patrons will be anonymized [% END %]
Cancel
[% END %] [% IF step == 3 %]
[% IF ( testrun ) %]

[% TotalDel %] 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 %] patrons have been successfully moved to trash

[% ELSE %]

[% TotalDel %] patrons have been successfully deleted

[% END %] [% ELSE %]

No patron records have been removed

[% END %] [% END %] [% IF ( do_anonym ) %]

All checkouts older than [% last_issue_date | $KohaDates %] have been anonymized

[% ELSE %]

No patron records have been anonymized

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