'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',
--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version);
+
+INSERT into config.org_unit_setting_type
+( name, grp, label, description, datatype, fm_class ) VALUES
+( '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);
+
+COMMIT;
[% IF ctx.get_i18n_l(ctx.eg_locale).rtl == 't' %]
<link rel="stylesheet" type="text/css" href="[% ctx.media_prefix %]/css/skin/default/opac/semiauto-rtl.css[% ctx.cache_key %]" />
[% END %]
-
+
+ [% IF ctx.get_org_setting(ctx.search_ou, 'opac.patron.custom_css') %]
+ [% custom_css = ctx.get_org_setting(ctx.search_ou, 'opac.patron.custom_css') %]
+ [% '<style>'; custom_css ; '</style>' %]
+ [% END %]
+
[%- libname = ctx.get_aou(ctx.search_ou).name;
libname = libname | html;
libsname = ctx.get_aou(ctx.search_ou).shortname; %]
--- /dev/null
+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.
+
+