From 755bf81141c1ca3981f905847b16373c1da87329 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 18 Dec 2009 21:45:58 +0000 Subject: [PATCH] patch from Joe Atzberger to retrofit i18n'ed text descriptions for action/trigger reactor seed data git-svn-id: svn://svn.open-ils.org/ILS/trunk@15201 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/sql/Pg/400.schema.action_trigger.sql | 81 ++++++++++++++++++++--- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 12 +++- 2 files changed, 83 insertions(+), 10 deletions(-) diff --git a/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql b/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql index 7a6ce57141..871dafa8cc 100644 --- a/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql +++ b/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql @@ -84,14 +84,79 @@ CREATE TABLE action_trigger.reactor ( module TEXT PRIMARY KEY, -- All live under the OpenILS::Trigger::Reactor:: namespace description TEXT ); -INSERT INTO action_trigger.reactor (module,description) VALUES ('fourty_two','Returns the answer to life, the universe and everything'); -INSERT INTO action_trigger.reactor (module,description) VALUES ('NOOP_True','Always returns true -- reaction always passes'); -INSERT INTO action_trigger.reactor (module,description) VALUES ('NOOP_False','Always returns false -- reaction always fails'); -INSERT INTO action_trigger.reactor (module,description) VALUES ('SendEmail','Send an email based on a user-defined template'); -INSERT INTO action_trigger.reactor (module,description) VALUES ('GenerateBatchOverduePDF','Output a batch PDF of overdue notices for printing'); -INSERT INTO action_trigger.reactor (module,description) VALUES ('MarkItemLost','Marks a circulation and associated item as lost'); -INSERT INTO action_trigger.reactor (module,description) VALUES ('ApplyCircFee','Applies a billing with a pre-defined amount to a circulation'); -INSERT INTO action_trigger.reactor (module,description) VALUES ('ProcessTemplate', 'Processes the configured template'); + +INSERT INTO action_trigger.reactor (module,description) VALUES +( 'fourty_two', + oils_i18n_gettext( + 'fourty_two', + 'Returns the answer to life, the universe and everything', + 'atreact', + 'description' + ) +); +INSERT INTO action_trigger.reactor (module,description) VALUES +( 'NOOP_True', + oils_i18n_gettext( + 'NOOP_True', + 'Always returns true -- reaction always passes', + 'atreact', + 'description' + ) +); +INSERT INTO action_trigger.reactor (module,description) VALUES +( 'NOOP_False', + oils_i18n_gettext( + 'NOOP_False', + 'Always returns false -- reaction always fails', + 'atreact', + 'description' + ) +); +INSERT INTO action_trigger.reactor (module,description) VALUES +( 'SendEmail', + oils_i18n_gettext( + 'SendEmail', + 'Send an email based on a user-defined template', + 'atreact', + 'description' + ) +); +INSERT INTO action_trigger.reactor (module,description) VALUES +( 'GenerateBatchOverduePDF', + oils_i18n_gettext( + 'GenerateBatchOverduePDF', + 'Output a batch PDF of overdue notices for printing', + 'atreact', + 'description' + ) +); +INSERT INTO action_trigger.reactor (module,description) VALUES +( 'MarkItemLost', + oils_i18n_gettext( + 'MarkItemLost', + 'Marks a circulation and associated item as lost', + 'atreact', + 'description' + ) +); +INSERT INTO action_trigger.reactor (module,description) VALUES +( 'ApplyCircFee', + oils_i18n_gettext( + 'ApplyCircFee', + 'Applies a billing with a pre-defined amount to a circulation', + 'atreact', + 'description' + ) +); +INSERT INTO action_trigger.reactor (module,description) VALUES +( 'ProcessTemplate', + oils_i18n_gettext( + 'ProcessTemplate', + 'Processes the configured template', + 'atreact', + 'description' + ) +); -- After an event is reacted to (either success or failure) a cleanup module is run against the resulting environment CREATE TABLE action_trigger.cleanup ( diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index c93830099a..44c937abc8 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -2574,9 +2574,17 @@ INSERT INTO action_trigger.environment (event_def, path) VALUES (6, 'usr'), (6, 'circ_lib.billing_address'); --- ApplyPatronPenalty A/T Reactor +-- Additional A/T Reactors -INSERT INTO action_trigger.reactor (module,description) VALUES ('ApplyPatronPenalty','Applies the conifigured penalty to a patron. Required named environment variables are "user", which refers to the user object, and "context_org", which refers to the org_unit object that acts as the focus for the penalty.'); +INSERT INTO action_trigger.reactor (module,description) VALUES +( 'ApplyPatronPenalty', + oils_i18n_gettext( + 'ApplyPatronPenalty', + 'Applies the conifigured penalty to a patron. Required named environment variables are "user", which refers to the user object, and "context_org", which refers to the org_unit object that acts as the focus for the penalty.', + 'atreact', + 'description' + ) +); INSERT INTO action_trigger.reactor (module,description) VALUES ( 'SendFile', -- 2.11.0