Bug 19300: Replace C4::Reserves::OPACItemHoldsAllowed
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 11 Sep 2017 17:15:41 +0000 (14:15 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 2 Jan 2018 14:46:39 +0000 (11:46 -0300)
commitc78746d40d584be2a74dc666b39acfa451728803
tree98d67eaeb1b4083bf73c2ec084c8a554a7e25541
parent44ba06bdb163ae70db53f7f7747735fb7c8f6ea9
Bug 19300: Replace C4::Reserves::OPACItemHoldsAllowed

This patchset move The OPACItemHoldsAllowed logic
(issuingrules.opacitemholds) to a new class method of
Koha::IssuingRules: get_opacitemholds_policy

On the way, this patch will certainly fix the same problem as bug
19298 with onshelfholds.

Test plan:
Make sure the opacitemholds policy is correct when placing a hold at the
OPAC or the staff interface.

Followed test plan which worked as described
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/IssuingRules.pm
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
opac/opac-reserve.pl
reserve/request.pl
t/db_dependent/Koha/IssuingRules.t