ref #9918 final minor changes on Caryophyllaceae import
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 8 Feb 2022 07:33:06 +0000 (08:33 +0100)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 8 Feb 2022 07:33:06 +0000 (08:33 +0100)
app-import/src/main/java/eu/etaxonomy/cdm/app/caryophyllales/CaryophyllaceaeActivator.java
app-import/src/main/java/eu/etaxonomy/cdm/io/caryo/KewExcelTaxonImport.java

index 3038476156f6c8b5ead6707470e24ce9be2fe758..3f9199f8eb7d98eb44a03e2eacdd13503fa5ff7e 100644 (file)
@@ -33,12 +33,12 @@ public class CaryophyllaceaeActivator extends SourceBase{
     private static final Logger logger = Logger.getLogger(CaryophyllaceaeActivator.class);
 
        //database validation status (create, update, validate ...)
-       static final DbSchemaValidation hbm2dll = DbSchemaValidation.VALIDATE;
-       static final URI source = caryophyllaceae();
+       private static final DbSchemaValidation hbm2dll = DbSchemaValidation.VALIDATE;
+       private static final URI source = caryophyllaceae();
 
+       private static final ICdmDataSource cdmDestination = CdmDestinations.cdm_local_caryo_spp();
+//    private static final ICdmDataSource cdmDestination = CdmDestinations.cdm_production_caryophyllales_spp();
 
-//     static final ICdmDataSource cdmDestination = CdmDestinations.localH2();
-       static final ICdmDataSource cdmDestination = CdmDestinations.cdm_local_caryo_spp();
 
        //classification
        static final UUID classificationUuid = UUID.fromString("9edc58b5-de3b-43aa-9f31-1ede7c009c2b");
index 98b7772575207e4ec3eca9e0cf1e922bb0924765..c0cb166143c5b188e1f569858eeb6629b061c4b0 100644 (file)
@@ -116,7 +116,7 @@ public class KewExcelTaxonImport<CONFIG extends KewExcelTaxonImportConfigurator>
     protected void firstPass(SimpleExcelTaxonImportState<CONFIG> state) {
 
         String line = getLine(state, 50);
-        System.out.println(line);
+//        System.out.println(line);
         Map<String, String> record = state.getOriginalRecord();
 
         Set<String> keys = record.keySet();
@@ -156,7 +156,7 @@ public class KewExcelTaxonImport<CONFIG extends KewExcelTaxonImportConfigurator>
         String fullTitle = getValue(state, Kew_Name_Citation);
         String kewNameId = getValue(state, Kew_Name_ID);
 
-        fullTitle = replaceBookSectionAuthor(state, fullTitle);
+//        fullTitle = replaceBookSectionAuthor(state, fullTitle);
 
         TaxonName newName = parser.parseReferencedName(fullTitle, NomenclaturalCode.ICNAFP, Rank.SPECIES());
         handleBookSectionAuthor(newName, state, line);