From: erickson Date: Thu, 23 Apr 2009 16:34:40 +0000 (+0000) Subject: plug in the event creation for the hold.available hook. (note, hold.capture is diffe... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=da6dcbeb18d7167c71b405b25c55b116d6db1a1e;p=evergreen%2Fmasslnc.git plug in the event creation for the hold.available hook. (note, hold.capture is different since transit may be required) git-svn-id: svn://svn.open-ils.org/ILS/trunk@12974 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm index 8a0b8ed423..b3c84ce87b 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm @@ -1965,6 +1965,12 @@ sub attempt_checkin_hold_capture { sub do_hold_notify { my( $self, $holdid ) = @_; + my $e = new_editor(xact => 1); + my $hold = $e->retrieve_action_hold_request($holdid) or return $e->die_event; + $e->rollback; + my $ses = OpenSRF::AppSession->create('open-ils.trigger'); + $ses->request('open-ils.trigger.event.autocreate', 'hold.available', $hold, $hold->pickup_lib); + $logger->info("circulator: running delayed hold notify process"); # my $notifier = OpenILS::Application::Circ::HoldNotify->new(