* @throws UnknownCdmTypeException \r
*/\r
public static String presenceAbsenceTerm2OccurrenceStatusCache(PresenceAbsenceTermBase<?> term) {\r
- String result = STR_STATUS_PRESENT; // TODO: What should be returned if a PresenceTerm/AbsenceTerm could not be translated to a datawarehouse occurrence status id?\r
+ String result = null;\r
if (term.isInstanceOf(PresenceTerm.class)) {\r
PresenceTerm presenceTerm = CdmBase.deproxy(term, PresenceTerm.class);\r
if (presenceTerm.equals(PresenceTerm.PRESENT())) {\r
} else {\r
logger.error("AbsenceTerm could not be translated to datawarehouse occurrence status id: " + absenceTerm.getLabel());\r
}\r
-// result = STR_STATUS_ABSENT; // or just like this?\r
}\r
return result;\r
}\r
* @throws UnknownCdmTypeException \r
*/\r
public static Integer presenceAbsenceTerm2OccurrenceStatusId(PresenceAbsenceTermBase<?> term) {\r
- Integer result = STATUS_PRESENT; // TODO: What should be returned if a PresenceTerm/AbsenceTerm could not be translated to a datawarehouse occurrence status id?\r
+ Integer result = null;\r
if (term.isInstanceOf(PresenceTerm.class)) {\r
PresenceTerm presenceTerm = CdmBase.deproxy(term, PresenceTerm.class);\r
if (presenceTerm.equals(PresenceTerm.PRESENT())) {\r
} else {\r
logger.error("AbsenceTerm could not be translated to datawarehouse occurrence status id: " + absenceTerm.getLabel());\r
}\r
-// result = STATUS_ABSENT; // or just like this?\r
}\r
return result;\r
}\r
else if ((tdwgArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_DANISH_EXCLUSIVE_ECONOMIC_ZONE; }\r
else {\r
logger.error("Unknown TdwgArea Area: " + area.getTitleCache());\r
- return 1; // TODO: Actually the export has to stop here because AreaFk's are not allowed to be NULL and another value is plain wrong.\r
}\r
}\r
- return 1; // TODO: Actually the export has to stop here because AreaFk's are not allowed to be NULL and another value is plain wrong.\r
+ return null;\r
\r
}\r
\r
return null;\r
} else if (reference.getType().equals(ReferenceType.Article)) {\r
return REF_ARTICLE_IN_PERIODICAL;\r
- } else if (reference instanceof ISectionBase) {\r
- return REF_PART_OF_OTHER;\r
+// } else if (reference instanceof ISectionBase) {\r
+// return REF_PART_OF_OTHER;\r
} else if (reference.getType().equals(ReferenceType.Book)) {\r
return REF_BOOK;\r
} else if (reference.getType().equals(ReferenceType.Database)) {\r