Bug 39879

Summary: Add 'localuse' transactions to pseudonymization
Product: Koha Reporter: Steve, OSLRI, USA <sspohn>
Component: ReportsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: bywater, lisette, valerie
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Steve, OSLRI, USA 2025-05-12 14:53:34 UTC
Currently, it appears that pseudonymization only captures checkouts, renewals and returns.  I'd like to suggest that 'localuse' transactions be captured as well.

Since pseudonymization is a pathway to retaining anonymized data on a journey to patron privacy which would include using the clean-up cron, we'd want to be sure not to lose this data.
Comment 1 Lisette Scheer 2025-05-12 15:40:30 UTC
(In reply to Steve, OSLRI, USA from comment #0)
> Currently, it appears that pseudonymization only captures checkouts,
> renewals and returns.  I'd like to suggest that 'localuse' transactions be
> captured as well.
> 
> Since pseudonymization is a pathway to retaining anonymized data on a
> journey to patron privacy which would include using the clean-up cron, we'd
> want to be sure not to lose this data.

Hi Steve,
With Bug 32440 cleanup_database can be used to selectively delete transactions based on type, so local use can be left while other statistics are deleted after pseudonymization. Since local use doesn't include patron information, it seems to me that leaving them in the statistics table with the new setting for cleanup database should work.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32440
Comment 2 Steve, OSLRI, USA 2025-05-12 15:45:22 UTC
That would work for us I think.  There are borrowernumbers attached to those transactions, but they're just "statistical patrons" so no need to anonymize.  Keeping those in the statistics table should be fine.  Ty for taking a peek at this!

Was trying to see what status would make sense to close this, but not clear to me which to use.  Feel free if you see this to update that appropriately!