X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Ftools%2Fcleanborrowers.tt;h=ae7df4edb5864aaae0f8df870c8b1b98aba59781;hb=df97814f3034a3d5015546c4eca21f08ae951e37;hp=dfe775c5058f17f85f845384d58c1a8c909b1ee2;hpb=3213b34082afd6a3e0338e6b1e299ada254cf725;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt index dfe775c505..ae7df4edb5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt @@ -1,5 +1,8 @@ +[% USE Koha %] +[% USE KohaDates %] +[% USE Branches %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Tools › Clean patron records [% IF ( step2 ) %]› Confirm[% END %][% IF ( step3 ) %]› Finished[% END %] +Koha › Tools › Batch patron deletion/anonymization [% IF step == 2 %]› Confirm[% END %][% IF step == 3 %]› Finished[% END %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'calendar.inc' %] @@ -41,114 +53,177 @@ [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] - +
- -
-
-
-

Delete some old patrons/Anonymize some check-out history

+
+
+
+[% IF !Branches.OnlyMine %] +
+ Select a library : + +
+ [% IF current_branch == '*' %] +

Batch patron deletion/anonymization

+ [% ELSE %] +

Batch patron deletion/anonymization for [% Branches.GetName( current_branch ) %]

+ [% END %] +[% ELSE %] +

Batch patron deletion/anonymization for [% Branches.GetName( Branches.GetLoggedInBranchcode ) %]

+[% END %] -[% IF ( step1 ) %] +[% IF step == 1 %] + +
+

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

+
- What do you want to do ? -

- - - [% INCLUDE 'date-format.inc' %]

- -

- - - [% INCLUDE 'date-format.inc' %]

- - + Delete patrons +

+
+
Delete patrons who meet the following criteria:
+
    +
  • + + + [% INCLUDE 'date-format.inc' %] +
  • +
  • + + + [% INCLUDE 'date-format.inc' %] +
  • +
  • + + +
  • + [% 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 ( step2 ) %] +[% IF step == 2 %]
Warnings - -
    -
  • [% IF ( totalToDelete ) %][% totalToDelete %] [% ELSE %]0 [% END %] patrons will be deleted
  • -
  • [% IF ( totalToAnonymize ) %][% totalToAnonymize %] [% ELSE %]0 [% END %] check-out history will be anonymized
  • -
+
    +
  • [% patrons_to_delete.size || 0 %] patrons will be deleted
  • +
  • [% patrons_to_anonymize.size || 0 %] patron's checkout histories will be anonymized
  • +

- [% IF ( totalToDelete ) %] + [% IF patrons_to_delete.size %]
What do you want to do for deleted patrons? + - - + +
- -
- [% END %] - [% IF ( totalToAnonymize ) %] +
+ +
- Check-out history for [% totalToAnonymize %] patrons will be anonymized - [% END %] - - - - + [% IF patrons_to_anonymize.size %] + Checkout history for [% patrons_to_anonymize.size %] patrons will be anonymized + + [% END %] + + + + + + + + -
Cancel
+
Cancel
[% END %] -[% IF ( step3 ) %] +[% IF step == 3 %]
- - [% IF ( do_delete ) %] + [% 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 %] - [% IF ( do_anonym ) %] -

All patrons with checkouts older than [% filterdate1 %] have been anonymized

- [% ELSE %] -

No patron records have been anonymized

+ [% 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 %]