Merge branch 'new/bug11196' into 3.14.x
authorGalen Charlton <gmc@esilibrary.com>
Thu, 14 Nov 2013 19:07:23 +0000 (19:07 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 14 Nov 2013 19:07:23 +0000 (19:07 +0000)
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
kohaversion.pl

index 72eead2..a07103a 100644 (file)
@@ -328,6 +328,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
 ('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'),
 ('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
 ('SCOUserJS','',NULL,'Define custom javascript for inclusion in the SCO module','free'),
+('SearchEngine','Zebra','Solr|Zebra','Search Engine','Choice'),
 ('SearchMyLibraryFirst','0',NULL,'If ON, OPAC searches return results limited by the user\'s library by default if they are logged in','YesNo'),
 ('SelfCheckHelpMessage','','70|10','Enter HTML to include under the basic Web-based Self Checkout instructions on the Help page','Textarea'),
 ('SelfCheckTimeout','120','','Define the number of seconds before the Web-based Self Checkout times out a patron','Integer'),
index 6162bc5..db9bf95 100755 (executable)
@@ -7743,6 +7743,14 @@ if(CheckVersion($DBversion)) {
     SetVersion($DBversion);
 }
 
+$DBversion = "3.13.00.043";
+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
+    $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES('SearchEngine','Zebra','Solr|Zebra','Search Engine','Choice')");
+    print "Upgrade to $DBversion done (Bug 11196: Add system preference SearchEngine if missing )\n";
+    SetVersion($DBversion);
+}
+
+
 =head1 FUNCTIONS
 
 =head2 TableExists($table)
index fcd5d58..1f6df4d 100644 (file)
@@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.13.00.042';
+    our $VERSION = '3.13.00.043';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install