From c93738f1676c8e0c74fab6c1013bbfd9cc63e3cd 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 --- 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 a49cf02de8..27e9743cd8 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -3950,7 +3950,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) @@ -3959,7 +3959,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) @@ -3968,7 +3968,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) @@ -3977,7 +3977,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) @@ -3986,7 +3986,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