From d36543b93a351f805da664690658b53054636d8d Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Tue, 23 Aug 2011 08:33:04 -0400 Subject: [PATCH] Five initial OU settings for %INCLUDE()% use header_text footer_text notice_text alert_text event_text None are really restricted to a specific purpose. Names are more of a hint than a requirement. Signed-off-by: Thomas Berezansky Signed-off-by: Jason Etheridge --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 81 ++++++++++++++++++++++ Open-ILS/src/sql/Pg/upgrade/XXXX.magic_macros.sql | 82 +++++++++++++++++++++++ 2 files changed, 163 insertions(+) create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.magic_macros.sql 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 5213ff997c..8d224e8960 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -2858,6 +2858,87 @@ INSERT into config.org_unit_setting_type ), 'integer' ) +,( + 'circ.staff_client.receipt.header_text', + oils_i18n_gettext( + 'circ.staff_client.receipt.header_text', + 'Receipt Template: Content of header_text include', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.staff_client.receipt.header_text', + 'Text/HTML/Macros to be inserted into receipt templates in place of %INCLUDE(header_text)%', + 'coust', + 'description' + ), + 'string' + ) +,( + 'circ.staff_client.receipt.footer_text', + oils_i18n_gettext( + 'circ.staff_client.receipt.footer_text', + 'Receipt Template: Content of footer_text include', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.staff_client.receipt.footer_text', + 'Text/HTML/Macros to be inserted into receipt templates in place of %INCLUDE(footer_text)%', + 'coust', + 'description' + ), + 'string' + ) +,( + 'circ.staff_client.receipt.notice_text', + oils_i18n_gettext( + 'circ.staff_client.receipt.notice_text', + 'Receipt Template: Content of notice_text include', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.staff_client.receipt.notice_text', + 'Text/HTML/Macros to be inserted into receipt templates in place of %INCLUDE(notice_text)%', + 'coust', + 'description' + ), + 'string' + ) +,( + 'circ.staff_client.receipt.alert_text', + oils_i18n_gettext( + 'circ.staff_client.receipt.alert_text', + 'Receipt Template: Content of alert_text include', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.staff_client.receipt.alert_text', + 'Text/HTML/Macros to be inserted into receipt templates in place of %INCLUDE(alert_text)%', + 'coust', + 'description' + ), + 'string' + ) +,( + 'circ.staff_client.receipt.event_text', + oils_i18n_gettext( + 'circ.staff_client.receipt.event_text', + 'Receipt Template: Content of event_text include', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.staff_client.receipt.event_text', + 'Text/HTML/Macros to be inserted into receipt templates in place of %INCLUDE(event_text)%', + 'coust', + 'description' + ), + 'string' + ) + ; UPDATE config.org_unit_setting_type diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.magic_macros.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.magic_macros.sql new file mode 100644 index 0000000000..6bfce60fa3 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.magic_macros.sql @@ -0,0 +1,82 @@ +INSERT into config.org_unit_setting_type +( name, label, description, datatype ) VALUES +( + 'circ.staff_client.receipt.header_text', + oils_i18n_gettext( + 'circ.staff_client.receipt.header_text', + 'Receipt Template: Content of header_text include', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.staff_client.receipt.header_text', + 'Text/HTML/Macros to be inserted into receipt templates in place of %INCLUDE(header_text)%', + 'coust', + 'description' + ), + 'string' + ) +,( + 'circ.staff_client.receipt.footer_text', + oils_i18n_gettext( + 'circ.staff_client.receipt.footer_text', + 'Receipt Template: Content of footer_text include', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.staff_client.receipt.footer_text', + 'Text/HTML/Macros to be inserted into receipt templates in place of %INCLUDE(footer_text)%', + 'coust', + 'description' + ), + 'string' + ) +,( + 'circ.staff_client.receipt.notice_text', + oils_i18n_gettext( + 'circ.staff_client.receipt.notice_text', + 'Receipt Template: Content of notice_text include', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.staff_client.receipt.notice_text', + 'Text/HTML/Macros to be inserted into receipt templates in place of %INCLUDE(notice_text)%', + 'coust', + 'description' + ), + 'string' + ) +,( + 'circ.staff_client.receipt.alert_text', + oils_i18n_gettext( + 'circ.staff_client.receipt.alert_text', + 'Receipt Template: Content of alert_text include', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.staff_client.receipt.alert_text', + 'Text/HTML/Macros to be inserted into receipt templates in place of %INCLUDE(alert_text)%', + 'coust', + 'description' + ), + 'string' + ) +,( + 'circ.staff_client.receipt.event_text', + oils_i18n_gettext( + 'circ.staff_client.receipt.event_text', + 'Receipt Template: Content of event_text include', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'circ.staff_client.receipt.event_text', + 'Text/HTML/Macros to be inserted into receipt templates in place of %INCLUDE(event_text)%', + 'coust', + 'description' + ), + 'string' + ); -- 2.11.0