[Koha-bugs] [Bug 35386] Add ability to configure renewal branch when not specified in API request

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 25 16:31:20 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35386

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #161244|0                           |1
        is obsolete|                            |

--- Comment #10 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 161428
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161428&action=edit
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 at clamsnet.org>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list