Koha/installer/data/mysql/mandatory
Nick Clemens c3104f4f1c
Bug 35386: Add RESTAPIRenewalBranch system preference
This patch adds a new system prefernce, RESTAPIRenewalBranch, analogous to the existing OpacRenewalBranch system preference.

The preference allows choosing how the renewal branch is recorded in the statistics table.
In order ot preserve existing behaviour, the default is to use the api user's branch.

To test:
1 - Checkout some items to a patron
2 - Add an API user account with circulation permissions and a different homebranch
3 - POST a renewal to: http://localhost:8080/api/v1/checkouts/{checkout_id}/renewal
4 - Check statistics table and confirm the api users branch was used
5 - Apply patches, restart all
6 - Repeat API renewal, confirm same branch used
7 - Change the RESTAPIRenewal syspref
8 - Repeat API renewal and confirm specified branch is used
9 - Confirm the syspref works for all settings

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-03-22 15:07:39 +01:00
..
audio_alerts.sql
auth_val_cat.sql Bug 34587: Copy authorised value categories and authorised values to new installs 2023-10-31 16:46:05 -03:00
keyboard_shortcuts.sql
message_transport_types.sql
sample_notices_message_attributes.sql
sample_notices_message_transports.sql Bug 8838: Add digest option for HOLD notice 2023-10-25 11:07:48 -03:00
subtag_registry.sql Bug 34328: (follow-up) Add description to en_GB 2023-11-08 17:41:37 -03:00
sysprefs.sql Bug 35386: Add RESTAPIRenewalBranch system preference 2024-03-22 15:07:39 +01:00
userflags.sql Bug 30708: DB changes 2023-10-18 15:41:41 -03:00
userpermissions.sql Bug 30230: (follow-up) Update missing descriptions 2024-01-29 12:25:12 +01:00