repaired function name and JSON
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 30 Oct 2009 13:18:10 +0000 (13:18 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 30 Oct 2009 13:18:10 +0000 (13:18 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14695 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/action_trigger_filters.json.example
Open-ILS/src/support-scripts/action_trigger_runner.pl

index b35f5ed..9f56d52 100644 (file)
@@ -1,12 +1,12 @@
 {
 
-'checkout.due' :
-    { 'context_org' : 'circ_lib',
-      'filter'      :
-            { 'checkin_time'  : null,
-              '-or'           :
-                    [ { 'stop_fines'  : ['MAXFINES', 'LONGOVERDUE'] },
-                      { 'stop_fines'  : null }
+"checkout.due" :
+    { "context_org" : "circ_lib",
+      "filter"      :
+            { "checkin_time"  : null,
+              "-or"           :
+                    [ { "stop_fines"  : ["MAXFINES", "LONGOVERDUE"] },
+                      { "stop_fines"  : null }
                     ]
             }
     }
index f6f26bd..3b14c31 100755 (executable)
@@ -58,7 +58,7 @@ my $hook_handlers = {
 
 if ($opt_custom_filter) {
     open FILTERS, $opt_custom_filter;
-    $hook_handlers = OpenSRF::Utils::JSON->JSON2Perl(join('',(<FILTERS>)));
+    $hook_handlers = OpenSRF::Utils::JSON->JSON2perl(join('',(<FILTERS>)));
     close FILTERS;
 }