From 7c948f6fcca0d5fbb95f3947089d1f34129526df Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Thu, 31 Jan 2013 16:11:01 -0300 Subject: [PATCH] Bug 9520 - Update default LOC Z39.50 target This patch updates (if present) target settings of Library of Congress Z39.50 server. --- installer/data/mysql/updatedatabase.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 5571d1e..892d68c 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -6390,6 +6390,14 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } +$DBversion = "3.11.00.XXX"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("UPDATE z3950servers SET host = 'lx2.loc.gov', port = 210, db = 'LCDB', type = '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) -- 1.7.9.5