/**
 *  '$RCSfile$'
 *  Copyright: 2004 Regents of the University of California and the
 *             National Center for Ecological Analysis and Synthesis
 *
 *   '$Author: tao $'
 *     '$Date: 2005-03-03 11:12:49 -0800 (Thu, 03 Mar 2005) $'
 * '$Revision: 2392 $'
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 


/*
 * Update the XML_CATALOG table. In Metacat 1.4.0, the system_id in xml_catalog
 * pointed to knb metacat no matter where you install it. We need change it
 * to local schema or dtd file.
 */
UPDATE xml_catalog 
   SET system_id = '@systemidserver@@html-path@/dtd/eml-access-@eml-version@.dtd'
   WHERE public_id = '-//ecoinformatics.org//eml-access-@eml-version@//EN';
UPDATE xml_catalog 
   SET system_id = '@systemidserver@@html-path@/dtd/eml-attribute-@eml-version@.dtd'
   WHERE public_id = '-//ecoinformatics.org//eml-attribute-@eml-version@//EN';
UPDATE xml_catalog 
   SET system_id = '@systemidserver@@html-path@/dtd/eml-constraint-@eml-version@.dtd'
   WHERE public_id = '-//ecoinformatics.org//eml-constraint-@eml-version@//EN';
UPDATE xml_catalog 
   SET system_id = '@systemidserver@@html-path@/dtd/eml-coverage-@eml-version@.dtd'
   WHERE public_id = '-//ecoinformatics.org//eml-coverage-@eml-version@//EN';
UPDATE xml_catalog 
   SET system_id = '@systemidserver@@html-path@/dtd/eml-coverage-@eml-version@.dtd'
   WHERE public_id = '-//ecoinformatics.org//eml-coverage-@eml-version@//EN';
UPDATE xml_catalog 
   SET system_id = '@systemidserver@@html-path@/dtd/eml-dataset-@eml-version@.dtd'
   WHERE public_id = '-//ecoinformatics.org//eml-dataset-@eml-version@//EN';
UPDATE xml_catalog 
   SET system_id = '@systemidserver@@html-path@/dtd/eml-entity-@eml-version@.dtd'
   WHERE public_id = '-//ecoinformatics.org//eml-entity-@eml-version@//EN';
UPDATE xml_catalog 
   SET system_id = '@systemidserver@@html-path@/dtd/eml-literature-@eml-version@.dtd'
   WHERE public_id = '-//ecoinformatics.org//eml-literature-@eml-version@//EN';
UPDATE xml_catalog 
   SET system_id = '@systemidserver@@html-path@/dtd/eml-physical-@eml-version@.dtd'
   WHERE public_id = '-//ecoinformatics.org//eml-physical-@eml-version@//EN';
UPDATE xml_catalog 
   SET system_id = '@systemidserver@@html-path@/dtd/eml-project-@eml-version@.dtd'
   WHERE public_id = '-//ecoinformatics.org//eml-project-@eml-version@//EN';
UPDATE xml_catalog 
   SET system_id = '@systemidserver@@html-path@/dtd/eml-protocol-@eml-version@.dtd'
   WHERE public_id = '-//ecoinformatics.org//eml-protocol-@eml-version@//EN';
UPDATE xml_catalog 
   SET system_id = '@systemidserver@@html-path@/dtd/eml-software-@eml-version@.dtd'
   WHERE public_id = '-//ecoinformatics.org//eml-software-@eml-version@//EN';
UPDATE xml_catalog
  SET system_id = '@systemidserver@@html-path@/schema/eml-2.0.0/eml.xsd'
  WHERE public_id = '@eml2_0_0namespace@';
UPDATE xml_catalog
  SET system_id = '@systemidserver@@html-path@/schema/eml-2.0.1/eml.xsd'
  WHERE public_id = '@eml2_0_1namespace@';
UPDATE xml_catalog 
   SET system_id = '@systemidserver@@html-path@/schema/eml-2.0.0/stmml.xsd'
   WHERE public_id = '@stmmlnamespace@';