Project

General

Profile

« Previous | Next » 

Revision 6cb0766e

Added by Andreas Müller over 4 years ago

ref #8643 multiple changes to adapt FauEuPesiExport to current situation

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/app/pesi/FaunaEuropaeaActivator.java
115 115
		fauEuImportConfigurator.setDoMisappliedNames(doMisappliedNames);
116 116
		fauEuImportConfigurator.setDoHeterotypicSynonyms(doHeterotypicSynonyms);
117 117
		fauEuImportConfigurator.setDoHeterotypicSynonymsForBasionyms(doHeterotypicSynonymsForBasionyms);
118
		fauEuImportConfigurator.setSourceRefUuid(PesiTransformer.uuidSourceRefFaunaEuropaea);
118
		fauEuImportConfigurator.setSourceRefUuid(PesiTransformer.uuidSourceRefFaunaEuropaea_fromSql);
119 119
		fauEuImportConfigurator.setDoAssociatedSpecialists(doAssociatedSpecialists);
120 120
		fauEuImportConfigurator.setDoVernacularNames(doVernacularNames);
121 121
		fauEuImportConfigurator.setDoInferredSynonyms(doInferredSynonyms);
cdm-pesi/src/main/java/eu/etaxonomy/cdm/app/pesi/PesiDestinations.java
41 41

  
42 42
	public static Source pesi_test_local_CDM_FE2PESI(){
43 43
		String dbms = Source.SQL_SERVER_2008;
44
		String strServer = "pesiimport3"; //192.168.1.223
44
		String strServer = "pesiimport3"; //130.133.70.48
45 45
		String strDB = "CDM_FE2PESI";
46 46
		int port = 1433;
47
		String userName = "pesiExportFaunaEu";
47
		String userName = "pesi2019"; //"pesiExportFaunaEu";
48 48
		return makeSource(dbms, strServer, strDB, port, userName, null);
49 49
	}
50 50

  
51
    public static Source pesi_test_local_CDM_FE2PESI_2(){
52
        String dbms = Source.SQL_SERVER_2008;
53
        String strServer = "pesiimport3"; //130.133.70.48
54
        String strDB = "CDM_FE2PESI";
55
        int port = 1433;
56
        String userName = "pesi2019";
57
        return makeSource(dbms, strServer, strDB, port, userName, null);
58
    }
59

  
51 60
	public static Source pesi_test_local_CDM_IF2PESI(){
52 61
		String dbms = Source.SQL_SERVER_2008;
53 62
		String strServer = "pesiimport3";
cdm-pesi/src/main/java/eu/etaxonomy/cdm/app/pesi/PesiExportActivatorFE.java
26 26
 * @since 16.02.2010
27 27
 */
28 28
public class PesiExportActivatorFE {
29
	@SuppressWarnings("unused")
29

  
30 30
	private static final Logger logger = Logger.getLogger(PesiExportActivatorFE.class);
31 31

  
32 32
	//database validation status (create, update, validate ...)
33
	static final Source pesiDestination = PesiDestinations.pesi_test_local_CDM_FE2PESI();
34
//	static final Source pesiDestination = PesiDestinations.pesi_test_local_CDM_ERMS2PESI();
33
//	static final Source pesiDestination = PesiDestinations.pesi_test_local_CDM_FE2PESI();
34
	static final Source pesiDestination = PesiDestinations.pesi_test_local_CDM_FE2PESI_2();
35 35

  
36 36
//	static final ICdmDataSource cdmSource = CdmDestinations.cdm_test_local_faunaEu_mysql();
37 37
	static final ICdmDataSource cdmSource = CdmDestinations.cdm_test_local_pesi_leer();
......
41 41
    boolean deleteAll = true;
42 42
    DO_REFERENCES doReferences = DO_REFERENCES.ALL;
43 43
    boolean doTaxa = true;
44
    static boolean doPureNames = true;  //TODO does FE have pure names? => there is an exception during nameRel import
44 45
    boolean doTreeIndex = true;
45 46
    boolean doInferredSynonyms = false;  //xx takes long, unclear what it does
46 47
    boolean doRelTaxa = true;
47 48
    boolean doAdditionalTaxonSource = true;
48 49
    boolean doDescriptions = true;
49
    boolean doEcologyAndLink = true;
50 50

  
51 51
// ************************ NONE **************************************** //
52 52

  
53 53
//  boolean deleteAll = false;
54 54
//  static DO_REFERENCES doReferences =  DO_REFERENCES.NONE;
55 55
//  boolean doTaxa = false;
56
//  static boolean doPureNames = false;  //TODO does FE have pure names? => there is an exception during nameRel import
56 57
//  boolean doTreeIndex = doTaxa; //only with doTaxa
57 58
//  boolean doInferredSynonyms = false; //only with doTaxa
58 59
//  boolean doRelTaxa = false;
59 60
//  boolean doAdditionalTaxonSource = false;
60
//  boolean doDescriptions = false;
61
//  boolean doEcologyAndLink = doDescriptions;
61
//  boolean doDescriptions = true;
62 62

  
63
    static boolean doPureNames = false;  //FE has no pure names; TODO test if true
63
  boolean doEcologyAndLink = false; //FE does not have ecology and link data
64 64

  
65 65
    //check - export
66 66
    static final CHECK check = CHECK.EXPORT_WITHOUT_CHECK;
......
69 69
    static final int nameIdStart = 10000000;
70 70
    static final IdType idType = IdType.CDM_ID_WITH_EXCEPTIONS;
71 71

  
72
    static final int partitionSize = 1000;
72
    static final int partitionSize = 2000;
73
    static final int partitionSizeDescription = 200;
74

  
73 75

  
74 76
    public boolean  doExport(ICdmDataSource source, Source destination){
77
        logger.trace("Bind logger to pesi module");
75 78
        System.out.println("Start export from " + source.getDatabase() + " to PESI ("+ pesiDestination.getDatabase() + ") ...");
76 79

  
77 80
        PesiTransformer transformer = new PesiTransformer(destination);
......
98 101

  
99 102
        config.setCheck(check);
100 103
        config.setLimitSave(partitionSize);
104
        config.setLimitSaveDescription(partitionSizeDescription);
101 105
        config.setIdType(idType);
102 106
        config.setNameIdStart(nameIdStart);
103 107
        if (deleteAll){
......
116 120
		PesiExportActivatorFE ex = new PesiExportActivatorFE();
117 121
		ICdmDataSource source = CdmDestinations.chooseDestination(args) != null ? CdmDestinations.chooseDestination(args) : cdmSource;
118 122
		ex.doExport(source, pesiDestination);
123
		System.exit(0);
119 124
	}
120 125
}
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/faunaEuropaea/FaunaEuropaeaTransformer.java
31 31
 * @author a.babadshanjan
32 32
 * @since 12.05.2009
33 33
 */
34

  
35 34
public final class FaunaEuropaeaTransformer {
36 35
	private static final Logger logger = Logger.getLogger(FaunaEuropaeaTransformer.class);
37 36

  
......
187 186
	}
188 187

  
189 188

  
190
//	public static NamedArea areaId2TdwgArea (FaunaEuropaeaDistribution fauEuDistribution)
191
//	throws UnknownCdmTypeException {
192
//
193
//		NamedArea tdwgArea = null;
194
//
195
//		try {
196
//			int areaId = fauEuDistribution.getAreaId();
197
//			String areaName = fauEuDistribution.getAreaName();
198
//			String areaCode = fauEuDistribution.getAreaCode();
199
//			int extraLimital = fauEuDistribution.getExtraLimital();
200
//
201
//			//TODO: Verify mappings with comments. Those don't map to TDWG areas.
202
//
203
//			if (areaCode.equals("AD")) {
204
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("SPA-AN");
205
//            } else if (areaCode.equals("AL")) {
206
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("ALB-OO");
207
//            } else if (areaCode.equals("AT")) {
208
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("AUT-AU");
209
//            } else if (areaCode.equals("AUS")) {
210
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("AUS"); // Australian region - Australia
211
//            } else if (areaCode.equals("BA")) {
212
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("YUG-BH");
213
//            } else if (areaCode.equals("BE")) {
214
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("BGM-BE");
215
//            } else if (areaCode.equals("BG")) {
216
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("BUL-OO");
217
//            } else if (areaCode.equals("BY")) {
218
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("BLR-OO");
219
//            } else if (areaCode.equals("CH")) {
220
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("SWI-OO");
221
//            } else if (areaCode.equals("CY")) {
222
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("CYP-OO");
223
//            } else if (areaCode.equals("CZ")) {
224
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("CZE-CZ");
225
//            } else if (areaCode.equals("DE")) {
226
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("GER-OO");
227
//            } else if (areaCode.equals("DK-DEN")) {
228
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("DEN-OO");
229
//            } else if (areaCode.equals("DK-FOR")) {
230
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("FOR-OO");
231
//            } else if (areaCode.equals("EE")) {
232
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("BLT-ES");
233
//            } else if (areaCode.equals("ES-BAL")) {
234
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("BAL-OO");
235
//            } else if (areaCode.equals("ES-CNY")) {
236
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("CNY-OO");
237
//            } else if (areaCode.equals("ES-SPA")) {
238
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("SPA-SP");
239
//            } else if (areaCode.equals("FI")) {
240
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("FIN-OO");
241
//            } else if (areaCode.equals("FR-COR")) {
242
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("COR-OO");
243
//            } else if (areaCode.equals("FR-FRA")) {
244
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("FRA-FR");
245
//            } else if (areaCode.equals("GB-CI")) {
246
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("FRA-CI");
247
//            } else if (areaCode.equals("GB-GI")) {
248
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("SPA-GI");
249
//            } else if (areaCode.equals("GB-GRB")) {
250
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("GRB-OO");
251
//            } else if (areaCode.equals("GB-NI")) {
252
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("IRE-NI");
253
//            } else if (areaCode.equals("GR-GRC")) {
254
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("GRC-OO");
255
//            } else if (areaCode.equals("HR")) {
256
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("YUG-CR");
257
//            } else if (areaCode.equals("HU")) {
258
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("HUN-OO");
259
//            } else if (areaCode.equals("IE")) {
260
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("IRE-IR");
261
//            } else if (areaCode.equals("IS")) {
262
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("ICE-OO");
263
//            } else if (areaCode.equals("IT-ITA")) {
264
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("ITA-IT");
265
//            } else if (areaCode.equals("IT-SAR")) {
266
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("SAR-OO");
267
//            } else if (areaCode.equals("IT-SI")) {
268
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("SIC-SI");
269
//            } else if (areaCode.equals("LI")) {
270
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("AUT-LI");
271
//            } else if (areaCode.equals("LT")) {
272
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("BLT-LI");
273
//            } else if (areaCode.equals("LU")) {
274
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("BGM-LU");
275
//            } else if (areaCode.equals("LV")) {
276
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("BLT-LA");
277
//            } else if (areaCode.equals("MC")) {
278
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("FRA-MO");
279
//            } else if (areaCode.equals("MD")) {
280
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("UKR-MO");
281
//            } else if (areaCode.equals("MK")) {
282
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("YUG-MA");
283
//            } else if (areaCode.equals("MT")) {
284
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("SIC-MA");
285
//            } else if (areaCode.equals("NL")) {
286
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("NET-OO");
287
//            } else if (areaCode.equals("NO-NOR")) {
288
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("NOR-OO");
289
//            } else if (areaCode.equals("NO-SVA")) {
290
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("SVA-OO");
291
//            } else if (areaCode.equals("PL")) {
292
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("POL-OO");
293
//            } else if (areaCode.equals("PT-AZO")) {
294
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("AZO-OO");
295
//            } else if (areaCode.equals("PT-MDR")) {
296
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("MDR-OO");
297
//            } else if (areaCode.equals("PT-POR")) {
298
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("POR-OO");
299
//            } else if (areaCode.equals("PT-SEL")) {
300
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("SEL-OO");
301
//            } else if (areaCode.equals("RO")) {
302
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("ROM-OO");
303
//            } else if (areaCode.equals("RU-KGD")) {
304
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("BLT-KA");
305
//            } else if (areaCode.equals("RU-RUC")) {
306
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("RUC-OO");
307
//            } else if (areaCode.equals("RU-RUE")) {
308
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("RUE-OO");
309
//            } else if (areaCode.equals("RU-RUN")) {
310
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("RUN-OO");
311
//            } else if (areaCode.equals("RU-RUS")) {
312
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("RUS-OO");
313
//            } else if (areaCode.equals("RU-RUW")) {
314
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("RUW-OO");
315
//            } else if (areaCode.equals("SE")) {
316
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("SWE-OO");
317
//            } else if (areaCode.equals("SI")) {
318
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("YUG-SL");
319
//            } else if (areaCode.equals("SK")) {
320
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("CZE-SK");
321
//            } else if (areaCode.equals("SM")) {
322
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("ITA-SM");
323
//            } else if (areaCode.equals("TR-TUE")) {
324
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("TUE-OO");
325
//            }else if (areaCode.equals("UA")) {
326
//            	tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("UKR-UK"); //UKraine including Crimea
327
//            } else if (areaCode.equals("VA")) {
328
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("ITA-VC");
329
//            } else if (areaCode.equals("YU")) {
330
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("YUG");
331
//            } else {
332
//                throw new UnknownCdmTypeException("Unknown Area " + areaCode);
333
//            }
334
//
335
//			if (logger.isDebugEnabled()) {
336
//				logger.debug(areaId + ", " + areaName + ", " + areaCode + ", " + extraLimital);
337
//			}
338
//
339
//		} catch (Exception e) {
340
//			//e.printStackTrace();
341
//			logger.debug("Exception occurred. Area could not be mapped." + fauEuDistribution.getAreaName());
342
//			return null;
343
//		}
344
//
345
//		return tdwgArea;
346
//	}
347

  
348
//	public static UUID uuidAreaAUS = UUID.fromString("cf979ca8-8cb6-42df-b2ce-1f432ec7c26b");
349
//	public static UUID uuidAreaAFR = UUID.fromString("07ac5e75-9fc9-4aa0-938c-1324c9618b97");
350
//	public static UUID uuidAreaEPA = UUID.fromString("e83446d7-7379-4beb-be05-295f8da6f5ae");
351
//	public static UUID uuidAreaGR_AEG = UUID.fromString("6bd422aa-9911-4b80-8595-0f6d1ecd5eee");
352
//	public static UUID uuidAreaGR_CYC = UUID.fromString("8e7d7f1e-3e4d-4f7c-96ec-93ec91e528d6");
353
//	public static UUID uuidAreaGR_DOD = UUID.fromString("6d6f6842-924e-440b-9e7e-3df1922bf4a6");
354
//	public static UUID uuidAreaNAF = UUID.fromString("d2c54b1e-5f9f-455d-b308-6859cb153c7b");
355
//	public static UUID uuidAreaNEA = UUID.fromString("aa87f6b8-110b-44b5-a329-91a08f1a4cc9");
356
//	public static UUID uuidAreaNEO = UUID.fromString("0e6e0ce9-c6ab-46bc-80b9-aee4a0620e78");
357
//	public static UUID uuidAreaNRE = UUID.fromString("d51876c2-eaf6-4c7f-963e-337dd3e0d729");
358
//	public static UUID uuidAreaORR = UUID.fromString("04cab4f8-b316-4e21-9bcc-236a45e4e83d");
359
//	public static UUID uuidAreaGR_CR = UUID.fromString("2ef9fa6c-7c3f-431a-96c9-5980c55fc440");
360
//	public static UUID uuidAreaGR_GRC = UUID.fromString("b5d33c78-91e7-467a-9c2d-6c337b78d31a");
361
//	public static UUID uuidAreaUA = UUID.fromString("859cf055-a208-4f30-8e6e-361f165c6fa9");
362
//	public static UUID uuidAreaRU_FJL = UUID.fromString("84671068-2f18-40cb-933a-e7e1c0e37cc8");
363
//	public static UUID uuidAreaRU_NOZ = UUID.fromString("64cce0aa-0222-4740-8fa2-dbf0330e9266");
364

  
365

  
366

  
367
//	public final static HashMap<String, UUID> abbrToUUID = new HashMap<String,UUID>();
368
//	 	static
369
//	 	{
370
//	 		abbrToUUID.put("AUS", uuidAreaAUS);
371
//	 		abbrToUUID.put("AFR", uuidAreaAFR);
372
//	 		abbrToUUID.put("EPA", uuidAreaEPA);
373
//	 		abbrToUUID.put("GR-AEG", uuidAreaGR_AEG);
374
//	 		abbrToUUID.put("GR-CYC", uuidAreaGR_CYC);
375
//	 		abbrToUUID.put("GR-DOD", uuidAreaGR_DOD);
376
//	 		abbrToUUID.put("NAF", uuidAreaNAF);
377
//	 		abbrToUUID.put("NEA", uuidAreaNEA);
378
//	 		abbrToUUID.put("NEO", uuidAreaNEO);
379
//	 		abbrToUUID.put("NRE", uuidAreaNRE);
380
//	 		abbrToUUID.put("ORR", uuidAreaORR);
381
//	 		abbrToUUID.put("GR-KRI", uuidAreaGR_CR);
382
//	 		abbrToUUID.put("GR-GRC", uuidAreaGR_GRC);
383
//	 		abbrToUUID.put("UA", uuidAreaUA);
384
//	 		abbrToUUID.put("RU-FJL", uuidAreaRU_FJL);
385
//	 		abbrToUUID.put("RU-NOZ", uuidAreaRU_NOZ);
386
//
387
//
388
//	 	}
389

  
390

  
391 189
	 	public final static HashMap<Integer, Language> languageFK2Language  = new HashMap<>();
392 190

  
393 191
        static
......
443 241
	 		languageFK2Language.put(117, Language.SWAHILI());
444 242
	 		languageFK2Language.put(118, Language.SPANISH_CASTILIAN());
445 243
	 	}
446
//	public static UUID getUUIDByAreaAbbr(String abbr){
447
//		return abbrToUUID.get(abbr);
448
//	}
449 244

  
450 245
	static NomenclaturalStatusType nomStatusTempNamed;
451 246

  
......
465 260

  
466 261
	private static UUID uuidEnglishUS;
467 262

  
468

  
469

  
470 263
	public static NomenclaturalStatusType getNomStatusTempNamed(ITermService termService){
471 264
		if (nomStatusTempNamed == null){
472 265
			nomStatusTempNamed = (NomenclaturalStatusType)termService.find(PesiTransformer.uuidNomStatusTemporaryName);
......
496 289
        }
497 290
		return langEnglishUS;
498 291
	}
499
    /**
500
     * @return
501
     */
502
    public static DefinedTerm getTaxonomicSpecialistType(ITermService termService) {
292

  
293
	public static DefinedTerm getTaxonomicSpecialistType(ITermService termService) {
503 294
        if (taxonomicSpecialistType == null){
504 295
            taxonomicSpecialistType = (DefinedTerm)termService.find(uuidTaxonomicSpecialistType);
505 296
            if (taxonomicSpecialistType == null){
......
513 304
        }
514 305
        return taxonomicSpecialistType;
515 306
    }
516
    /**
517
     * @return
518
     */
519
    public static DefinedTerm getGroupCoordinatorType(ITermService termService) {
307

  
308
	public static DefinedTerm getGroupCoordinatorType(ITermService termService) {
520 309
        if (groupCoordinatorType == null){
521 310
            groupCoordinatorType = (DefinedTerm)termService.find(uuidGroupCoordinatorType);
522 311
            if (groupCoordinatorType == null){
......
530 319
        return groupCoordinatorType;
531 320
    }
532 321

  
533

  
534

  
535
    /**
536
     * @return
537
     */
538 322
    public static DefinedTerm getAssociateSpecialistType(ITermService termService) {
539 323
        if (associateSpecialistType == null){
540 324
        	associateSpecialistType = (DefinedTerm)termService.find(uuidAssociateSpecialistType);
......
548 332
        }
549 333
        return associateSpecialistType;
550 334
    }
551
	public static Language langFK2Language(
552
			Integer languageFk) {
553

  
554
		Language result = languageFK2Language.get(languageFk);
555 335

  
336
	public static Language langFK2Language(Integer languageFk) {
337
	    Language result = languageFK2Language.get(languageFk);
556 338
		return result;
557 339
	}
558

  
559

  
560 340
}
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiDescriptionExport.java
181 181
		int count = 0;
182 182
		int pastCount = 0;
183 183
		boolean success = true;
184
		//int limit = state.getConfig().getLimitSave();
185
		int limit = 1000;
184
		int limit = state.getConfig().getLimitSaveDescription();
186 185

  
187 186
		List<Taxon> taxonList = null;
188 187

  
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiExportBase.java
587 587
            }else if (refUuid.equals(PesiTransformer.uuidSourceRefIndexFungorum)){
588 588
                result.add(PesiSource.IF);
589 589
            }else{
590
                if (logger.isDebugEnabled()){logger.debug("Not a PESI source");};
590
                if (logger.isDebugEnabled()){logger.debug("Not a PESI source");}
591 591
            }
592 592
        }
593 593
        return result;
......
610 610

  
611 611
            if (sources.size() == 0 && testSources.size()>0){
612 612
                IdentifiableSource source = testSources.iterator().next();
613
                logger.warn("There are sources, but they are no pesi sources!!!" + source.getIdInSource() + " - " + source.getIdNamespace() + " - " + source.getCitation().getTitleCache());
613
                logger.warn("There are sources, but they are no pesi sources!!!" + source.getIdInSource() + " - " + source.getIdNamespace() + " - " + (source.getCitation()== null? "no reference" : source.getCitation().getTitleCache()));
614 614
            }
615 615
            if (sources.size() > 1) {
616 616
                logger.warn("This TaxonName has more than one Source: " + identifiableEntity.getUuid() + " (" + identifiableEntity.getTitleCache() + ")");
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiExportConfigurator.java
28 28
	private static Logger logger = Logger.getLogger(PesiExportConfigurator.class);
29 29

  
30 30
    private int limitSave = 2000;
31
    private int limitSaveDescription = 500;
31 32

  
32 33
	private Reference auctReference;
33 34

  
34

  
35 35
	private DO_REFERENCES doReferences = DO_REFERENCES.ALL;
36 36
	private boolean doTaxa = true;
37 37
	private boolean doRelTaxa = true;
......
86 86
		this.limitSave = limitSave;
87 87
	}
88 88

  
89
    public int getLimitSaveDescription() {
90
        return limitSaveDescription;
91
    }
92
    public void setLimitSaveDescription(int limitSaveDescription) {
93
        this.limitSaveDescription = limitSaveDescription;
94
    }
95

  
89 96
	/**
90 97
	 * Returns the Reference for a Misapplied Name.
91 98
	 * Copied from FaunaEuropaeaImportConfigurator.
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiTransformer.java
26 26
import eu.etaxonomy.cdm.io.common.mapping.UndefinedTransformerMethodException;
27 27
import eu.etaxonomy.cdm.io.common.mapping.out.ExportTransformerBase;
28 28
import eu.etaxonomy.cdm.io.pesi.erms.ErmsTransformer;
29
import eu.etaxonomy.cdm.io.pesi.faunaEuropaea.FaunaEuropaeaTransformer;
29 30
import eu.etaxonomy.cdm.io.pesi.out.PesiExportBase.PesiSource;
30 31
import eu.etaxonomy.cdm.model.common.CdmBase;
31 32
import eu.etaxonomy.cdm.model.common.Language;
......
66 67

  
67 68
	//sourceRefUUIDs
68 69
	public static final UUID uuidSourceRefEuroMed = UUID.fromString("51b3900c-91e0-4cc5-94f3-577a352ca9c4");
69
	public static final UUID uuidSourceRefFaunaEuropaea = UUID.fromString("6786d863-75d4-4796-b916-c1c3dff4cb70");
70
	public static final UUID uuidSourceRefFaunaEuropaea = UUID.fromString("f27a5e67-d065-4b79-8d41-eabd3ae0edd0");
70 71
	public static final UUID uuidSourceRefErms = UUID.fromString("7744bc26-f914-42c4-b54a-dd2a030a8bb7");
71 72
	public static final UUID uuidSourceRefIndexFungorum = UUID.fromString("8de25d27-7d40-47f4-af3b-59d64935a843");
72 73
	public static final UUID uuidSourceRefAuct = UUID.fromString("5f79f96c-c100-4cd8-b78e-2b2dacf09a23");
74
	public static final UUID uuidSourceRefFaunaEuropaea_fromSql = UUID.fromString("6786d863-75d4-4796-b916-c1c3dff4cb70");
73 75

  
74 76
    public static final UUID uuidTaxonValuelessEuroMed = UUID.fromString("f0a9322b-a57e-447b-9a75-a909f2f2a994");
75 77

  
......
117 119
	public static String REF_STR_UNRESOLVED = "unresolved";
118 120

  
119 121
	private static int LANG_UNKNOWN = -99;
120
	private static int LANG_VALENCIAN = 65;
122
	private static int LANG_DUTCH = 11;
123
    private static int LANG_VALENCIAN = 65;
121 124
	private static int LANG_HIGH_ARAGONES = 66;
122 125
	private static int LANG_MAJORCAN = 67;
123 126

  
127

  
124 128
	// NameStatus
125 129
    public static UUID uuidNomStatusTemporaryName = UUID.fromString("aa6ada5a-ca21-4fef-b76f-9ae237e9c4ae");
126 130

  
......
594 598
	//continued ERMS areas without variables
595 599
	//...
596 600
	private static int AREA_WALES = 293;
601
	private static int AREA_NORTH_AMERICA = 294; //FE common names
602

  
603
	//FauEu area UUIDs
604
    private static UUID uuidAreaAD = UUID.fromString("38dd31d2-8275-4b05-8b85-eb71a390d67f");
605
    private static UUID uuidAreaAFR = UUID.fromString("c3123386-51a4-42a4-9ff4-b3905b18a83c");//x
606
    private static UUID uuidAreaAL = UUID.fromString("84c54f15-fc90-44bb-a45d-26b7daa26ceb");
607
    private static UUID uuidAreaAT = UUID.fromString("d285e4a5-d027-4610-a4ff-f5e6dd16cdc3");
608
    private static UUID uuidAreaAUS = UUID.fromString("930e6455-de5e-4002-bfc3-45eecd07e4f3");//x
609
    private static UUID uuidAreaBA = UUID.fromString("946a06ea-200f-409e-bb2f-05e64e55ed41");
610
    private static UUID uuidAreaBE = UUID.fromString("f914f7fd-d5a3-4165-8409-004f197ae4e9");
611
    private static UUID uuidAreaBG = UUID.fromString("9586daca-a739-4d28-836e-6d15861375e1");
612
    private static UUID uuidAreaBY = UUID.fromString("b6f94a56-990d-41da-8e92-abf757afeca1");
613
    private static UUID uuidAreaCH = UUID.fromString("cccc1da5-6a0e-47c2-900e-e274fd593ff0");
614
    private static UUID uuidAreaCY = UUID.fromString("78950366-3f15-48bb-80c9-8b24afedcd3c");
615
    private static UUID uuidAreaCZ = UUID.fromString("d1221dbc-a7c5-4805-b7c8-15ae56557825");
616
    private static UUID uuidAreaDE = UUID.fromString("6f31223e-9a10-4c97-b482-85d96f195a23");
617
    private static UUID uuidAreaDK_DEN = UUID.fromString("4ed51fa9-f89a-47c8-a9ce-43d462f74c53");
618
    private static UUID uuidAreaDK_FOR = UUID.fromString("272874cf-b6f7-4805-8a0c-1a0efbbf0a21");
619
    private static UUID uuidAreaEE = UUID.fromString("1472705d-c94e-41e8-9482-adb46f201f71");
620
    private static UUID uuidAreaEPA = UUID.fromString("2f162235-6c5a-4ad4-8ba0-8dca28826dab");//x
621
    private static UUID uuidAreaES_BAL = UUID.fromString("d5466ee2-38fa-47e8-8109-008b71a2f47b");
622
    private static UUID uuidAreaES_CNY = UUID.fromString("1f19cdaa-af1e-406c-bb58-25f17ee00228");
623
    private static UUID uuidAreaES_SPA = UUID.fromString("d3cc7b05-b506-44b7-a49a-77d36974bd5f");
624
    private static UUID uuidAreaFI = UUID.fromString("93d6e2ba-308b-4d57-851c-94583e139806");
625
    private static UUID uuidAreaFR_COR = UUID.fromString("f7088b27-805f-46df-916f-eeed47a2e336");
626
    private static UUID uuidAreaFR_FRA = UUID.fromString("83d2df98-c0b4-4ad8-9a02-7cdfcfa74371");
627
    private static UUID uuidAreaGB_CI = UUID.fromString("a97807d0-e7e2-4ee0-8567-07f3a72d91bb");
628
    private static UUID uuidAreaGB_GI = UUID.fromString("4441b42a-7c9f-4a39-89d6-5c9c9dab9c05");
629
    private static UUID uuidAreaGB_GRB = UUID.fromString("94561875-19a6-4bf4-ade7-340c245ffd67");
630
    private static UUID uuidAreaGB_NI = UUID.fromString("791be300-6e86-4253-b1ba-aef46ea6bfb9");
631
    private static UUID uuidAreaGR_AEG = UUID.fromString("efb2f01a-f01e-4da2-ba02-464b0e1687e5");//x
632
    private static UUID uuidAreaGR_CYC = UUID.fromString("f9ad21b1-c9ed-4062-9086-cba6e6ef353b");//x
633
    private static UUID uuidAreaGR_DOD = UUID.fromString("7a84feae-9d93-4408-8122-e82b9485fc0f");//x
634
    private static UUID uuidAreaGR_GRC = UUID.fromString("a392dbac-8671-40e6-95c7-a0d2db8f7d9c");//x
635
    private static UUID uuidAreaGR_KRI = UUID.fromString("ed8e7bcd-2267-4953-b422-bc2ff45238f7");//x
636
    private static UUID uuidAreaHR = UUID.fromString("83323e5b-8a62-4784-956a-5f21ddc853b9");
637
    private static UUID uuidAreaHU = UUID.fromString("ab6985e7-e718-4bcb-bc84-55e563870998");
638
    private static UUID uuidAreaIE = UUID.fromString("6a623016-2cd7-4391-8bc9-ae8af50060b4");
639
    private static UUID uuidAreaIS = UUID.fromString("b8469350-7c87-4202-9cb1-5f0ad11ec89c");
640
    private static UUID uuidAreaIT_ITA = UUID.fromString("43df04d6-90b4-4cf4-8dfc-f60ae921f92c");
641
    private static UUID uuidAreaIT_SAR = UUID.fromString("f68d9695-238d-4684-901a-f4bbc24813ee");
642
    private static UUID uuidAreaIT_SI = UUID.fromString("1889a571-d12a-48f1-a49f-112e60c699ef");
643
    private static UUID uuidAreaLI = UUID.fromString("ebad24b5-559e-46c4-8b0d-87107e05169e");
644
    private static UUID uuidAreaLT = UUID.fromString("d00df2a8-8d5d-4c36-b3a2-4afc9006be70");
645
    private static UUID uuidAreaLU = UUID.fromString("65bbbb63-3351-4fda-a8f8-50557bc34e0d");
646
    private static UUID uuidAreaLV = UUID.fromString("997d97ea-4678-4e01-9a81-518c09da7d7c");
647
    private static UUID uuidAreaMC = UUID.fromString("0debabad-e7e2-4aad-b959-876d3d85a4b1");
648
    private static UUID uuidAreaMD = UUID.fromString("7a4ffe59-f8d6-4a58-bb4e-449fbe8420b3");
649
    private static UUID uuidAreaMK = UUID.fromString("40140714-6214-4338-bc45-f85455f7eaed");
650
    private static UUID uuidAreaMT = UUID.fromString("b36c2f47-47d5-497f-9235-2faf0d9a6e6c");
651
    private static UUID uuidAreaNAF = UUID.fromString("e3b2193d-e23a-47a7-9bf5-7f7eebe61afb");//x
652
    private static UUID uuidAreaNEA = UUID.fromString("d6082e94-7289-45a3-a298-5cb730cfbd7f");//x
653
    private static UUID uuidAreaNEO = UUID.fromString("7a530ae7-d070-49aa-8496-7b06c4ed735b");//x
654
    private static UUID uuidAreaNL = UUID.fromString("7b74033f-ada3-4956-87b7-ec9bf0cb4c76");
655
    private static UUID uuidAreaNO_NOR = UUID.fromString("11b26fc9-3da4-4323-8b03-e960e8b1c914");
656
    private static UUID uuidAreaNO_SVA = UUID.fromString("9a3fe056-2011-4b02-a416-59de00eaf533");
657
    private static UUID uuidAreaNRE = UUID.fromString("5e005e59-b313-4c5b-8702-c2f88317db25");//x
658
    private static UUID uuidAreaORR = UUID.fromString("2047d0dd-12dc-4454-8344-07ad52fa0af0");//x
659
    private static UUID uuidAreaPL = UUID.fromString("68edc557-dbed-494e-9549-6746f11fb904");
660
    private static UUID uuidAreaPT_AZO = UUID.fromString("6f5e4eb5-83c8-4baf-99f2-cb6e25d8ac9d");
661
    private static UUID uuidAreaPT_MDR = UUID.fromString("97bed937-f4ad-4b42-ba0c-8832816fa234");
662
    private static UUID uuidAreaPT_POR = UUID.fromString("09107b85-2bdb-4534-a51c-8d02cdd71590");
663
    private static UUID uuidAreaPT_SEL = UUID.fromString("e067287c-50c6-4e54-9859-91aa15aa289a");
664
    private static UUID uuidAreaRO = UUID.fromString("de3e2ca8-d2ea-4c1f-8a19-a7a0b5daf39d");
665
    private static UUID uuidAreaRU_FJL = UUID.fromString("2b79434b-df7d-4dc5-996f-1ca4227f6e0e");//x
666
    private static UUID uuidAreaRU_KGD = UUID.fromString("227a661b-91de-489c-88ed-6b72f78481f0");
667
    private static UUID uuidAreaRU_NOZ = UUID.fromString("2b26f68a-fdac-41ab-bce0-105b24d7eb26");//x
668
    private static UUID uuidAreaRU_RUC = UUID.fromString("235748eb-9eef-48a8-9b9a-c4abd00b6244");
669
    private static UUID uuidAreaRU_RUE = UUID.fromString("5ad5b07e-518f-44ee-ac96-c7608d93e757");
670
    private static UUID uuidAreaRU_RUN = UUID.fromString("05d35653-9f67-442c-8d99-4a7ae68cf5d1");
671
    private static UUID uuidAreaRU_RUS = UUID.fromString("98b00cf8-7bd6-4f44-885c-0927bbc1d456");
672
    private static UUID uuidAreaRU_RUW = UUID.fromString("ae84bc08-957a-4c62-a828-1fb3fc2f0c3e");
673
    private static UUID uuidAreaSE = UUID.fromString("8ff37027-4832-4ce1-9f25-e21eaf26299c");
674
    private static UUID uuidAreaSI = UUID.fromString("0b76b448-5564-415c-bc18-727c37e62bf1");
675
    private static UUID uuidAreaSK = UUID.fromString("e966cd7c-3e68-4153-887b-54920eb6eb47");
676
    private static UUID uuidAreaSM = UUID.fromString("c40b8a71-c50c-4636-96de-be0bb48ed025");
677
    private static UUID uuidAreaTR_TUE = UUID.fromString("807317b3-746b-4916-9441-d8086d0d1cb1");
678
    private static UUID uuidAreaUA = UUID.fromString("2f80440d-cb03-499c-a829-c4ac4c6608d3");//x
679
    private static UUID uuidAreaVA = UUID.fromString("cd256143-1b74-4a7d-998f-ba0a9c01bb3e");
680
    private static UUID uuidAreaYU = UUID.fromString("cd80a852-1993-465a-b0e3-8c73218d4d90");
681

  
597 682

  
598 683
	// OccurrenceStatus
599 684
	private static int STATUS_PRESENT = 1;
......
896 981
			else {
897 982
				logger.warn("Unknown Country: " + area.getTitleCache());
898 983
			}
984
		     //countries
985
        }else if (area.getVocabulary().getUuid().equals(NamedArea.uuidContinentVocabulary)){
986
            if (namedArea.equals(NamedArea.NORTH_AMERICA())) { return AREA_NORTH_AMERICA; }
987

  
899 988
		}else if (area.getVocabulary().getUuid().equals(BerlinModelTransformer.uuidVocEuroMedAreas)){
900 989
			if (namedArea.getUuid().equals(BerlinModelTransformer.uuidEM)) {
901 990
//				logger.warn("E+M area not available in PESI");
......
1115 1204
                logger.warn("Unknown EuroMed common name area: " + area.getTitleCache());
1116 1205
            }
1117 1206

  
1207
        }else if (area.getVocabulary().getUuid().equals(FaunaEuropaeaTransformer.uuidFauEuArea)){
1208
            UUID uuidArea = namedArea.getUuid();
1209
            if (uuidArea.equals(uuidAreaAD)) { return AREA_ANDORRA; }
1210
            else if (uuidArea.equals(uuidAreaAFR)) { return AREA_AFRO_TROPICAL_REGION; }
1211
            else if (uuidArea.equals(uuidAreaAL)) { return AREA_ALBANIA; }
1212
            else if (uuidArea.equals(uuidAreaAT)) { return AREA_AUSTRIA; }
1213
			else if (uuidArea.equals(uuidAreaAUS)) { return AREA_AUSTRALIAN_REGION; }
1214
			else if (uuidArea.equals(uuidAreaBA)) { return AREA_BOSNIA_HERZEGOVINA; }
1215
			else if (uuidArea.equals(uuidAreaBE)) { return AREA_BELGIUM; }
1216
			else if (uuidArea.equals(uuidAreaBG)) { return AREA_BULGARIA; }
1217
			else if (uuidArea.equals(uuidAreaBY)) { return AREA_BELARUS; }
1218
			else if (uuidArea.equals(uuidAreaCH)) { return AREA_SWITZERLAND; }
1219
			else if (uuidArea.equals(uuidAreaCY)) { return AREA_CYPRUS; }
1220
			else if (uuidArea.equals(uuidAreaCZ)) { return AREA_CZECH_REPUBLIC; }
1221
			else if (uuidArea.equals(uuidAreaDE)) { return AREA_GERMANY; }
1222
			else if (uuidArea.equals(uuidAreaDK_DEN)) { return AREA_DENMARK_WITH_BORNHOLM; }
1223
			else if (uuidArea.equals(uuidAreaDK_FOR)) { return AREA_FAROE_ISLANDS; }
1224
			else if (uuidArea.equals(uuidAreaEE)) { return AREA_ESTONIA; }
1225
			else if (uuidArea.equals(uuidAreaEPA)) { return AREA_EAST_PALAEARCTIC; }
1226
			else if (uuidArea.equals(uuidAreaES_BAL)) { return AREA_BALEARES; }
1227
			else if (uuidArea.equals(uuidAreaES_CNY)) { return AREA_CANARY_ISLANDS; }
1228
			else if (uuidArea.equals(uuidAreaES_SPA)) { return AREA_KINGDOM_OF_SPAIN; }
1229
			else if (uuidArea.equals(uuidAreaFI)) { return AREA_FINLAND_WITH_AHVENANMAA; }
1230
			else if (uuidArea.equals(uuidAreaFR_COR)) { return AREA_CORSE; }
1231
			else if (uuidArea.equals(uuidAreaFR_FRA)) { return AREA_FRENCH_MAINLAND; }
1232
			else if (uuidArea.equals(uuidAreaGB_CI)) { return AREA_CHANNEL_ISLANDS; }
1233
			else if (uuidArea.equals(uuidAreaGB_GI)) { return AREA_GIBRALTAR; }
1234
			else if (uuidArea.equals(uuidAreaGB_GRB)) { return AREA_GREAT_BRITAIN; }
1235
			else if (uuidArea.equals(uuidAreaGB_NI)) { return AREA_NORTHERN_IRELAND; }
1236
			else if (uuidArea.equals(uuidAreaGR_AEG)) { return AREA_NORTH_AEGEAN_ISLANDS; }
1237
			else if (uuidArea.equals(uuidAreaGR_CYC)) { return AREA_CYCLADES_ISLANDS; }
1238
			else if (uuidArea.equals(uuidAreaGR_DOD)) { return AREA_DODECANESE_ISLANDS; }
1239
			else if (uuidArea.equals(uuidAreaGR_KRI)) { return AREA_CRETE; }
1240
			else if (uuidArea.equals(uuidAreaGR_GRC)) { return AREA_GREEK_MAINLAND; }
1241
			else if (uuidArea.equals(uuidAreaHR)) { return AREA_CROATIA; }
1242
			else if (uuidArea.equals(uuidAreaHU)) { return AREA_HUNGARY; }
1243
			else if (uuidArea.equals(uuidAreaIE)) { return AREA_REPUBLIC_OF_IRELAND; }
1244
			else if (uuidArea.equals(uuidAreaIS)) { return AREA_ICELAND; }
1245
			else if (uuidArea.equals(uuidAreaIT_ITA)) { return AREA_ITALIAN_MAINLAND; }
1246
			else if (uuidArea.equals(uuidAreaIT_SAR)) { return AREA_SARDEGNA; }
1247
			else if (uuidArea.equals(uuidAreaIT_SI)) { return AREA_SICILY; }
1248
			else if (uuidArea.equals(uuidAreaLI)) { return AREA_LIECHTENSTEIN; }
1249
			else if (uuidArea.equals(uuidAreaLT)) { return AREA_LITHUANIA; }
1250
			else if (uuidArea.equals(uuidAreaLU)) { return AREA_LUXEMBOURG; }
1251
			else if (uuidArea.equals(uuidAreaLV)) { return AREA_LATVIA; }
1252
			else if (uuidArea.equals(uuidAreaMC)) { return AREA_MONACO; }
1253
			else if (uuidArea.equals(uuidAreaMD)) { return AREA_MOLDOVA; }
1254
			else if (uuidArea.equals(uuidAreaMK)) { return AREA_THE_FORMER_JUGOSLAV_REPUBLIC_OF_MAKEDONIJA; }
1255
			else if (uuidArea.equals(uuidAreaMT)) { return AREA_MALTA; }
1256
			else if (uuidArea.equals(uuidAreaNAF)) { return AREA_NORTHERN_AFRICA; }
1257
			else if (uuidArea.equals(uuidAreaNEA)) { return AREA_NEARCTIC_REGION; }
1258
			else if (uuidArea.equals(uuidAreaNEO)) { return AREA_NEOTROPICAL_REGION; }
1259
			else if (uuidArea.equals(uuidAreaNL)) { return AREA_NETHERLANDS; }
1260
			else if (uuidArea.equals(uuidAreaNO_NOR)) { return AREA_NORWEGIAN_MAINLAND; }
1261
			else if (uuidArea.equals(uuidAreaNO_SVA)) { return AREA_SVALBARD_WITH_BJORNOYA_AND_JAN_MAYEN; }
1262
			else if (uuidArea.equals(uuidAreaNRE)) { return AREA_NEAR_EAST; }
1263
			else if (uuidArea.equals(uuidAreaORR)) { return AREA_ORIENTAL_REGION; }
1264
			else if (uuidArea.equals(uuidAreaPL)) { return AREA_POLAND; }
1265
			else if (uuidArea.equals(uuidAreaPT_AZO)) { return AREA_AZORES; }
1266
			else if (uuidArea.equals(uuidAreaPT_MDR)) { return AREA_MADEIRA; }
1267
			else if (uuidArea.equals(uuidAreaPT_POR)) { return AREA_PORTUGUESE_MAINLAND; }
1268
			else if (uuidArea.equals(uuidAreaPT_SEL)) { return AREA_SELVAGENS_ISLANDS; }
1269
			else if (uuidArea.equals(uuidAreaRO)) { return AREA_ROMANIA; }
1270
			else if (uuidArea.equals(uuidAreaRU_FJL)) { return AREA_FRANZ_JOSEF_LAND; }
1271
			else if (uuidArea.equals(uuidAreaRU_KGD)) { return AREA_KALININGRAD; }
1272
			else if (uuidArea.equals(uuidAreaRU_NOZ)) { return AREA_NOVAYA_ZEMLYA; }
1273
			else if (uuidArea.equals(uuidAreaRU_RUC)) { return AREA_CENTRAL_EUROPEAN_RUSSIA; }
1274
			else if (uuidArea.equals(uuidAreaRU_RUE)) { return AREA_EASTERN_EUROPEAN_RUSSIA; }
1275
			else if (uuidArea.equals(uuidAreaRU_RUN)) { return AREA_NORTHERN_EUROPEAN_RUSSIA; }
1276
			else if (uuidArea.equals(uuidAreaRU_RUS)) { return AREA_SOUTH_EUROPEAN_RUSSIA; }
1277
			else if (uuidArea.equals(uuidAreaRU_RUW)) { return AREA_NORTHWEST_EUROPEAN_RUSSIA; }
1278
			else if (uuidArea.equals(uuidAreaSE)) { return AREA_SWEDEN; }
1279
			else if (uuidArea.equals(uuidAreaSI)) { return AREA_SLOVENIA; }
1280
			else if (uuidArea.equals(uuidAreaSK)) { return AREA_SLOVAKIA; }
1281
			else if (uuidArea.equals(uuidAreaSM)) { return AREA_SAN_MARINO; }
1282
			else if (uuidArea.equals(uuidAreaTR_TUE)) { return AREA_EUROPEAN_TURKEY; }
1283
			else if (uuidArea.equals(uuidAreaUA)) { return AREA_UKRAINE_INCLUDING_CRIMEA; }
1284
			else if (uuidArea.equals(uuidAreaVA)) { return AREA_VATICAN_CITY; }
1285
			else if (uuidArea.equals(uuidAreaYU)) { return AREA_FORMER_JUGOSLAVIA; }
1118 1286

  
1119
			/*FE
1120
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaAFR)) { return AREA_AFRO_TROPICAL_REGION; }
1121
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaAUS)) { return AREA_AUSTRALIAN_REGION; }
1122
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaEPA)) { return AREA_EAST_PALAEARCTIC; }
1123
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaGR_AEG)) { return AREA_NORTH_AEGEAN_ISLANDS; }
1124
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaGR_CYC)) { return AREA_CYCLADES_ISLANDS; }
1125
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaGR_DOD)) { return AREA_DODECANESE_ISLANDS; }
1126
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaGR_CR)) { return AREA_CRETE; }
1127
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaGR_GRC)) { return AREA_GREEK_MAINLAND; }
1128
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaNAF)) { return AREA_NORTHERN_AFRICA; }
1129
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaNEA)) { return AREA_NEARCTIC_REGION; }
1130
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaNEO)) { return AREA_NEOTROPICAL_REGION; }
1131
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaNRE)) { return AREA_NEAR_EAST; }
1132
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaORR)) { return AREA_ORIENTAL_REGION; }
1133
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaUA)) { return AREA_UKRAINE_INCLUDING_CRIMEA; }
1134
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaRU_FJL)) { return AREA_FRANZ_JOSEF_LAND; }
1135
			else if (namedArea.getUuid().equals(FaunaEuropaeaTransformer.uuidAreaRU_NOZ)) { return AREA_NOVAYA_ZEMLYA; }
1136
*/
1137 1287
        }else if (area.getVocabulary().getUuid().equals(ErmsTransformer.uuidVocErmsAreas)){
1138 1288
			//ERMS
1139
			if (namedArea.getUuid().equals(ErmsTransformer.uuidEuropeanMarineWaters)) { return AREA_EUROPEAN_MARINE_WATERS; }
1289
            UUID uuidArea = namedArea.getUuid();
1290
            if (uuidArea.equals(ErmsTransformer.uuidEuropeanMarineWaters)) { return AREA_EUROPEAN_MARINE_WATERS; }
1140 1291
			else if (//(namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("MES") ||   /carefull: NPE!
1141
					(namedArea.getUuid().equals(ErmsTransformer.uuidMediterraneanSea))) { return AREA_MEDITERRANEAN_SEA; } // abbreviated label missing
1142
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidWhiteSea)) { return AREA_WHITE_SEA; }
1143
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorthSea)) { return AREA_NORTH_SEA; }
1144
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBalticSea)) { return AREA_BALTIC_SEA; }
1292
					(uuidArea.equals(ErmsTransformer.uuidMediterraneanSea))) { return AREA_MEDITERRANEAN_SEA; } // abbreviated label missing
1293
			else if (uuidArea.equals(ErmsTransformer.uuidWhiteSea)) { return AREA_WHITE_SEA; }
1294
			else if (uuidArea.equals(ErmsTransformer.uuidNorthSea)) { return AREA_NORTH_SEA; }
1295
			else if (uuidArea.equals(ErmsTransformer.uuidBalticSea)) { return AREA_BALTIC_SEA; }
1145 1296
			else if (//(namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLS") ||   /carefull: NPE!
1146
					(namedArea.getUuid().equals(ErmsTransformer.uuidBlackSea))) { return AREA_BLACK_SEA; } // abbreviated label missing
1147
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBarentsSea)) { return AREA_BARENTS_SEA; }
1297
					(uuidArea.equals(ErmsTransformer.uuidBlackSea))) { return AREA_BLACK_SEA; } // abbreviated label missing
1298
			else if (uuidArea.equals(ErmsTransformer.uuidBarentsSea)) { return AREA_BARENTS_SEA; }
1148 1299
			else if (//(namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CAS") ||   /carefull: NPE!
1149
					(namedArea.getUuid().equals(ErmsTransformer.uuidCaspianSea))) { return AREA_CASPIAN_SEA; } // abbreviated label missing
1150
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidPortugueseExclusiveEconomicZone)) { return AREA_PORTUGUESE_EXCLUSIVE_ECONOMIC_ZONE; }
1151
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBelgianExclusiveEconomicZone)) { return AREA_BELGIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1152
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidFrenchExclusiveEconomicZone)) { return AREA_FRENCH_EXCLUSIVE_ECONOMIC_ZONE; }
1153
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidEnglishChannel)) { return AREA_ENGLISH_CHANNEL; }
1154
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidAdriaticSea)) { return AREA_ADRIATIC_SEA; }
1155
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBiscayBay)) { return AREA_BISCAY_BAY; }
1156
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidDutchExclusiveEconomicZone)) { return AREA_DUTCH_EXCLUSIVE_ECONOMIC_ZONE; }
1157
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidUnitedKingdomExclusiveEconomicZone)) { return AREA_UNITED_KINGDOM_EXCLUSIVE_ECONOMIC_ZONE; }
1158
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSpanishExclusiveEconomicZone)) { return AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE; }
1159
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidEgyptianExclusiveEconomicZone)) { return AREA_EGYPTIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1160
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidTirrenoSea)) { return AREA_TIRRENO_SEA; }
1161
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidIcelandicExclusiveEconomicZone)) { return AREA_ICELANDIC_EXCLUSIVE_ECONOMIC_ZONE; }
1162
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidIrishExclusiveeconomicZone)) { return AREA_IRISH_EXCLUSIVE_ECONOMIC_ZONE; }
1163
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidIrishSea)) { return AREA_IRISH_SEA; }
1164
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidIsraeliExclusiveEconomicZone)){ return 218;}
1165
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidItalianExclusiveEconomicZone)) { return AREA_ITALIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1166
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorwegianSea)) { return AREA_NORWEGIAN_SEA; }
1167
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidMoroccanExclusiveEconomicZone)) { return AREA_MOROCCAN_EXCLUSIVE_ECONOMIC_ZONE; }
1168
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorwegianExclusiveEconomicZone)) { return AREA_NORWEGIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1169
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSkagerrak)) { return AREA_SKAGERRAK; }
1170
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidTunisianExclusiveEconomicZone)) { return AREA_TUNISIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1171
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidWaddenSea)) { return AREA_WADDEN_SEA; }
1172
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBeltSea)) { return AREA_BELT_SEA; }
1173
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidMarmaraSea)) { return AREA_MARMARA_SEA; }
1174
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSeaofAzov)) { return AREA_SEA_OF_AZOV; }
1175
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidAegeanSea)) { return AREA_AEGEAN_SEA; }
1176
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBulgarianExclusiveEconomicZone)) { return AREA_BULGARIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1177
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSouthBalticproper)) { return AREA_SOUTH_BALTIC_PROPER; }
1178
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBalticProper)) { return AREA_BALTIC_PROPER; }
1179
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorthBalticproper)) { return AREA_NORTH_BALTIC_PROPER; }
1180
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidArchipelagoSea)) { return AREA_ARCHIPELAGO_SEA; }
1181
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBothnianSea)) { return AREA_BOTHNIAN_SEA; }
1182
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidGermanExclusiveEconomicZone)) { return AREA_GERMAN_EXCLUSIVE_ECONOMIC_ZONE; }
1183
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSwedishExclusiveEconomicZone)) { return AREA_SWEDISH_EXCLUSIVE_ECONOMIC_ZONE; }
1184
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidUkrainianExclusiveEconomicZone)) { return AREA_UKRAINIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1185
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidMadeiranExclusiveEconomicZone)) { return AREA_MADEIRAN_EXCLUSIVE_ECONOMIC_ZONE; }
1186
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidLebaneseExclusiveEconomicZone)) { return AREA_LEBANESE_EXCLUSIVE_ECONOMIC_ZONE; }
1187
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSpanishExclusiveEconomicZoneMediterraneanpart)) { return AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE_MEDITERRANEAN_PART; }
1188
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidEstonianExclusiveEconomicZone)) { return AREA_ESTONIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1189
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidCroatianExclusiveEconomicZone)) { return AREA_CROATIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1190
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBalearSea)) { return AREA_BALEAR_SEA; }
1191
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidTurkishExclusiveEconomicZone)) { return AREA_TURKISH_EXCLUSIVE_ECONOMIC_ZONE; }
1192
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidDanishExclusiveEconomicZone)) { return AREA_DANISH_EXCLUSIVE_ECONOMIC_ZONE; }
1193

  
1194
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidAlboranSea)) { return 219; }
1195
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidAlgeria)) { return 220; }
1196
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidAngola)) { return 221; }
1197
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidAustralianExclusiveEconomicZone)) { return 222; }
1198
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBahamas)) { return 223; }
1199
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBalearicSea)) { return 224; }
1200
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBelgium)) { return 225; }
1201
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBelize)) { return 226; }
1202
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBrazil)) { return 227; }
1203
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidBulgaria)) { return 228; }
1204
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidCanada)) { return 229; }
1205
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidCapeVerde)) { return 230; }
1206
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidCapeVerdeanExclusiveEconomicZone)) { return 231; }
1207
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidCaribbeanSea)) { return 210; }
1208
            else if (namedArea.getUuid().equals(ErmsTransformer.uuidChile)) { return 232; }
1209
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidColombia)) { return 233; }
1210
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidCostaRica)) { return 234; }
1211
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidCroatia)) { return 235; }
1212
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidCuba)) { return 236; }
1213
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidDenmark)) { return 292; }
1214
            else if (namedArea.getUuid().equals(ErmsTransformer.uuidEgypt)) { return 237; }
1215
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidEstonia)) { return 238; }
1216
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidFaeroeExclusiveEconomicZone)) { return 239; }
1217
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidFrance)) { return 240; }
1218
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidGhana)) { return 241; }
1219
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidGreece)) { return 242; }
1220
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidGreekExclusiveEconomicZone)) { return AREA_GREEK_EXCLUSIVE_ECONOMIC_ZONE; }
1221
            else if (namedArea.getUuid().equals(ErmsTransformer.uuidGulfOfBothnia)) { return 243; }
1222
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidGulfOfFinland)) { return 244; }
1223
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidGulfOfGuinea)) { return 245; }
1224
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidGulfOfMexico)) { return 246; }
1225
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidGulfOfRiga)) { return 247; }
1226
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidIceland)) { return 248; }
1227
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidIonianSea)) { return 249; }
1228
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidIreland)) { return 250; }
1229
            else if (namedArea.getUuid().equals(ErmsTransformer.uuidItaly)) { return 251; }
1230
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidJamaica)) { return 252; }
1231
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidKattegat)) { return 253; }
1232
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidLevantineSea)) { return 254; }
1233
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidLigurianSea)) { return 255; }
1234
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidMalteseExclusiveEconomicZone)) { return 256; }
1235
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidMauritanianExclusiveEconomicZone)) { return 257; }
1236
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidMediterraneanSea_EasternBasin)) { return 258; }
1237
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidMediterraneanSea_WesternBasin)) { return 259; }
1238
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidMexico)) { return 260; }
1239
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidMorocco)) { return 261; }
1240
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidNetherlands)) { return 262; }
1241
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidNewZealand)) { return 263; }
1242
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidNewZealandExclusiveEconomicZone)) { return 264; }
1243
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorthAtlanticOcean)) { return 265; }
1244
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorway)) { return 266; }
1245
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidPanama)) { return 267; }
1246
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidPanamanianExclusiveEconomicZone)) { return 268; }
1247
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidPolishExclusiveEconomicZone)) { return 216; }
1248
            else if (namedArea.getUuid().equals(ErmsTransformer.uuidPortugal)) { return 269; }
1249
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidPortugueseExclusiveEconomicZone_Azores)) { return 270; }
1250
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidPortugueseExclusiveEconomicZone_Madeira)) { return 271; }
1251
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidRedSea)) { return 272; }
1252
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidRussianExclusiveEconomicZone)) { return 217; }
1253
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSeaOfMarmara)) { return 273; }
1254
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSenegaleseExclusiveEconomicZone)) { return 274; }
1255
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSingapore)) { return 275; }
1256
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSlovenianExclusiveEconomicZone)) { return 276; }
1257
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSouthAfrica)) { return 277; }
1258
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSouthAfricanExclusiveEconomicZone)) { return 278; }
1259
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSouthChinaSea)) { return 279; }
1260
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSpain)) { return 280; }
1261
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSpanishExclusiveEconomicZone_CanaryIslands)) { return 281; }
1262
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSriLankanExclusiveEconomicZone)) { return 282; }
1263
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidStraitOfGibraltar)) { return 283; }
1264
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidSweden)) { return 284; }
1265
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidTunisia)) { return 285; }
1266
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidTurkey)) { return 286; }
1267
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidTyrrhenianSea)) { return 287; }
1268
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidUnitedKingdom)) { return 288; }
1269
	        else if (namedArea.getUuid().equals(ErmsTransformer.uuidUnitedStates)) { return 291; }
1270
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidUnitedStatesExclusiveEconomicZone_Alaska)) { return 289; }
1271
			else if (namedArea.getUuid().equals(ErmsTransformer.uuidVenezuela)) { return 290; }
1300
					(uuidArea.equals(ErmsTransformer.uuidCaspianSea))) { return AREA_CASPIAN_SEA; } // abbreviated label missing
1301
			else if (uuidArea.equals(ErmsTransformer.uuidPortugueseExclusiveEconomicZone)) { return AREA_PORTUGUESE_EXCLUSIVE_ECONOMIC_ZONE; }
1302
			else if (uuidArea.equals(ErmsTransformer.uuidBelgianExclusiveEconomicZone)) { return AREA_BELGIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1303
			else if (uuidArea.equals(ErmsTransformer.uuidFrenchExclusiveEconomicZone)) { return AREA_FRENCH_EXCLUSIVE_ECONOMIC_ZONE; }
1304
			else if (uuidArea.equals(ErmsTransformer.uuidEnglishChannel)) { return AREA_ENGLISH_CHANNEL; }
1305
			else if (uuidArea.equals(ErmsTransformer.uuidAdriaticSea)) { return AREA_ADRIATIC_SEA; }
1306
			else if (uuidArea.equals(ErmsTransformer.uuidBiscayBay)) { return AREA_BISCAY_BAY; }
1307
			else if (uuidArea.equals(ErmsTransformer.uuidDutchExclusiveEconomicZone)) { return AREA_DUTCH_EXCLUSIVE_ECONOMIC_ZONE; }
1308
			else if (uuidArea.equals(ErmsTransformer.uuidUnitedKingdomExclusiveEconomicZone)) { return AREA_UNITED_KINGDOM_EXCLUSIVE_ECONOMIC_ZONE; }
1309
			else if (uuidArea.equals(ErmsTransformer.uuidSpanishExclusiveEconomicZone)) { return AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE; }
1310
			else if (uuidArea.equals(ErmsTransformer.uuidEgyptianExclusiveEconomicZone)) { return AREA_EGYPTIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1311
			else if (uuidArea.equals(ErmsTransformer.uuidTirrenoSea)) { return AREA_TIRRENO_SEA; }
1312
			else if (uuidArea.equals(ErmsTransformer.uuidIcelandicExclusiveEconomicZone)) { return AREA_ICELANDIC_EXCLUSIVE_ECONOMIC_ZONE; }
1313
			else if (uuidArea.equals(ErmsTransformer.uuidIrishExclusiveeconomicZone)) { return AREA_IRISH_EXCLUSIVE_ECONOMIC_ZONE; }
1314
			else if (uuidArea.equals(ErmsTransformer.uuidIrishSea)) { return AREA_IRISH_SEA; }
1315
			else if (uuidArea.equals(ErmsTransformer.uuidIsraeliExclusiveEconomicZone)){ return 218;}
1316
			else if (uuidArea.equals(ErmsTransformer.uuidItalianExclusiveEconomicZone)) { return AREA_ITALIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1317
			else if (uuidArea.equals(ErmsTransformer.uuidNorwegianSea)) { return AREA_NORWEGIAN_SEA; }
1318
			else if (uuidArea.equals(ErmsTransformer.uuidMoroccanExclusiveEconomicZone)) { return AREA_MOROCCAN_EXCLUSIVE_ECONOMIC_ZONE; }
1319
			else if (uuidArea.equals(ErmsTransformer.uuidNorwegianExclusiveEconomicZone)) { return AREA_NORWEGIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1320
			else if (uuidArea.equals(ErmsTransformer.uuidSkagerrak)) { return AREA_SKAGERRAK; }
1321
			else if (uuidArea.equals(ErmsTransformer.uuidTunisianExclusiveEconomicZone)) { return AREA_TUNISIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1322
			else if (uuidArea.equals(ErmsTransformer.uuidWaddenSea)) { return AREA_WADDEN_SEA; }
1323
			else if (uuidArea.equals(ErmsTransformer.uuidBeltSea)) { return AREA_BELT_SEA; }
1324
			else if (uuidArea.equals(ErmsTransformer.uuidMarmaraSea)) { return AREA_MARMARA_SEA; }
1325
			else if (uuidArea.equals(ErmsTransformer.uuidSeaofAzov)) { return AREA_SEA_OF_AZOV; }
1326
			else if (uuidArea.equals(ErmsTransformer.uuidAegeanSea)) { return AREA_AEGEAN_SEA; }
1327
			else if (uuidArea.equals(ErmsTransformer.uuidBulgarianExclusiveEconomicZone)) { return AREA_BULGARIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1328
			else if (uuidArea.equals(ErmsTransformer.uuidSouthBalticproper)) { return AREA_SOUTH_BALTIC_PROPER; }
1329
			else if (uuidArea.equals(ErmsTransformer.uuidBalticProper)) { return AREA_BALTIC_PROPER; }
1330
			else if (uuidArea.equals(ErmsTransformer.uuidNorthBalticproper)) { return AREA_NORTH_BALTIC_PROPER; }
1331
			else if (uuidArea.equals(ErmsTransformer.uuidArchipelagoSea)) { return AREA_ARCHIPELAGO_SEA; }
1332
			else if (uuidArea.equals(ErmsTransformer.uuidBothnianSea)) { return AREA_BOTHNIAN_SEA; }
1333
			else if (uuidArea.equals(ErmsTransformer.uuidGermanExclusiveEconomicZone)) { return AREA_GERMAN_EXCLUSIVE_ECONOMIC_ZONE; }
1334
			else if (uuidArea.equals(ErmsTransformer.uuidSwedishExclusiveEconomicZone)) { return AREA_SWEDISH_EXCLUSIVE_ECONOMIC_ZONE; }
1335
			else if (uuidArea.equals(ErmsTransformer.uuidUkrainianExclusiveEconomicZone)) { return AREA_UKRAINIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1336
			else if (uuidArea.equals(ErmsTransformer.uuidMadeiranExclusiveEconomicZone)) { return AREA_MADEIRAN_EXCLUSIVE_ECONOMIC_ZONE; }
1337
			else if (uuidArea.equals(ErmsTransformer.uuidLebaneseExclusiveEconomicZone)) { return AREA_LEBANESE_EXCLUSIVE_ECONOMIC_ZONE; }
1338
			else if (uuidArea.equals(ErmsTransformer.uuidSpanishExclusiveEconomicZoneMediterraneanpart)) { return AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE_MEDITERRANEAN_PART; }
1339
			else if (uuidArea.equals(ErmsTransformer.uuidEstonianExclusiveEconomicZone)) { return AREA_ESTONIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1340
			else if (uuidArea.equals(ErmsTransformer.uuidCroatianExclusiveEconomicZone)) { return AREA_CROATIAN_EXCLUSIVE_ECONOMIC_ZONE; }
1341
			else if (uuidArea.equals(ErmsTransformer.uuidBalearSea)) { return AREA_BALEAR_SEA; }
1342
			else if (uuidArea.equals(ErmsTransformer.uuidTurkishExclusiveEconomicZone)) { return AREA_TURKISH_EXCLUSIVE_ECONOMIC_ZONE; }
1343
			else if (uuidArea.equals(ErmsTransformer.uuidDanishExclusiveEconomicZone)) { return AREA_DANISH_EXCLUSIVE_ECONOMIC_ZONE; }
1344

  
1345
			else if (uuidArea.equals(ErmsTransformer.uuidAlboranSea)) { return 219; }
1346
			else if (uuidArea.equals(ErmsTransformer.uuidAlgeria)) { return 220; }
1347
			else if (uuidArea.equals(ErmsTransformer.uuidAngola)) { return 221; }
1348
			else if (uuidArea.equals(ErmsTransformer.uuidAustralianExclusiveEconomicZone)) { return 222; }
1349
			else if (uuidArea.equals(ErmsTransformer.uuidBahamas)) { return 223; }
1350
			else if (uuidArea.equals(ErmsTransformer.uuidBalearicSea)) { return 224; }
1351
			else if (uuidArea.equals(ErmsTransformer.uuidBelgium)) { return 225; }
1352
			else if (uuidArea.equals(ErmsTransformer.uuidBelize)) { return 226; }
1353
			else if (uuidArea.equals(ErmsTransformer.uuidBrazil)) { return 227; }
1354
			else if (uuidArea.equals(ErmsTransformer.uuidBulgaria)) { return 228; }
1355
			else if (uuidArea.equals(ErmsTransformer.uuidCanada)) { return 229; }
1356
			else if (uuidArea.equals(ErmsTransformer.uuidCapeVerde)) { return 230; }
1357
			else if (uuidArea.equals(ErmsTransformer.uuidCapeVerdeanExclusiveEconomicZone)) { return 231; }
1358
			else if (uuidArea.equals(ErmsTransformer.uuidCaribbeanSea)) { return 210; }
1359
            else if (uuidArea.equals(ErmsTransformer.uuidChile)) { return 232; }
1360
			else if (uuidArea.equals(ErmsTransformer.uuidColombia)) { return 233; }
1361
			else if (uuidArea.equals(ErmsTransformer.uuidCostaRica)) { return 234; }
1362
			else if (uuidArea.equals(ErmsTransformer.uuidCroatia)) { return 235; }
1363
			else if (uuidArea.equals(ErmsTransformer.uuidCuba)) { return 236; }
1364
			else if (uuidArea.equals(ErmsTransformer.uuidDenmark)) { return 292; }
1365
            else if (uuidArea.equals(ErmsTransformer.uuidEgypt)) { return 237; }
1366
			else if (uuidArea.equals(ErmsTransformer.uuidEstonia)) { return 238; }
1367
			else if (uuidArea.equals(ErmsTransformer.uuidFaeroeExclusiveEconomicZone)) { return 239; }
1368
			else if (uuidArea.equals(ErmsTransformer.uuidFrance)) { return 240; }
1369
			else if (uuidArea.equals(ErmsTransformer.uuidGhana)) { return 241; }
1370
			else if (uuidArea.equals(ErmsTransformer.uuidGreece)) { return 242; }
1371
			else if (uuidArea.equals(ErmsTransformer.uuidGreekExclusiveEconomicZone)) { return AREA_GREEK_EXCLUSIVE_ECONOMIC_ZONE; }
1372
            else if (uuidArea.equals(ErmsTransformer.uuidGulfOfBothnia)) { return 243; }
1373
			else if (uuidArea.equals(ErmsTransformer.uuidGulfOfFinland)) { return 244; }
1374
			else if (uuidArea.equals(ErmsTransformer.uuidGulfOfGuinea)) { return 245; }
1375
			else if (uuidArea.equals(ErmsTransformer.uuidGulfOfMexico)) { return 246; }
1376
			else if (uuidArea.equals(ErmsTransformer.uuidGulfOfRiga)) { return 247; }
1377
			else if (uuidArea.equals(ErmsTransformer.uuidIceland)) { return 248; }
1378
			else if (uuidArea.equals(ErmsTransformer.uuidIonianSea)) { return 249; }
1379
			else if (uuidArea.equals(ErmsTransformer.uuidIreland)) { return 250; }
1380
            else if (uuidArea.equals(ErmsTransformer.uuidItaly)) { return 251; }
1381
			else if (uuidArea.equals(ErmsTransformer.uuidJamaica)) { return 252; }
1382
			else if (uuidArea.equals(ErmsTransformer.uuidKattegat)) { return 253; }
1383
			else if (uuidArea.equals(ErmsTransformer.uuidLevantineSea)) { return 254; }
1384
			else if (uuidArea.equals(ErmsTransformer.uuidLigurianSea)) { return 255; }
1385
			else if (uuidArea.equals(ErmsTransformer.uuidMalteseExclusiveEconomicZone)) { return 256; }
1386
			else if (uuidArea.equals(ErmsTransformer.uuidMauritanianExclusiveEconomicZone)) { return 257; }
1387
			else if (uuidArea.equals(ErmsTransformer.uuidMediterraneanSea_EasternBasin)) { return 258; }
1388
			else if (uuidArea.equals(ErmsTransformer.uuidMediterraneanSea_WesternBasin)) { return 259; }
1389
			else if (uuidArea.equals(ErmsTransformer.uuidMexico)) { return 260; }
1390
			else if (uuidArea.equals(ErmsTransformer.uuidMorocco)) { return 261; }
1391
			else if (uuidArea.equals(ErmsTransformer.uuidNetherlands)) { return 262; }
1392
			else if (uuidArea.equals(ErmsTransformer.uuidNewZealand)) { return 263; }
1393
			else if (uuidArea.equals(ErmsTransformer.uuidNewZealandExclusiveEconomicZone)) { return 264; }
1394
			else if (uuidArea.equals(ErmsTransformer.uuidNorthAtlanticOcean)) { return 265; }
1395
			else if (uuidArea.equals(ErmsTransformer.uuidNorway)) { return 266; }
1396
			else if (uuidArea.equals(ErmsTransformer.uuidPanama)) { return 267; }
1397
			else if (uuidArea.equals(ErmsTransformer.uuidPanamanianExclusiveEconomicZone)) { return 268; }
1398
			else if (uuidArea.equals(ErmsTransformer.uuidPolishExclusiveEconomicZone)) { return 216; }
1399
            else if (uuidArea.equals(ErmsTransformer.uuidPortugal)) { return 269; }
1400
			else if (uuidArea.equals(ErmsTransformer.uuidPortugueseExclusiveEconomicZone_Azores)) { return 270; }
1401
			else if (uuidArea.equals(ErmsTransformer.uuidPortugueseExclusiveEconomicZone_Madeira)) { return 271; }
1402
			else if (uuidArea.equals(ErmsTransformer.uuidRedSea)) { return 272; }
1403
			else if (uuidArea.equals(ErmsTransformer.uuidRussianExclusiveEconomicZone)) { return 217; }
1404
			else if (uuidArea.equals(ErmsTransformer.uuidSeaOfMarmara)) { return 273; }
1405
			else if (uuidArea.equals(ErmsTransformer.uuidSenegaleseExclusiveEconomicZone)) { return 274; }
1406
			else if (uuidArea.equals(ErmsTransformer.uuidSingapore)) { return 275; }
1407
			else if (uuidArea.equals(ErmsTransformer.uuidSlovenianExclusiveEconomicZone)) { return 276; }
1408
			else if (uuidArea.equals(ErmsTransformer.uuidSouthAfrica)) { return 277; }
1409
			else if (uuidArea.equals(ErmsTransformer.uuidSouthAfricanExclusiveEconomicZone)) { return 278; }
1410
			else if (uuidArea.equals(ErmsTransformer.uuidSouthChinaSea)) { return 279; }
1411
			else if (uuidArea.equals(ErmsTransformer.uuidSpain)) { return 280; }
1412
			else if (uuidArea.equals(ErmsTransformer.uuidSpanishExclusiveEconomicZone_CanaryIslands)) { return 281; }
1413
			else if (uuidArea.equals(ErmsTransformer.uuidSriLankanExclusiveEconomicZone)) { return 282; }
1414
			else if (uuidArea.equals(ErmsTransformer.uuidStraitOfGibraltar)) { return 283; }
1415
			else if (uuidArea.equals(ErmsTransformer.uuidSweden)) { return 284; }
1416
			else if (uuidArea.equals(ErmsTransformer.uuidTunisia)) { return 285; }
1417
			else if (uuidArea.equals(ErmsTransformer.uuidTurkey)) { return 286; }
1418
			else if (uuidArea.equals(ErmsTransformer.uuidTyrrhenianSea)) { return 287; }
1419
			else if (uuidArea.equals(ErmsTransformer.uuidUnitedKingdom)) { return 288; }
1420
	        else if (uuidArea.equals(ErmsTransformer.uuidUnitedStates)) { return 291; }
1421
			else if (uuidArea.equals(ErmsTransformer.uuidUnitedStatesExclusiveEconomicZone_Alaska)) { return 289; }
1422
			else if (uuidArea.equals(ErmsTransformer.uuidVenezuela)) { return 290; }
1272 1423

  
1273 1424
			else {
1274 1425
				logger.warn("Unknown ERMS Area: " + area.getTitleCache());
......
1327 1478
		}else if (language.getUuid().equals(BerlinModelTransformer.uuidLangValencian)){return LANG_VALENCIAN;
1328 1479
        }else if (language.getUuid().equals(BerlinModelTransformer.uuidLangHighAragonese)){return LANG_HIGH_ARAGONES;
1329 1480
        }else if (language.getUuid().equals(BerlinModelTransformer.uuidLangMajorcan)){return LANG_MAJORCAN;
1481
        //FE wrong mapping in FE, Dutch_Middle should probably be Dutch
1482
        }else if (language.equals(Language.DUTCH_MIDDLE())){return LANG_DUTCH;
1330 1483
        //some common names from ILDIS have no defined language
1331 1484
        }else if (language.equals(Language.UNKNOWN_LANGUAGE())){return LANG_UNKNOWN;
1332 1485
        } else {

Also available in: Unified diff