Revision a9047fed
Added by Andreas Müller over 4 years ago
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/indexFungorum/IndexFungorumImportBase.java | ||
---|---|---|
38 | 38 |
import eu.etaxonomy.cdm.model.common.Marker; |
39 | 39 |
import eu.etaxonomy.cdm.model.common.MarkerType; |
40 | 40 |
import eu.etaxonomy.cdm.model.name.INonViralName; |
41 |
import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType; |
|
41 | 42 |
import eu.etaxonomy.cdm.model.reference.OriginalSourceType; |
42 | 43 |
import eu.etaxonomy.cdm.model.reference.Reference; |
43 | 44 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
... | ... | |
215 | 216 |
//authors |
216 | 217 |
NonViralNameParserImpl parser = NonViralNameParserImpl.NewInstance(); |
217 | 218 |
String authorStr = rs.getString("AUTHORS"); |
218 |
if (StringUtils.isNotBlank(authorStr)){ |
|
219 |
if (isNotBlank(authorStr)){ |
|
220 |
if (authorStr.endsWith("ined.")){ |
|
221 |
name.addStatus(NomenclaturalStatusType.INED(), null, null); |
|
222 |
authorStr = authorStr.substring(0, authorStr.length()-5).trim(); |
|
223 |
} |
|
219 | 224 |
try { |
220 | 225 |
parser.parseAuthors(name, authorStr); |
221 | 226 |
} catch (StringNotParsableException e){ |
222 |
//logger.warn("Authorstring not parsable: " + authorStr);
|
|
227 |
logger.warn("Authorstring not parsable: " + authorStr); |
|
223 | 228 |
name.setAuthorshipCache(authorStr); |
224 | 229 |
} |
225 | 230 |
} |
Also available in: Unified diff
ref #2826 handle ined. authors