Revision 02153b5c
Added by Andreas Müller over 11 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/globis/GlobisCurrentSpeciesImport.java | ||
---|---|---|
304 | 304 |
} |
305 | 305 |
|
306 | 306 |
private void handleCommonNames(GlobisImportState state, ResultSet rs, Taxon species) throws SQLException { |
307 |
String commonNamesStr = rs.getString("vernacularnames"); |
|
308 |
if (isBlank(commonNamesStr)){ |
|
309 |
return; |
|
310 |
} |
|
311 |
String[] commonNamesSplit = commonNamesStr.split(";"); |
|
312 |
for (String commonNameStr : commonNamesSplit){ |
|
313 |
if (isBlank(commonNameStr)){ |
|
314 |
continue; |
|
315 |
} |
|
316 |
Language language = null; //TODO |
|
317 |
CommonTaxonName commonName = CommonTaxonName.NewInstance(commonNameStr, language); |
|
318 |
TaxonDescription desc = getTaxonDescription(species, state.getTransactionalSourceReference(), false, true); |
|
319 |
desc.addElement(commonName); |
|
320 |
} |
|
307 |
//DON't use, use seperate common name tables instead |
|
308 |
|
|
309 |
// String commonNamesStr = rs.getString("vernacularnames"); |
|
310 |
// if (isBlank(commonNamesStr)){ |
|
311 |
// return; |
|
312 |
// } |
|
313 |
// String[] commonNamesSplit = commonNamesStr.split(";"); |
|
314 |
// for (String commonNameStr : commonNamesSplit){ |
|
315 |
// if (isBlank(commonNameStr)){ |
|
316 |
// continue; |
|
317 |
// } |
|
318 |
// Language language = null; //TODO |
|
319 |
// CommonTaxonName commonName = CommonTaxonName.NewInstance(commonNameStr, language); |
|
320 |
// TaxonDescription desc = getTaxonDescription(species, state.getTransactionalSourceReference(), false, true); |
|
321 |
// desc.addElement(commonName); |
|
322 |
// } |
|
321 | 323 |
} |
322 | 324 |
|
323 | 325 |
|
Also available in: Unified diff
update Globis import