From f11b2356b39e5e7a1a3b728c072cd531dc93125d Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Thu, 5 Mar 2020 10:44:07 -0500 Subject: [PATCH] LP1849683: i18n and space supplement Minor changes to realign inserts and permission assignment with those surrounding, and remove a bit of EOL whitespace in the release note. Signed-off-by: Jason Boyer --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 17 ++++++++++++++--- docs/RELEASE_NOTES_NEXT/OPAC/custom_css_in_opac.adoc | 7 +++++-- 2 files changed, 19 insertions(+), 5 deletions(-) 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 12cbafdfbd..0b30009bee 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -4410,6 +4410,15 @@ INSERT into config.org_unit_setting_type 'coust', 'description'), 'integer', null) +,( 'opac.patron.custom_css', 'opac', + oils_i18n_gettext('opac.patron.custom_css', + 'Custom CSS for the OPAC', + 'coust', 'label'), + oils_i18n_gettext('opac.patron.custom_css', + 'Custom CSS for the OPAC', + 'coust', 'description'), + 'string', NULL) + ,( 'opac.payment_history_age_limit', 'opac', oils_i18n_gettext('opac.payment_history_age_limit', 'Payment History Age Limit', @@ -5548,9 +5557,6 @@ INSERT into config.org_unit_setting_type 'bool', null) ; -INSERT INTO config.org_unit_setting_type ( name, label, grp, description, datatype, update_perm ) -VALUES ('opac.update.css','Setting CSS in the OPAC','opac','Setting CSS in the OPAC','string',620); - UPDATE config.org_unit_setting_type SET view_perm = (SELECT id FROM permission.perm_list WHERE code = 'VIEW_CREDIT_CARD_PROCESSING' LIMIT 1) @@ -5561,6 +5567,11 @@ UPDATE config.org_unit_setting_type WHERE code = 'ADMIN_CREDIT_CARD_PROCESSING' LIMIT 1) WHERE name LIKE 'credit.processor%' AND update_perm IS NULL; +UPDATE config.org_unit_setting_type + SET update_perm = (SELECT id FROM permission.perm_list + WHERE code = 'UPDATE_ORG_UNIT_SETTING.opac.patron.custom_css' LIMIT 1) + WHERE name = 'opac.patron.custom_css' AND update_perm IS NULL; + -- *** Has to go below coust definition to satisfy referential integrity *** -- In booking, elbow room defines: -- a) how far in the future you must make a reservation on a given item if diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/custom_css_in_opac.adoc b/docs/RELEASE_NOTES_NEXT/OPAC/custom_css_in_opac.adoc index 30309565ae..9ad01f3924 100644 --- a/docs/RELEASE_NOTES_NEXT/OPAC/custom_css_in_opac.adoc +++ b/docs/RELEASE_NOTES_NEXT/OPAC/custom_css_in_opac.adoc @@ -1,3 +1,6 @@ -Custom CSS in OPAC +Custom CSS in OPAC ^^^^^^^^^^^^^^^^^^ -There is now a library setting called opac.patron.custom_css. This can be populated with CSS that will load in the OPAC after the stylesheets and allow for custom CSS without editing server side templates. The permission UPDATE_ORG_UNIT_SETTING.opac.patron.custom_css manages access to it. +There is now a library setting called opac.patron.custom_css. This can be +populated with CSS that will load in the OPAC after the stylesheets and +allow for custom CSS without editing server side templates. The permission +UPDATE_ORG_UNIT_SETTING.opac.patron.custom_css manages access to it. -- 2.11.0