Change hold targeter to not pull out the pickup lib. collab/Callender/closed_holds_target_local_copies
authorSteven Callender <stevecallender@esilibrary.com>
Tue, 24 Mar 2020 17:10:57 +0000 (13:10 -0400)
committerSteven Callender <stevecallender@esilibrary.com>
Tue, 24 Mar 2020 17:10:57 +0000 (13:10 -0400)
There is an issue where if a hold only finds items at the local
pickup library that are potential hold copies, it would ignore
the closed at pickup lib. This should force that setting to be
checked no matter what.

Signed-off-by: Steven Callender <stevecallender@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Utils/HoldTargeter.pm

index 44685cf..225e3cf 100644 (file)
@@ -679,14 +679,10 @@ sub compile_weighted_proximity_map {
 sub filter_closed_date_copies {
     my $self = shift;
 
-    # Pre-fetch the org setting value for all represented circ libs that
-    # are closed, minuse the pickup_lib, since it has its own special setting.
+    # Pre-fetch the org setting value for all represented circ libs that are closed
     my $circ_libs = $self->get_copy_circ_libs;
     $circ_libs = [
-        grep {
-            $self->parent->{closed_orgs}->{$_} && 
-            $_ ne $self->hold->pickup_lib
-        } @$circ_libs
+        grep {$self->parent->{closed_orgs}->{$_}} @$circ_libs
     ];
 
     # If none of the represented circ libs are closed, we're done here.