From: Bill Erickson Date: Wed, 5 Dec 2012 18:20:02 +0000 (-0500) Subject: csv notify X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=409c5b73616475c11e43f5073fc156825d1f14bc;p=evergreen%2Fequinox.git csv notify Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/NotifyCSV.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/NotifyCSV.pm deleted file mode 100644 index c4fd23f78b..0000000000 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/NotifyCSV.pm +++ /dev/null @@ -1,46 +0,0 @@ -package OpenILS::Application::Trigger::Reactor::NotifyCSV; -use base "OpenILS::Application::Trigger::Reactor"; -use strict; use warnings; - -sub ABOUT { - return q| -Creates a CSV representation of patron actions for the purposes of notifying -the patron via external notification mechanisms. - -Event Environment Requirements - -* patron object with card -* org unit - -Required Event Parameters - -notify_media (e.g. phone) -notify_type (e.g. overdue) -notify_level (e.g. "1" -- first overdue) - -The set of options for each event parameter is dependent on the 3rd-party -processing the CSV file. Using iTiva as the reference implementation, event -parameter values options include: - -notify_media : 'V' (voice), 'T' (text) -notify_level : '1' (1st notice), '2' (2nd notice...) , '3' -notify_type : - 'FINES', - 'OVERDUE', - 'PREOVERDUE', - 'PRERESERVE', - 'RECALL', - 'RESERVE', - 'RESERVECANCEL', - 'RESERVEEXPIRE', - 'SUSPEND' -|; -} - -sub handler { - my ($self, $env) = @_; - return 1 if $self->run_TT($env); - return 0; -} - -1; diff --git a/Open-ILS/src/support-scripts/csv_notify_pusher.pl b/Open-ILS/src/support-scripts/csv_notify_pusher.pl new file mode 100644 index 0000000000..b923a7fff8 --- /dev/null +++ b/Open-ILS/src/support-scripts/csv_notify_pusher.pl @@ -0,0 +1,5 @@ + + +my $header = <