From 210ad65f915ddcdb6b71b35b113da6a03c069387 Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Thu, 31 Jan 2013 16:11:01 -0300 Subject: [PATCH] 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 Conflicts: installer/data/mysql/updatedatabase.pl Signed-off-by: Chris Cormack --- 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 755b4f19fe..70e10ca975 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -5309,6 +5309,13 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { } +$DBversion = "3.08.10.001"; +if ( C4::Context->preference("Version") < TransformToNum($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 =head2 TableExists($table) -- 2.39.5