DBRev Bug 6624 - Allow Koha to use the new read API from OpenLibrary
authorBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 23 Feb 2016 22:10:49 +0000 (22:10 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 23 Feb 2016 22:10:49 +0000 (22:10 +0000)
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
Koha.pm
installer/data/mysql/atomicupdate/bug_6624-OpenLibrarySearch_syspref.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 30f1c95..fc56316 100644 (file)
--- a/Koha.pm
+++ b/Koha.pm
@@ -29,7 +29,7 @@ use vars qw{ $VERSION };
 # - #4 : the developer version. The 4th number is the database subversion.
 #        used by developers when the database changes. updatedatabase take care of the changes itself
 #        and is automatically called by Auth.pm when needed.
-$VERSION = "3.23.00.022";
+$VERSION = "3.23.00.023";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_6624-OpenLibrarySearch_syspref.sql b/installer/data/mysql/atomicupdate/bug_6624-OpenLibrarySearch_syspref.sql
deleted file mode 100644 (file)
index f9123c4..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
-VALUES('OpenLibrarySearch','0','If Yes Open Library search results will show in OPAC',NULL,'YesNo');
index e961ffd..ca62a38 100755 (executable)
@@ -11785,6 +11785,16 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
+$DBversion = "3.23.00.023";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q{
+    INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
+VALUES('OpenLibrarySearch','0','If Yes Open Library search results will show in OPAC',NULL,'YesNo');
+});
+
+    print "Upgrade to $DBversion done (Bug 6624 - Allow Koha to use the new read API from OpenLibrary)\n";
+    SetVersion($DBversion);
+}
 # DEVELOPER PROCESS, search for anything to execute in the db_update directory
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.