[Koha-patches] [PATCH] [SIGNED OFF] Bug 4449: AllowHoldPolicyOverride does not override all hold policies
Nicole Engard
nengard at bywatersolutions.com
Tue Nov 30 08:19:49 CET 2010
From: Ian Walls <ian.walls at bywatersolutions.com>
This patch provides a universal override to any hold policy if the AllowHoldPolicyOverride is set.
Amongst other overrides, this patch allows missing, non-checked out items to be placed on hold even with AllowShelfHolds turned off.
Signed-off-by: Nicole Engard <nengard at bywatersolutions.com>
---
reserve/request.pl | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/reserve/request.pl b/reserve/request.pl
index 859a65b..7e51364 100755
--- a/reserve/request.pl
+++ b/reserve/request.pl
@@ -435,6 +435,9 @@ foreach my $biblionumber (@biblionumbers) {
$item->{available} = 1;
$num_available++;
}
+ } elsif (C4::Context->preference( 'AllowHoldPolicyOverride' ) ) {
+ $item->{override} = 1;
+ $num_override++;
}
# If none of the conditions hold true, then neither override nor available is set and the item cannot be checked
--
1.5.6.5
More information about the Koha-patches
mailing list