Revision 9cc443ab
Added by Andreas Kohlbecker over 7 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/iapt/IAPTExcelImport.java | ||
---|---|---|
295 | 295 |
FieldUnit fieldUnit = parseFieldUnit(fieldUnitStr, regNumber, state); |
296 | 296 |
if(fieldUnit == null) { |
297 | 297 |
// create a field unit with only a titleCache using the fieldUnitStr substring |
298 |
logger.warn(csvReportLine(regNumber, "Type: fielUnitStr can not be parsed", fieldUnitStr)); |
|
298 | 299 |
fieldUnit = FieldUnit.NewInstance(); |
299 | 300 |
fieldUnit.setTitleCache(fieldUnitStr, true); |
300 | 301 |
getOccurrenceService().save(fieldUnit); |
... | ... | |
310 | 311 |
FieldUnit fieldUnit = FieldUnit.NewInstance(); |
311 | 312 |
fieldUnit.setTitleCache(typeStr, true); |
312 | 313 |
getOccurrenceService().save(fieldUnit); |
313 |
logger.warn(csvReportLine(regNumber, "Type field can not be parsed", typeStr));
|
|
314 |
logger.warn(csvReportLine(regNumber, "Type: field 'Type' can not be parsed", typeStr));
|
|
314 | 315 |
} |
315 | 316 |
getNameService().save(taxonName); |
316 | 317 |
} |
... | ... | |
614 | 615 |
} |
615 | 616 |
|
616 | 617 |
if(collectionCode == null && instituteStr == null){ |
617 |
logger.warn(csvReportLine(regNumber, "neither 'collectionCode' nor 'institute' found in ", text)); |
|
618 |
logger.warn(csvReportLine(regNumber, "Type: neither 'collectionCode' nor 'institute' found in ", text));
|
|
618 | 619 |
continue; |
619 | 620 |
} |
620 | 621 |
collection = getCollection(collectionCode, instituteStr, subCollectionStr); |
... | ... | |
624 | 625 |
} |
625 | 626 |
} |
626 | 627 |
if(specimen == null) { |
627 |
logger.warn(csvReportLine(regNumber, "Could not parse specimen fieldUnit", typeName.name().toString(), text));
|
|
628 |
logger.warn(csvReportLine(regNumber, "Type: Could not parse specimen", typeName.name().toString(), text));
|
|
628 | 629 |
} |
629 | 630 |
if(unusualAccessionNumber){ |
630 |
logger.warn(csvReportLine(regNumber, "Unusual accession number", typeName.name().toString(), text, accessionNumber)); |
|
631 |
logger.warn(csvReportLine(regNumber, "Type: Unusual accession number", typeName.name().toString(), text, accessionNumber));
|
|
631 | 632 |
} |
632 | 633 |
return specimen; |
633 | 634 |
} |
Also available in: Unified diff
ref #6026 support for making statistics on parsed type data:
Type parsing statistics: