Project

General

Profile

« Previous | Next » 

Revision 2163

Added by Jing Tao almost 21 years ago

Change eml2 to eml200

View differences:

src/edu/ucsb/nceas/metacat/MetacatReplication.java
552 552
          (docType.trim()).equals(DocumentImpl.EMLNAMESPACE))
553 553
      {
554 554
         MetaCatUtil.debugMessage("This is an eml2 document!", 30);
555
         parserBase = DocumentImpl.EML2;
555
         parserBase = DocumentImpl.EML200;
556 556
      }
557 557
      MetaCatUtil.debugMessage("The parserBase is: "+parserBase, 30);
558 558
           
src/edu/ucsb/nceas/metacat/MetaCatServlet.java
1451 1451
                    // for eml2
1452 1452
                    if (needEml2Validation(xml)) {
1453 1453
                        // set eml2 base validation parser
1454
                        String rule = DocumentImpl.EML2;
1454
                        String rule = DocumentImpl.EML200;
1455 1455
                        // using emlparser to check id validation
1456 1456
                        EMLParser parser = new EMLParser(doctext[0]);
1457 1457
                        documentWrapper = new DocumentImplWrapper(rule, true);
src/edu/ucsb/nceas/metacat/DocumentImpl.java
68 68
   /* Constants */
69 69
   public static final String SCHEMA                 = "Schema";
70 70
   public static final String DTD                    = "DTD";
71
   public static final String EML2                   = "eml2";
71
   public static final String EML200                 = "eml200";
72 72
   public static final String EXTERNALSCHEMALOCATIONPROPERTY =
73 73
              "http://apache.org/xml/properties/schema/external-schemaLocation";
74 74
   /*public static final String EXTERNALSCHEMALOCATION =
......
2329 2329
      // Get an instance of the parser
2330 2330
      String parserName = MetaCatUtil.getOption("saxparser");
2331 2331
      parser = XMLReaderFactory.createXMLReader(parserName);
2332
      if (ruleBase != null && ruleBase.equals(EML2))
2332
      if (ruleBase != null && ruleBase.equals(EML200))
2333 2333
      {
2334 2334
        MetaCatUtil.debugMessage("eml 2 parser", 20);
2335 2335
        chandler = new Eml200SAXHandler(dbconn, action,
src/edu/ucsb/nceas/metacat/ReplicationHandler.java
415 415
      // this for eml2 and we need user eml2 parser
416 416
      if (docType != null && (docType.trim()).equals(DocumentImpl.EMLNAMESPACE))
417 417
      {
418
         parserBase = DocumentImpl.EML2;
418
         parserBase = DocumentImpl.EML200;
419 419
      }
420 420
      // Write the document into local host
421 421
      DocumentImplWrapper wrapper = new DocumentImplWrapper(parserBase, false);

Also available in: Unified diff