Revision 1549333b
Added by Andreas Müller about 8 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/parser/NonViralNameParserImpl.java | ||
---|---|---|
1167 | 1167 |
* @return array of Teams containing the Team[0], |
1168 | 1168 |
* ExTeam[1], BasionymTeam[2], ExBasionymTeam[3] |
1169 | 1169 |
*/ |
1170 |
protected void fullAuthors (String fullAuthorString, TeamOrPersonBase<?>[] authors, Integer[] years, Class<? extends NonViralName> clazz) |
|
1170 |
protected void fullAuthors (String fullAuthorStringOrig, TeamOrPersonBase<?>[] authors, Integer[] years, Class<? extends NonViralName> clazz)
|
|
1171 | 1171 |
throws StringNotParsableException{ |
1172 |
if (fullAuthorString == null || clazz == null){ |
|
1172 |
if (fullAuthorStringOrig == null || clazz == null){
|
|
1173 | 1173 |
return; |
1174 | 1174 |
} |
1175 |
fullAuthorString = fullAuthorString.trim();
|
|
1175 |
String fullAuthorString = fullAuthorStringOrig.trim();
|
|
1176 | 1176 |
|
1177 | 1177 |
//Botanic |
1178 | 1178 |
if ( BotanicalName.class.isAssignableFrom(clazz) ){ |
... | ... | |
1205 | 1205 |
String basString = basionymMatcher.group(); |
1206 | 1206 |
basString = basString.replaceFirst(basStart, ""); |
1207 | 1207 |
basString = basString.replaceAll(basEnd, "").trim(); |
1208 |
authorShipStart = basionymMatcher.end(1) + 1;
|
|
1208 |
authorShipStart = basionymMatcher.end(1); |
|
1209 | 1209 |
|
1210 | 1210 |
TeamOrPersonBase<?>[] basAuthors = new TeamOrPersonBase[2]; |
1211 | 1211 |
Integer[] basYears = new Integer[2]; |
... | ... | |
1216 | 1216 |
years[3] = basYears[1]; |
1217 | 1217 |
} |
1218 | 1218 |
if (fullAuthorString.length() >= authorShipStart){ |
1219 |
TeamOrPersonBase<?>[] combinationAuthors = new TeamOrPersonBase[2];;
|
|
1219 |
TeamOrPersonBase<?>[] combinationAuthors = new TeamOrPersonBase[2]; |
|
1220 | 1220 |
Integer[] combinationYears = new Integer[2]; |
1221 | 1221 |
authorsAndEx(fullAuthorString.substring(authorShipStart), combinationAuthors, combinationYears); |
1222 | 1222 |
authors[0]= combinationAuthors[0] ; |
Also available in: Unified diff
Fix combination author without space parsing #5618