From: Fridolin Somers <fridolin.som...@biblibre.com>

After install, the syspref opaccolorstylesheet will by default contain 
colors.css.
This file exist in OPAC prog theme but not in bootstrap theme.

This patch set the syspref empty by default in 
installer/data/mysql/sysprefs.sql.

Test plan :
- Create a fresh install
- Look at opaccolorstylesheet content
=> without this patch : is contains colors.css
=> with this patch : it is empty
- Enable opac bootstrap theme
- Go to opac main page
- Look at HTTP errors (with firebug for example)
=> without this patch : there is a 404 error because colors.css does not exist
=> with this patch : no such error

Signed-off-by: David Cook <dc...@prosentient.com.au>
---
 installer/data/mysql/sysprefs.sql |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/installer/data/mysql/sysprefs.sql 
b/installer/data/mysql/sysprefs.sql
index aff00ab..a2cd457 100644
--- a/installer/data/mysql/sysprefs.sql
+++ b/installer/data/mysql/sysprefs.sql
@@ -223,7 +223,7 @@ INSERT INTO systempreferences ( `variable`, `value`, 
`options`, `explanation`, `
 ('OpacBrowser','0',NULL,'If ON, enables subject authorities browser on OPAC 
(needs to set misc/cronjob/sbuild_browser_and_cloud.pl)','YesNo'),
 ('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search 
results from the OPAC detail page.','YesNo'),
 ('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
-('opaccolorstylesheet','colors.css','','Define an auxiliary stylesheet for 
OPAC use, to override specified settings from the primary opac.css stylesheet. 
Enter the filename (if the file is in the server\'s css directory) or a 
complete URL beginning with http (if the file lives on a remote 
server).','free'),
+('opaccolorstylesheet','','','Define an auxiliary stylesheet for OPAC use, to 
override specified settings from the primary opac.css stylesheet. Enter the 
filename (if the file is in the server\'s css directory) or a complete URL 
beginning with http (if the file lives on a remote server).','free'),
 ('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC 
page','Textarea'),
 
('OPACdefaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify
 the default field used for sorting','Choice'),
 ('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort 
order','Choice'),
-- 
1.7.7.4


_______________________________________________
Koha-patches mailing list
Koha-patches@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to