Revision 658c4382
Added by Andreas Kohlbecker over 7 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/iapt/IAPTExcelImport.java | ||
---|---|---|
196 | 196 |
Partial pupDate = null; |
197 | 197 |
|
198 | 198 |
boolean restoreOriginalReference = false; |
199 |
boolean nameIsValid = true; |
|
199 | 200 |
|
200 | 201 |
// preprocess nomRef: separate citation, reference detail, publishing date |
201 | 202 |
if(!StringUtils.isEmpty(nomRefStr)){ |
... | ... | |
257 | 258 |
if(!StringUtils.isEmpty(notesTxt)){ |
258 | 259 |
notesTxt = notesTxt.replace("Notes: ", "").trim(); |
259 | 260 |
taxonName.addAnnotation(Annotation.NewInstance(notesTxt, AnnotationType.EDITORIAL(), Language.DEFAULT())); |
261 |
nameIsValid = false; |
|
262 |
|
|
260 | 263 |
} |
261 | 264 |
if(!StringUtils.isEmpty(caveats)){ |
262 | 265 |
caveats = caveats.replace("Caveats: ", "").trim(); |
263 | 266 |
taxonName.addAnnotation(Annotation.NewInstance(caveats, annotationTypeCaveats(), Language.DEFAULT())); |
267 |
nameIsValid = false; |
|
268 |
} |
|
269 |
|
|
270 |
if(nameIsValid){ |
|
271 |
// Status is always considered valid if no notes and cavets are set |
|
272 |
taxonName.addStatus(NomenclaturalStatus.NewInstance(NomenclaturalStatusType.VALID())); |
|
264 | 273 |
} |
265 | 274 |
|
266 | 275 |
getNameService().save(taxonName); |
Also available in: Unified diff
fix #6068