hold targeter reify : circ tie-ins
authorBill Erickson <berickxx@gmail.com>
Thu, 16 Jun 2016 21:18:47 +0000 (17:18 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 16 Jun 2016 21:18:47 +0000 (17:18 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

index a99847e..7949ab5 100644 (file)
@@ -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;
 }