From 18738736d62fe055c6efeca70804a1d06dceb00b 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 --- installer/data/mysql/updatedatabase.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index a44e4e8..1937868 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -6434,6 +6434,12 @@ if ( CheckVersion($DBversion) ) { "INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('Persona',0,'Use Mozilla Persona for login','','YesNo')" ); print "Upgrade to $DBversion done (Bug 9587 - Allow login via Persona)\n"; +} + +$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', 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); } -- 1.7.9.5