Bug 4449: AllowHoldPolicyOverride does not override all hold policies
authorIan Walls <ian.walls@bywatersolutions.com>
Tue, 30 Nov 2010 07:19:49 +0000 (02:19 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 1 Dec 2010 19:35:58 +0000 (08:35 +1300)
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@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
reserve/request.pl

index 859a65b..7e51364 100755 (executable)
@@ -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