]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Allow more granular overrides
authorThomas Berezansky <tsbere@mvlc.org>
Thu, 24 May 2012 15:45:36 +0000 (11:45 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 25 May 2012 15:15:01 +0000 (11:15 -0400)
commitf0cb658f6b7cc62a1529d7d81c42d94111f11445
tree1deed8bdf6e49c43a5477afada171a59c698879e
parentf77d3e4c08f2422a4a5cf3dda390ee18c5546202
Allow more granular overrides

This adds a new parameter to backend override functions. In most cases the
system will act like a hash with all set to 1 was passed in when nothing was
passed in by the caller.

The new parameter should be a hash containing zero or more of the following
options:

all - If true (1) override all events
events - Should be an array of event textcodes to override

For hold placement the "all" option is ignored for possibility checks, but
is checked for other events like HOLD_EXISTS.

Also included for hold placement is to always run possibility checks for
the test and create batch method.

Overall, the default is to act like things did previously.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/BibCommon.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Survey.pm