Revision d27fae52
Added by Patrick Plitzner over 7 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/redlist/gefaesspflanzen/RedListUtil.java | ||
---|---|---|
132 | 132 |
logger.info(NAMNR+": "+id+" "+message); |
133 | 133 |
} |
134 | 134 |
|
135 |
public static String getAuthorOfExAuthorshipString(String authorshipString){ |
|
136 |
return getAuthorOfExAuthorship(authorshipString, false); |
|
137 |
} |
|
138 |
|
|
139 |
public static String getExAuthorOfExAuthorshipString(String authorshipString){ |
|
140 |
return getAuthorOfExAuthorship(authorshipString, true); |
|
141 |
} |
|
142 |
|
|
143 |
private static String getAuthorOfExAuthorship(String authorshipString, boolean isExAuthor){ |
|
144 |
String[] split = authorshipString.split(EX); |
|
145 |
if(split.length>0){ |
|
146 |
return isExAuthor?split[0].trim():split[split.length-1].trim(); |
|
147 |
} |
|
148 |
return null; |
|
149 |
} |
|
150 |
|
|
135 | 151 |
} |
Also available in: Unified diff
ref #5448 Reduce multiple ex authors to only two