From 7e0f0178fb95795219def741d5610762c5b21e14 Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Thu, 31 Jan 2013 16:11:01 -0300 Subject: [PATCH 1/2] Bug 9520 -[Revised] - Update default LOC Z39.50 target This patch updates (if present) target settings of Library of Congress Z39.50 server. Revision: Was trying to update wrong column 'type', now correct column 'syntax'. Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart Amended patch: add the SetVersion call Signed-off-by: Jared Camins-Esakov --- installer/data/mysql/updatedatabase.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index a44e4e81b3..4311824ac3 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -6437,6 +6437,13 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.11.00.XXX"; +if ( CheckVersion($DBversion) ) { + $dbh->do("UPDATE z3950servers SET host = 'lx2.loc.gov', port = 210, db = 'LCDB', syntax = 'USMARC', encoding = 'utf8' WHERE name = 'LIBRARY OF CONGRESS'"); + print "Upgrade to $DBversion done (Bug 9520 - Update default LOC Z39.50 target)\n"; + SetVersion($DBversion); +} + =head1 FUNCTIONS From 6fbe246257925efe7715884e944ac91c0bcd4109 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Sat, 2 Mar 2013 12:09:26 -0500 Subject: [PATCH 2/2] Bug 9520: Increment version number Database update for bug 9520 has been given version 3.11.00.023 --- installer/data/mysql/updatedatabase.pl | 2 +- kohaversion.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 4311824ac3..7e5e243566 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -6437,7 +6437,7 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } -$DBversion = "3.11.00.XXX"; +$DBversion = "3.11.00.023"; if ( CheckVersion($DBversion) ) { $dbh->do("UPDATE z3950servers SET host = 'lx2.loc.gov', port = 210, db = 'LCDB', syntax = 'USMARC', encoding = 'utf8' WHERE name = 'LIBRARY OF CONGRESS'"); print "Upgrade to $DBversion done (Bug 9520 - Update default LOC Z39.50 target)\n"; diff --git a/kohaversion.pl b/kohaversion.pl index bdc568972f..dc3f223eda 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts : use strict; sub kohaversion { - our $VERSION = '3.11.00.022'; + our $VERSION = '3.11.00.023'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install