Bug 39879 - Add 'localuse' transactions to pseudonymization
Summary: Add 'localuse' transactions to pseudonymization
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Reports (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-12 14:53 UTC by Steve, OSLRI, USA
Modified: 2025-05-12 15:45 UTC (History)
3 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!