Revision 986f6827
Added by Andreas Müller almost 6 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/media/in/MediaExcelImport.java | ||
---|---|---|
319 | 319 |
Matcher matcherFull = Pattern.compile(regExFull).matcher(artist); |
320 | 320 |
|
321 | 321 |
if (matcherAbbrev.matches()){ |
322 |
person.setFirstname(matcherAbbrev.group(1).trim());
|
|
323 |
person.setLastname(matcherAbbrev.group(2).trim());
|
|
322 |
person.setGivenName(matcherAbbrev.group(1).trim());
|
|
323 |
person.setFamilyName(matcherAbbrev.group(2).trim());
|
|
324 | 324 |
}else if (matcherFull.matches()){ |
325 |
person.setFirstname(matcherFull.group(1).trim());
|
|
326 |
person.setLastname(matcherFull.group(2).trim());
|
|
325 |
person.setGivenName(matcherFull.group(1).trim());
|
|
326 |
person.setFamilyName(matcherFull.group(2).trim());
|
|
327 | 327 |
}else{ |
328 | 328 |
person.setTitleCache(artist, true); |
329 | 329 |
String message = "A name of a person can not be atomized: %s"; |
Also available in: Unified diff
ref #7238 rename lastName and firstName