Bug 22513 - Anonymize old ILL requests
Summary: Anonymize old ILL requests
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: ILL (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact:
URL:
Keywords:
: 37901 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-03-14 12:19 UTC by Magnus Enger
Modified: 2024-09-13 13:30 UTC (History)
8 users (show)

See Also:
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 Magnus Enger 2019-03-14 12:19:02 UTC
I don't think this has been mentioned anywhere else? We should probably replace illrequests.borrowernumber with the value from the AnonymousPatron syspref at some point after the request is "done".
Comment 1 Niamh Walker-Headon 2021-04-21 09:11:00 UTC
I'm not sure about this. How would one recognize that a patron had already requested an item to meet copyright obligations?
Comment 2 Magnus Enger 2021-04-21 15:19:08 UTC
Sounds like we need to make it an option that can be turned on or off, then.
Comment 3 Katrin Fischer 2023-01-13 14:56:30 UTC
Just a note here: When the patron is deleted all the requests will currently be deleted as well. I've filed a bug to suggest we change that to "set NULL":

Bug 32630 - Don't delete ILL requests when patron is deleted

I think for statistical purposes libraries would like to keep older requests around for at least a while. 

Maybe a new switch to cleanup_database to delete finished requests older than X days? I've filed:
Bug 32629 - Add option for deleting resolved ILL requests to cleanup_database.pl
Comment 4 Pedro Amorim 2024-09-12 12:24:11 UTC
*** Bug 37901 has been marked as a duplicate of this bug. ***
Comment 5 Pedro Amorim 2024-09-12 12:31:14 UTC
(In reply to Magnus Enger from comment #0)
> I don't think this has been mentioned anywhere else? We should probably
> replace illrequests.borrowernumber with the value from the AnonymousPatron
> syspref at some point after the request is "done".


I think in conjunction with bug 32630: when a patron is deleted, their ILL requests should be kept instead of deleted, and if pseudonymization is enabled the ILL requests should be stored as pseudonymized_transactions for statistical purposes much like checkouts or holds.
Does this make sense? Does this deviate from your original thinking @Magnus or is somewhat what the original thinking was?

I'm not familiar enough with this part of the code yet to know where AnonymousPatron fits here or if it's a separate thing.
Comment 6 Katrin Fischer 2024-09-12 14:56:17 UTC
Sounds good to me Pedro. 

I think this one here would be the next logical step after the other 2: Add something to cleanup_database to anonymize or delete old and completed ILL requests.
Comment 7 Tomás Cohen Arazi (tcohen) 2024-09-13 13:17:38 UTC
(In reply to Katrin Fischer from comment #6)
> Sounds good to me Pedro. 
> 
> I think this one here would be the next logical step after the other 2: Add
> something to cleanup_database to anonymize or delete old and completed ILL
> requests.

That's bug 32629, right?
Comment 8 Katrin Fischer 2024-09-13 13:30:46 UTC
(In reply to Tomás Cohen Arazi from comment #7)
> (In reply to Katrin Fischer from comment #6)
> > Sounds good to me Pedro. 
> > 
> > I think this one here would be the next logical step after the other 2: Add
> > something to cleanup_database to anonymize or delete old and completed ILL
> > requests.
> 
> That's bug 32629, right?

Sounds right :)