]> git.koha-community.org Git - koha.git/commit
Bug 25426: Allow return policy to be selected via syspref and not just home library
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 25 Aug 2022 13:05:32 +0000 (13:05 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 18 Oct 2022 12:14:52 +0000 (09:14 -0300)
commitef0bf75eed10275b0abf3a134dc392fd77ed507c
tree36562070fe13665a865b65c04e899449319d683a
parentab1e0a5d6ad2eb31e4322ec11a1e971386144f5d
Bug 25426: Allow return policy to be selected via syspref and not just home library

1) Apply this patch
2) Run updatedatabase.pl
3) Verify CircControlReturnsBranch is set to home library by default
4) Set a Return policy for Branch A to "Item returns home" ( homebranch )
5) Set a Return polity for Branch B to "Item returns to issuing library" ( holdingbranch )
6) Set a Return polity for Branch C to "Item floats" ( noreturn )
7) Create an item with homebranch of Branch A, holding branch of branch B
8) Log in as Branch C
9) Set CircControlReturnsBranch to "the library the item is currently held by"
10) Check the item in, note it should be returned to the holding library
11) Set CircControlReturnsBranch to "the library the item is owned by"
12) Check the item in, note it should be returned to the home library
13) Set CircControlReturnsBranch to "the library you are logged in at"
14) Check the item in, note it should float

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Circulation.pm
Koha/CirculationRules.pm
circ/returns.pl
installer/data/mysql/atomicupdate/bug_25426.pl [new file with mode: 0755]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
t/db_dependent/Circulation/Branch.t