Revision 9d857396
Added by Andreas Müller over 4 years ago
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiTransformer.java | ||
---|---|---|
114 | 114 |
private static int REF_PUBLICATION = 11; |
115 | 115 |
public static String REF_STR_UNRESOLVED = "unresolved"; |
116 | 116 |
|
117 |
private static int LANG_VALENCIAN = 65; |
|
118 |
private static int LANG_HIGH_ARAGONES = 66; |
|
119 |
private static int LANG_MAJORCAN = 67; |
|
120 |
|
|
121 |
|
|
117 | 122 |
|
118 | 123 |
// NameStatus |
119 | 124 |
public static UUID uuidNomStatusTemporaryName = UUID.fromString("aa6ada5a-ca21-4fef-b76f-9ae237e9c4ae"); |
... | ... | |
1063 | 1068 |
else if (uuidArea.equals(BerlinModelTransformer.uuidEMAreaCommonNameEastAegeanIslands)) { return AREA_EAST_AEGEAN_ISLANDS; } |
1064 | 1069 |
else if (uuidArea.equals(BerlinModelTransformer.uuidEMAreaCommonNameEstonia)) { return AREA_ESTONIA; } |
1065 | 1070 |
else if (uuidArea.equals(BerlinModelTransformer.uuidEMAreaCommonNameEstonia)) { return AREA_ESTONIA; } |
1071 |
else if (uuidArea.equals(BerlinModelTransformer.uuidEMAreaCommonNameFaroer)) { return AREA_FAROE_ISLANDS; } |
|
1066 | 1072 |
else if (uuidArea.equals(BerlinModelTransformer.uuidEMAreaCommonNameFinland)) { return AREA_FINLAND_WITH_AHVENANMAA; } //?? |
1067 | 1073 |
else if (uuidArea.equals(BerlinModelTransformer.uuidEMAreaCommonNameFinlandWithAhvenanmaa)) { return AREA_FINLAND_WITH_AHVENANMAA; } |
1068 | 1074 |
else if (uuidArea.equals(BerlinModelTransformer.uuidEMAreaCommonNameFrance)) { return AREA_FRANCE; } |
... | ... | |
1319 | 1325 |
return result; |
1320 | 1326 |
}else if ((result = languageCodeToKeyMap.get(language.getIdInVocabulary())) != null){ |
1321 | 1327 |
return result; |
1322 |
|
|
1328 |
//Languages without ISO identifier |
|
1329 |
}else if (language.getUuid().equals(BerlinModelTransformer.uuidLangValencian)){return LANG_VALENCIAN; |
|
1330 |
}else if (language.getUuid().equals(BerlinModelTransformer.uuidLangHighAragonese)){return LANG_HIGH_ARAGONES; |
|
1331 |
}else if (language.getUuid().equals(BerlinModelTransformer.uuidLangMajorcan)){return LANG_MAJORCAN; |
|
1323 | 1332 |
} else { |
1324 | 1333 |
logger.warn("Unknown Language: " + language.getTitleCache()); |
1325 | 1334 |
return null; |
... | ... | |
1982 | 1991 |
RelationshipTermBase<?> type = relation.getType(); |
1983 | 1992 |
if (type.equals(TaxonRelationshipType.MISAPPLIED_NAME_FOR())) { |
1984 | 1993 |
return IS_MISAPPLIED_NAME_FOR; |
1985 |
//TODO |
|
1986 |
// } else if (type.equals(TaxonRelationshipType.PRO_PARTE_MISAPPLIED_NAME_FOR())) { |
|
1987 |
// return IS_PRO_PARTE_MISAPPLIED_NAME_FOR; |
|
1994 |
} else if (type.equals(TaxonRelationshipType.PRO_PARTE_MISAPPLIED_NAME_FOR())) { |
|
1995 |
return IS_PRO_PARTE_MISAPPLIED_NAME_FOR; |
|
1988 | 1996 |
} else if (type.equals(TaxonRelationshipType.PRO_PARTE_SYNONYM_FOR())) { |
1989 | 1997 |
return IS_PRO_PARTE_SYNONYM_OF; |
1990 | 1998 |
} else if (type.equals(TaxonRelationshipType.PARTIAL_SYNONYM_FOR())) { |
... | ... | |
2005 | 2013 |
return IS_TREATED_AS_LATER_HOMONYM_OF; |
2006 | 2014 |
} else if (type.equals(NameRelationshipType.ORTHOGRAPHIC_VARIANT())) { |
2007 | 2015 |
return IS_ORTHOGRAPHIC_VARIANT_OF; |
2016 |
} else if (type.equals(NameRelationshipType.ORIGINAL_SPELLING())) { |
|
2017 |
return IS_ORIGINAL_SPELLING_FOR; |
|
2018 |
} else if (type.equals(NameRelationshipType.BLOCKING_NAME_FOR())) { |
|
2019 |
return IS_BLOCKING_NAME_FOR; |
|
2008 | 2020 |
} else if (type.equals(NameRelationshipType.ALTERNATIVE_NAME())) { |
2009 | 2021 |
return IS_ALTERNATIVE_NAME_FOR; |
2010 | 2022 |
} else if (type.equals(HybridRelationshipType.FEMALE_PARENT())) { |
Also available in: Unified diff
ref #2717 add Valencian, High Aragonese, Majorcan and Faroer to PESI Export