https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21712

--- Comment #1 from Marcel de Rooy <[email protected]> ---
Created attachment 81489
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81489&action=edit
Bug 21712: Report anonymized patron records

The solution is rather limited but effective on itself.
It only needs an enabled pref BorrowersLog.
We log a specific ANONYMIZE action in Koha::Patron::anonymize.

Now we only need to add a SQL report like:
    select object AS borrowernumber, timestamp AS date_anonymized from
action_logs where module='MEMBERS' and action='ANONYMIZE'
Depending on your needs, you could give this report a date parameter to
show all actions from a given date onwards.

Test plan:
[1] Add a patron.
[2] Enable BorrowersLog
[3] Run in perl this line:
    use Koha::Patrons; Koha::Patrons->find(BORROWERNUMBER)->anonymize;

    Or (much more work): enable GDPR, unsubscribe, set reflection delay to
    zero and anonymize delay to zero and run cleanup_database.pl.
[4] Check if the log contains a ANONYMIZE action for this patron.

Signed-off-by: Marcel de Rooy <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to