Revision eb55c8f7
Added by Patrick Plitzner over 6 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListGefaesspflanzenImportNames.java | ||
---|---|---|
198 | 198 |
} |
199 | 199 |
} |
200 | 200 |
} |
201 |
else if(authorBasiString.trim().equals(RedListUtil.AUCT)){ |
|
202 |
name.setAppendedPhrase(authorBasiString); |
|
203 |
} |
|
204 | 201 |
else if(CdmUtils.isNotBlank(authorBasiString)){ |
205 | 202 |
//this seems to be a convention in the source database: When there is only a single author then only the "AUTOR_BASI" column is used |
206 | 203 |
TeamOrPersonBase authorBasi= (TeamOrPersonBase) state.getRelatedObject(RedListUtil.AUTHOR_NAMESPACE, authorBasiString); |
... | ... | |
219 | 216 |
if(CdmUtils.isNotBlank(zusatzString)){ |
220 | 217 |
authorString = authorString.replace(", "+zusatzString, ""); |
221 | 218 |
} |
222 |
// if(CdmUtils.isBlank(authorKombString) && !CdmUtils.isBlank(authorBasiString)){ |
|
223 |
// authorString = "("+authorString+")"; |
|
224 |
// } |
|
225 | 219 |
if(authorString.equals(RedListUtil.AUCT)){ |
226 | 220 |
authorString = ""; |
227 | 221 |
} |
... | ... | |
237 | 231 |
|
238 | 232 |
//---TAXON--- |
239 | 233 |
TaxonBase taxonBase = null; |
240 |
if(gueltString.equals(RedListUtil.GUELT_ACCEPTED_TAXON) || (name.getAppendedPhrase()!=null && name.getAppendedPhrase().equals(RedListUtil.AUCT))){
|
|
234 |
if(gueltString.equals(RedListUtil.GUELT_ACCEPTED_TAXON) || (name.getAppendedPhrase()!=null && authorBasiString.trim().equals(RedListUtil.AUCT))){
|
|
241 | 235 |
taxonBase = Taxon.NewInstance(name, null); |
236 |
taxonBase.setAppendedPhrase(authorBasiString); |
|
242 | 237 |
} |
243 | 238 |
else if(gueltString.equals(RedListUtil.GUELT_SYNONYM) || gueltString.equals(RedListUtil.GUELT_BASIONYM)){ |
244 | 239 |
taxonBase = Synonym.NewInstance(name, null); |
Also available in: Unified diff
Correctly set appended phrase for taxon