From 29e3d24a599a5aaca85c2f1ba91ac2685d991e27 Mon Sep 17 00:00:00 2001 From: Mike Risher Date: Tue, 11 Jun 2019 09:57:58 -0700 Subject: [PATCH] lp1705302 update description of receipt template Updated editing instructions to give correct syntax and changing name from receipt templates to Print Templates Signed-off-by: Mike Risher Changes to be committed: modified: src/sql/Pg/950.data.seed-values.sql new file: src/sql/Pg/upgrade/XXXX.data.lp1705302-update-receipt-template-setting-descriptions.sql Signed-off-by: Terran McCanna Signed-off-by: Jane Sandberg --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 10 +++--- ...pdate-receipt-template-setting-descriptions.sql | 36 ++++++++++++++++++++++ 2 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1705302-update-receipt-template-setting-descriptions.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 2e7dbbc471..5856dabfe0 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -3960,7 +3960,7 @@ INSERT into config.org_unit_setting_type '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)%', + 'Text to be inserted into Print Templates in place of {{includes.alert_text}}', 'coust', 'description'), 'string', null) @@ -3969,7 +3969,7 @@ INSERT into config.org_unit_setting_type '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)%', + 'Text to be inserted into Print Templates in place of {{includes.event_text}}', 'coust', 'description'), 'string', null) @@ -3978,7 +3978,7 @@ INSERT into config.org_unit_setting_type '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)%', + 'Text to be inserted into Print Templates in place of {{includes.footer_text}}', 'coust', 'description'), 'string', null) @@ -3987,7 +3987,7 @@ INSERT into config.org_unit_setting_type '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)%', + 'Text to be inserted into Print Templates in place of {{includes.header_text}}', 'coust', 'description'), 'string', null) @@ -3996,7 +3996,7 @@ INSERT into config.org_unit_setting_type '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)%', + 'Text to be inserted into Print Templates in place of {{includes.notice_text}}', 'coust', 'description'), 'string', null) diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1705302-update-receipt-template-setting-descriptions.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1705302-update-receipt-template-setting-descriptions.sql new file mode 100644 index 0000000000..ae4c590b2b --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1705302-update-receipt-template-setting-descriptions.sql @@ -0,0 +1,36 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); + +UPDATE config.org_unit_setting_type + SET description = oils_i18n_gettext( + 'circ.staff_client.receipt.alert_text', + 'Text to be inserted into Print Templates in place of {{includes.alert_text}}', + 'cwst', 'label') + WHERE name = 'circ.staff_client.receipt.alert_text'; +UPDATE config.org_unit_setting_type + SET description = oils_i18n_gettext( + 'circ.staff_client.receipt.event_text', + 'Text to be inserted into Print Templates in place of {{includes.event_text}}', + 'cwst', 'label') + WHERE name = 'circ.staff_client.receipt.event_text'; +UPDATE config.org_unit_setting_type + SET description = oils_i18n_gettext( + 'circ.staff_client.receipt.footer_text', + 'Text to be inserted into Print Templates in place of {{includes.footer_text}}', + 'cwst', 'label') + WHERE name = 'circ.staff_client.receipt.footer_text'; +UPDATE config.org_unit_setting_type + SET description = oils_i18n_gettext( + 'circ.staff_client.receipt.header_text', + 'Text to be inserted into Print Templates in place of {{includes.header_text}}', + 'cwst', 'label') + WHERE name = 'circ.staff_client.receipt.header_text'; +UPDATE config.org_unit_setting_type + SET description = oils_i18n_gettext( + 'circ.staff_client.receipt.notice_text', + 'Text to be inserted into Print Templates in place of {{includes.notice_text}}', + 'cwst', 'label') + WHERE name = 'circ.staff_client.receipt.notice_text'; + +COMMIT; -- 2.11.0