LP1849683: i18n and space supplement
authorJason Boyer <JBoyer@eoli.info>
Thu, 5 Mar 2020 15:44:07 +0000 (10:44 -0500)
committerJason Boyer <JBoyer@eoli.info>
Tue, 31 Mar 2020 11:53:16 +0000 (07:53 -0400)
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 <JBoyer@eoli.info>

Open-ILS/src/sql/Pg/950.data.seed-values.sql
docs/RELEASE_NOTES_NEXT/OPAC/custom_css_in_opac.adoc

index 12cbafd..0b30009 100644 (file)
@@ -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
index 3030956..9ad01f3 100644 (file)
@@ -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.