Bug 29526: Add a way for patrons to delete their hold history
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Jan 2022 14:53:32 +0000 (11:53 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 11 Feb 2022 00:44:23 +0000 (14:44 -1000)
commit7f13f49ff9f2129a133470b3585d74a040df6650
tree3e78cf5618283429c79c2a9601e9861552e46b2e
parent4c2f4a302e78e253dcf8e47cdbbc8d8fe8c287e1
Bug 29526: Add a way for patrons to delete their hold history

The same way we have a button to immediately delete the checkouts history in the OPAC, we should have a similar option for the holds history.

This patch implements that.

To test:
1. Have a patron with some old checkouts and old holds.
2. Have OPACPrivacy, OPACHoldsHistory and opacreadinghistory enabled.
3. Notice in the OPAC the patron has some old checkouts and holds.
4. Use the Privacy tab to clean checkouts
=> SUCCESS: They are still cleaned as before this patch
5. Try to clean the old holds
=> SUCCESS: They are cleaned!
6. Add some old checkouts and holds
7. Use the new 'All' button
=> SUCCESS: All cleaned
8. Sign off :-D

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt
opac/opac-privacy.pl