From 91b8aec2940337dece8d4d1c91fd37feafcd3a3e Mon Sep 17 00:00:00 2001 From: Magnus Enger Date: Wed, 8 May 2013 11:10:27 +0200 Subject: [PATCH] Bug 10134 - set XSLT usage ON as default, for new Koha installs Currently, new installs are created with XSLT display set to "off", but XSLT seems to be the preferred way to display records, so having the default be "on" instead seems to make sense. This patch will of course only affect new installs. To test: - Apply the patch - Run through the webinstaller on an empty database - Log in to the staff client and search for "xslt" in system preferences - Verify that XSLTDetailsDisplay, XSLTResultsDisplay, OPACXSLTDetailsDisplay and OPACXSLTResultsDisplay are all set to "default" --- installer/data/mysql/sysprefs.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index 34e2ca0..8576d5d 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -211,10 +211,10 @@ INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES('OPACShelfBrowser','1','','Enable/disable Shelf Browser on item details page. WARNING: this feature is very resource consuming on collections with large numbers of items.','YesNo'); INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES -('OPACXSLTDetailsDisplay','','','Enable XSL stylesheet control over details page display on OPAC','Free'), -('OPACXSLTResultsDisplay','','','Enable XSL stylesheet control over results page display on OPAC','Free'), -('XSLTDetailsDisplay','','','Enable XSL stylesheet control over details page display on intranet','Free'), -('XSLTResultsDisplay','','','Enable XSL stylesheet control over results page display on intranet','Free'); +('OPACXSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on OPAC','Free'), +('OPACXSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on OPAC','Free'), +('XSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on intranet','Free'), +('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'); INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES('AdvancedSearchTypes','itemtypes','itemtypes|ccode','Select which set of fields comprise the Type limit in the advanced search','Choice'); INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES('AllowOnShelfHolds', '0', '', 'Allow hold requests to be placed on items that are not on loan', 'YesNo'); INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES('AllowHoldsOnDamagedItems', '1', '', 'Allow hold requests to be placed on damaged items', 'YesNo'); -- 1.7.9.5