import org.joda.time.DateTime;\r
\r
import eu.etaxonomy.cdm.app.common.CdmDestinations;\r
+import eu.etaxonomy.cdm.common.DefaultProgressMonitor;\r
+import eu.etaxonomy.cdm.common.IProgressMonitor;\r
import eu.etaxonomy.cdm.database.ICdmDataSource;\r
import eu.etaxonomy.cdm.io.common.CdmDefaultExport;\r
import eu.etaxonomy.cdm.io.common.IExportConfigurator.CHECK;\r
\r
//database validation status (create, update, validate ...)\r
private static final String fileDestination = "C:\\tmp\\dwcaTmp\\";\r
- private static final ICdmDataSource cdmSource = CdmDestinations.cdm_test_local_mysql();\r
-// private static final ICdmDataSource cdmSource = CdmDestinations.cdm_production_cichorieae();\r
+// private static final ICdmDataSource cdmSource = CdmDestinations.cdm_local_cichorieae();\r
+// private static final ICdmDataSource cdmSource = CdmDestinations.cdm_test_local_mysql();\r
+ private static final ICdmDataSource cdmSource = CdmDestinations.cdm_production_cichorieae();\r
+// private static final ICdmDataSource cdmSource = CdmDestinations.cdm_flora_central_africa_production();\r
+\r
+ private IProgressMonitor monitor = DefaultProgressMonitor.NewInstance();\r
+ \r
+ private static DateTime dateTime = new DateTime();\r
+ private static String date = dateTime.getYear() + "-" + dateTime.getMonthOfYear() + "-" + dateTime.getDayOfMonth();\r
+ \r
+ private static final String defaultBibliographicCitation = "ICN (Hand, R., Kilian, N. & Raab-Straube, E. von; general editors) 2009+ (continuously updated): International Cichorieae Network: Cichorieae Portal. Published on the Internet at http://wp6-cichorieae.e-taxonomy.eu/portal/; " + \r
+ "accessed ["+date+"].";\r
+\r
+ private static final String taxonSourceDefault = "http://wp6-cichorieae.e-taxonomy.eu/portal/?q=cdm_dataportal/taxon/{id}";\r
\r
//check - import\r
private static final CHECK check = CHECK.EXPORT_WITHOUT_CHECK;\r
private static List<UUID> featureExclusions = Arrays.asList(new UUID[]{\r
UUID.fromString("5deff505-1a32-4817-9a74-50e6936fd630"), //occurrences\r
UUID.fromString("8075074c-ace8-496b-ac82-47c14553f7fd"), //Editor_Parenthesis\r
- UUID.fromString("c0cc5ebe-1f0c-4c31-af53-d486858ea415") //Image Sources\r
+ UUID.fromString("c0cc5ebe-1f0c-4c31-af53-d486858ea415"), //Image Sources\r
+ UUID.fromString("9f6c551d-0f19-45ea-a855-4946f6fc1093"), //Credits\r
+ UUID.fromString("cbf12c6c-94e6-4724-9c48-0f6f10d83e1c"), //Editor Brackets\r
+ UUID.fromString("0508114d-4158-48b5-9100-369fa75120d3") //inedited\r
});\r
\r
\r
private boolean doReferences = true;\r
private boolean doDescription = true;\r
private boolean doDistributions = true;\r
- private boolean doImages = true;\r
+ private boolean doImages = false;\r
private boolean doMetaData = true;\r
private boolean doEml = true;\r
\r
config.setDoMetaData(doMetaData);\r
config.setDoEml(doEml);\r
config.setCheck(check);\r
+ config.setProgressMonitor(monitor);\r
+ config.setDefaultBibliographicCitation(defaultBibliographicCitation);\r
+ config.setDefaultTaxonSource(taxonSourceDefault);\r
+ monitor.beginTask("DwcA-Export", 10);\r
\r
config.setFeatureExclusions(featureExclusions);\r
// invoke import\r