From 53213496d2d27c2f3038e7b0b4238f62350967f7 Mon Sep 17 00:00:00 2001 From: Brendan Gallagher Date: Tue, 23 Feb 2016 22:10:49 +0000 Subject: [PATCH] DBRev Bug 6624 - Allow Koha to use the new read API from OpenLibrary Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- Koha.pm | 2 +- .../bug_6624-OpenLibrarySearch_syspref.sql | 2 -- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_6624-OpenLibrarySearch_syspref.sql diff --git a/Koha.pm b/Koha.pm index 30f1c9512f..fc563165ea 100644 --- 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 index f9123c4022..0000000000 --- a/installer/data/mysql/atomicupdate/bug_6624-OpenLibrarySearch_syspref.sql +++ /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'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index e961ffd2b0..ca62a38d59 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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. -- 2.39.5