Bug 31357: Separate holds history from intranetreadinghistory
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 29 Jun 2023 18:17:09 +0000 (14:17 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 20 Oct 2023 19:31:16 +0000 (16:31 -0300)
commitcdf18a00154f2ed42ecfe7c171248712985f9453
treed3a62c1e69d5af842112e374bc055c53a0914bd2
parent472e38f9ad695363a74e0ff62c252caacff8fd49
Bug 31357: Separate holds history from intranetreadinghistory

Currently the system preference intranetreadinghistory determines visibility of both circulation history and holds history tabs in the patron record.  It would be helpful to allow the option of setting each of those independently.

Specifically, libraries have requested the option of being able to view the holds history in a patron record without having to enable viewing of the circulation history.

Test Plan:
1) Apply this patch
2) Restart all the things!
3) Run updatadatabase.pl
4) Verify the new syspref intranetReadingHistoryHolds has the same value
   as the existing syspref intranetreadinghistory
5) Disable intranetreadinghistory, enable intranetReadingHistoryHolds
6) Verify you can view a patron's holds history but not reading history

Signed-off-by: Sam Lau <samalau@gmail.com>
JD amended patch:
* renamed syspref intranetReadingHistoryHolds => IntranetReadingHistoryHolds
* tidy

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Auth.pm
installer/data/mysql/atomicupdate/bug_31357.pl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref
koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt