Bug 9009 - Add separate user js and css for SCO module
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 5 Nov 2012 17:22:24 +0000 (12:22 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 27 Dec 2012 15:05:28 +0000 (10:05 -0500)
commit6bae88f43d1d88c9568a94fb407541111f098415
tree2731f71aa9479c499b950faa5d6bbd8135fa4694
parentd97d8ee1ce230b76a71dc5ad1154b78cb73d9dee
Bug 9009 - Add separate user js and css for SCO module

Add system preferences SCOUserCSS and SCOUserJS to define separate CSS and JavaScript for the Self Checkout Module.

Test plan:
1) Apply patch
2) Run updatedatabase.pl
3) Add something arbitrary to the new sysprefs SCOUserCSS and SCOUserJS ( such as TestCSS and TestJS ).
4) Load the SCO module in a browser, and view the HTML, verify the CSS and JS values in the system preferences have been included.

Signed-off-by: Marc Veron <veron@veron.ch>
I tested with an alert('hello') as JavaScript and some background-color for the CSS. Worked as expected.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
koha-tmpl/opac-tmpl/prog/en/modules/sco/help.tt
koha-tmpl/opac-tmpl/prog/en/modules/sco/receipt.tt
koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt
opac/sco/help.pl
opac/sco/sco-main.pl