From 1ebb19a94b7e28016048b9220f3e8b75ded22062 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 19 Jan 2018 15:49:28 -0300 Subject: [PATCH] Bug 17682: DBRev 17.12.00.006 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bug17682_urlchangeforgooglescholar.sql | 1 - installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug17682_urlchangeforgooglescholar.sql diff --git a/Koha.pm b/Koha.pm index 0287f558ed..47784e25be 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 = "17.12.00.005"; +$VERSION = "17.12.00.006"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug17682_urlchangeforgooglescholar.sql b/installer/data/mysql/atomicupdate/bug17682_urlchangeforgooglescholar.sql deleted file mode 100644 index 18e9603ebe..0000000000 --- a/installer/data/mysql/atomicupdate/bug17682_urlchangeforgooglescholar.sql +++ /dev/null @@ -1 +0,0 @@ -UPDATE systempreferences set value = replace(value, "http://www.scholar", "https://scholar") where variable = 'OPACSearchForTitleIn'; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 78ab704b7e..57a1a00c47 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15210,6 +15210,16 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 18915 - Correct CHECKOUT_NOTE notice template)\n"; } +$DBversion = '17.12.00.006'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + UPDATE systempreferences SET value=replace(value, "http://www.scholar", "https://scholar") WHERE variable='OPACSearchForTitleIn'; + }); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 17682 - Update URL for Google Scholar in OPACSearchForTitleIn)\n"; +} + # 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