Revision 1a53e0b8
Added by Andreas Müller almost 4 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/greece/GreeceImageActivator.java | ||
---|---|---|
21 | 21 |
import eu.etaxonomy.cdm.io.common.IImportConfigurator.CHECK; |
22 | 22 |
import eu.etaxonomy.cdm.io.common.ImportResult; |
23 | 23 |
import eu.etaxonomy.cdm.io.media.in.MediaExcelImportConfigurator; |
24 |
import eu.etaxonomy.cdm.model.common.Language; |
|
24 | 25 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode; |
25 | 26 |
import eu.etaxonomy.cdm.model.reference.Reference; |
26 | 27 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
27 | 28 |
|
28 | 29 |
/** |
29 | 30 |
* |
30 |
* Import for new images for the flora of greece.
|
|
31 |
* Import for new images for the Flora of Greece.
|
|
31 | 32 |
* |
32 | 33 |
* https://dev.e-taxonomy.eu/redmine/issues/7075 |
33 | 34 |
* |
... | ... | |
63 | 64 |
@SuppressWarnings("unused") |
64 | 65 |
private static final Logger logger = Logger.getLogger(GreeceImageActivator.class); |
65 | 66 |
|
66 |
static final ICdmDataSource cdmDestination = CdmDestinations.localH2(); |
|
67 |
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_production_greece_checklist();
|
|
67 |
// static final ICdmDataSource cdmDestination = CdmDestinations.localH2();
|
|
68 |
static final ICdmDataSource cdmDestination = CdmDestinations.cdm_production_greece_checklist(); |
|
68 | 69 |
|
69 |
// private static final UUID sourceUuid = UUID.fromString("40449942-87ff-4f3a-b909-729a80001b47");
|
|
70 |
private static final UUID sourceUuid = UUID.fromString("48f20249-61ce-4004-b03c-f368d9e29c5c"); |
|
70 |
private static final UUID sourceUuid = UUID.fromString("a57e30c1-cb0b-438d-830e-f7c1c8cd1fb1");
|
|
71 |
// private static final UUID sourceUuid = UUID.fromString("48f20249-61ce-4004-b03c-f368d9e29c5c");
|
|
71 | 72 |
|
72 |
// private static final String fileName = "20191230_FoG_images.xlsx";
|
|
73 |
private static final String fileName = "20200204_fog_images.xlsx"; |
|
73 |
private static final String fileName = "20200507_fog_images.xlsx";
|
|
74 |
// private static final String fileName = "20200204_fog_images.xlsx";
|
|
74 | 75 |
|
75 | 76 |
|
76 | 77 |
// NOTE!!: Darauf achten, dass die Header case sensitiv sind und keine Leerzeichen am Ende sein sollten, trim funktioniert seltsamerweise nicht immer |
... | ... | |
87 | 88 |
config.setCheck(check); |
88 | 89 |
config.setDbSchemaValidation(schemaVal); |
89 | 90 |
config.setSourceReference(getSourceReference()); |
91 |
config.setDescriptionLanguage(Language.uuidEnglish); |
|
92 |
config.setTitleLanguageUuid(Language.uuidEnglish); |
|
90 | 93 |
config.setNomenclaturalCode(NomenclaturalCode.ICNAFP); |
91 | 94 |
|
92 | 95 |
CdmDefaultImport<MediaExcelImportConfigurator> myImport = new CdmDefaultImport<>(); |
Also available in: Unified diff
ref #7075 improve language handling Flora of Greece image import