Add srfsh script to call action.purge_circulations(). collab/dyrcona/purge_circulations_updates
authorJason Stephenson <jstephenson@mvlc.org>
Mon, 25 Mar 2013 13:10:40 +0000 (09:10 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Mon, 25 Mar 2013 13:17:58 +0000 (09:17 -0400)
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/Makefile.am
Open-ILS/src/support-scripts/purge_circulations.srfsh [new file with mode: 0755]

index 47ff2e9..4bb4515 100644 (file)
@@ -72,6 +72,7 @@ core_scripts =   $(examples)/oils_ctl.sh \
                 $(supportscr)/thaw_expired_frozen_holds.srfsh \
                 $(supportscr)/long-overdue-status-update.pl \
                 $(supportscr)/action_trigger_runner.pl \
+                $(supportscr)/purge_circulations.srfsh \
                 $(srcdir)/extras/eg_config \
                 $(srcdir)/extras/openurl_map.pl \
                 $(srcdir)/extras/import/marc_add_ids
diff --git a/Open-ILS/src/support-scripts/purge_circulations.srfsh b/Open-ILS/src/support-scripts/purge_circulations.srfsh
new file mode 100755 (executable)
index 0000000..f1caf76
--- /dev/null
@@ -0,0 +1,7 @@
+#!/openils/bin/srfsh
+open open-ils.cstore
+request open-ils.cstore open-ils.cstore.transaction.begin
+request open-ils.cstore open-ils.cstore.json_query {"from":["action.purge_circulations"]}
+request open-ils.cstore open-ils.cstore.transaction.commit
+close open-ils.cstore
+