From: Bill Erickson Date: Thu, 16 Jun 2016 21:18:47 +0000 (-0400) Subject: hold targeter reify : circ tie-ins X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a34b66eb13777c10a8f03e30278ace858035ab59;p=working%2FEvergreen.git hold targeter reify : circ tie-ins Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm index a99847e2ef..7949ab582c 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm @@ -746,7 +746,7 @@ sub uncancel_hold { $e->update_action_hold_request($hold) or return $e->die_event; $e->commit; - OpenILS::Utils::HoldTargeter->new->target(hold => $hold_id) + OpenILS::Utils::HoldTargeter->new->target(hold => $hold_id); return 1; } @@ -1064,14 +1064,14 @@ sub update_hold_impl { if(!$U->is_true($hold->frozen) && $U->is_true($orig_hold->frozen)) { $logger->info("Running targeter on activated hold ".$hold->id); - OpenILS::Utils::HoldTargeter->new->target(hold => $hold->id) + OpenILS::Utils::HoldTargeter->new->target(hold => $hold->id); } # a change to mint-condition changes the set of potential copies, so retarget the hold; if($U->is_true($hold->mint_condition) and !$U->is_true($orig_hold->mint_condition)) { _reset_hold($self, $e->requestor, $hold) } elsif($need_retarget && !defined $hold->capture_time()) { # If needed, retarget the hold due to changes - OpenILS::Utils::HoldTargeter->new->target(hold => $hold->id) + OpenILS::Utils::HoldTargeter->new->target(hold => $hold->id); } return $hold->id; @@ -1159,7 +1159,7 @@ sub update_hold_if_frozen { } else { if($U->is_true($orig_hold->frozen)) { $logger->info("Running targeter on activated hold ".$hold->id); - OpenILS::Utils::HoldTargeter->new->target(hold => $hold->id) + OpenILS::Utils::HoldTargeter->new->target(hold => $hold->id); } } } @@ -1988,7 +1988,7 @@ sub _reset_hold { $e->update_action_hold_request($hold) or return $e->die_event; $e->commit; - OpenILS::Utils::HoldTargeter->new->target(hold => $hold->id) + OpenILS::Utils::HoldTargeter->new->target(hold => $hold->id); return undef; }