Project

General

Profile

« Previous | Next » 

Revision 7c19e84a

Added by Andreas Müller over 6 years ago

Make FauEU area YU a user defined area #5409

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/faunaEuropaea/FaunaEuropaeaTransformer.java
337 337
                //else if (areaCode.equals("UA")) tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("UKR-UK"); //UKraine including Crimea
338 338
            } else if (areaCode.equals("VA")) {
339 339
                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("ITA-VC");
340
            } else if (areaCode.equals("YU")) {
341
                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("YUG");
340
            //the mapping YU-YUG is incorrect as YUG is larger then YU. The later holds only Serbia, Montenegro and Kozovo while YUG is all former Yugoslavia
341
            //and therefore we disable the mapping
342
//            } else if (areaCode.equals("YU")) {
343
//                tdwgArea = TdwgAreaProvider.getAreaByTdwgAbbreviation("YUG");
342 344
            } else {
343 345
                throw new UnknownCdmTypeException("Unknown Area " + areaCode);
344 346
            }
......
396 398

  
397 399

  
398 400
	 	}
399
	 	
401

  
400 402
	 	public final static HashMap<Integer, Language> languageFK2Language  = new HashMap<Integer,Language>();
401 403
	 	static
402 404
	 	{
......
413 415
	 		languageFK2Language.put(11, Language.DUTCH_MIDDLE());
414 416
	 		languageFK2Language.put(100, Language.NORWEGIAN_BOKMOL());
415 417
	 		languageFK2Language.put(101, Language.NORWEGIAN_NYNORSK());
416
	 		
417 418

  
418 419

  
419
	 	} 	
420

  
421
	 	}
420 422
	public static UUID getUUIDByAreaAbbr(String abbr){
421 423
		return abbrToUUID.get(abbr);
422 424
	}
......
483 485
        }
484 486
        return groupCoordinatorType;
485 487
    }
486
    
488

  
487 489
    /**
488 490
     * @return
489 491
     */
......
502 504
    }
503 505
	public static Language langFK2Language(
504 506
			int languageFk) {
505
		
507

  
506 508
		return null;
507 509
	}
508 510

  

Also available in: Unified diff