@@ -, +, @@ --- installer/data/mysql/sysprefs.sql | 2 ++ installer/data/mysql/updatedatabase.pl | 8 ++++++++ .../en/modules/admin/preferences/circulation.pref | 10 ++++++++++ koha-tmpl/opac-tmpl/prog/en/modules/sco/help.tt | 3 +++ koha-tmpl/opac-tmpl/prog/en/modules/sco/receipt.tt | 2 ++ .../opac-tmpl/prog/en/modules/sco/sco-main.tt | 3 ++- opac/sco/help.pl | 5 +++++ opac/sco/sco-main.pl | 5 +++++ 8 files changed, 37 insertions(+), 1 deletions(-) --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -386,3 +386,5 @@ INSERT INTO systempreferences (variable,value,explanation,type) VALUES('OPACdidy INSERT INTO systempreferences (variable,value,explanation,type) VALUES('INTRAdidyoumean',NULL,'Did you mean? configuration for the Intranet. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'); INSERT INTO systempreferences (variable, value, options, explanation, type) VALUES ('BlockReturnOfWithdrawnItems', '1', '0', 'If enabled, items that are marked as withdrawn cannot be returned.', 'YesNo'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('HoldsToPullStartDate','2','Set the default start date for the Holds to pull list to this many days ago',NULL,'Integer'); +INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserCSS', '', NULL, 'Add CSS to be included in the SCO module in an embedded [% END %] + +[% IF ( SCOUserJS ) %][% END %]
--- a/koha-tmpl/opac-tmpl/prog/en/modules/sco/receipt.tt +++ a/koha-tmpl/opac-tmpl/prog/en/modules/sco/receipt.tt @@ -26,6 +26,8 @@ function closeNow() } +[% IF ( SCOUserCSS ) %][% END %] +[% IF ( SCOUserJS ) %][% END %] --- a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt +++ a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt @@ -95,12 +95,13 @@ $(document).ready(function() { [% IF ( opacuserjs ) %][% END %] - +[% IF ( SCOUserJS ) %][% END %] [% IF ( OPACUserCSS ) %][% END %] +[% IF ( SCOUserCSS ) %][% END %] --- a/opac/sco/help.pl +++ a/opac/sco/help.pl @@ -52,5 +52,10 @@ if (C4::Context->preference('SelfCheckHelpMessage')) { $template->param(SelfCheckHelpMessage => C4::Context->preference('SelfCheckHelpMessage')); } +$template->param( + SCOUserJS => C4::Context->preference('SCOUserJS'), + SCOUserCSS => C4::Context->preference('SCOUserCSS'), +); + output_html_with_http_headers $query, $cookie, $template->output; --- a/opac/sco/sco-main.pl +++ a/opac/sco/sco-main.pl @@ -263,4 +263,9 @@ if ($borrower->{cardnumber}) { ); } +$template->param( + SCOUserJS => C4::Context->preference('SCOUserJS'), + SCOUserCSS => C4::Context->preference('SCOUserCSS'), +); + output_html_with_http_headers $query, $cookie, $template->output; --