List<INomenclaturalReference> duplicateReferences = new ArrayList<INomenclaturalReference>();
List<INomenclaturalReference> duplicateInReferences = new ArrayList<INomenclaturalReference>();
- List<TeamOrPersonBase> duplicateCombinationAuthorTeams = new ArrayList<TeamOrPersonBase>();
- List<TeamOrPersonBase> duplicateExCombinationAuthorTeams = new ArrayList<TeamOrPersonBase>();
- List<TeamOrPersonBase> duplicateBasionymAuthorTeams = new ArrayList<TeamOrPersonBase>();
- List<TeamOrPersonBase> duplicateExBasionymAuthorTeams = new ArrayList<TeamOrPersonBase>();
+ List<TeamOrPersonBase> duplicateCombinationAuthorships = new ArrayList<TeamOrPersonBase>();
+ List<TeamOrPersonBase> duplicateExCombinationAuthorships = new ArrayList<TeamOrPersonBase>();
+ List<TeamOrPersonBase> duplicateBasionymAuthorships = new ArrayList<TeamOrPersonBase>();
+ List<TeamOrPersonBase> duplicateExBasionymAuthorships = new ArrayList<TeamOrPersonBase>();
}
private static NonViralNameParserImpl nonViralNameParser = NonViralNameParserImpl.NewInstance();
*/
private void resolveAllDuplicateAuthors(NonViralName name, MatchMatrix matchMatrix) {
- if(matchMatrix.duplicateCombinationAuthorTeams.size() > 0){
- name.setCombinationAuthorTeam(matchMatrix.duplicateCombinationAuthorTeams.iterator().next());
+ if(matchMatrix.duplicateCombinationAuthorships.size() > 0){
+ name.setCombinationAuthorship(matchMatrix.duplicateCombinationAuthorships.iterator().next());
Reference reference = (Reference) name.getNomenclaturalReference();
if(reference != null){
- reference.setAuthorship(matchMatrix.duplicateCombinationAuthorTeams.iterator().next());
+ reference.setAuthorship(matchMatrix.duplicateCombinationAuthorships.iterator().next());
}
// FIXME TODO resolve multiple duplications. We use first match for a start.
}
- if(matchMatrix.duplicateExCombinationAuthorTeams.size() > 0){
- name.setExCombinationAuthorTeam(matchMatrix.duplicateExCombinationAuthorTeams.iterator().next());
+ if(matchMatrix.duplicateExCombinationAuthorships.size() > 0){
+ name.setExCombinationAuthorship(matchMatrix.duplicateExCombinationAuthorships.iterator().next());
// FIXME TODO resolve multiple duplications. We use first match for a start.
}
- if(matchMatrix.duplicateBasionymAuthorTeams.size() > 0){
- name.setBasionymAuthorTeam(matchMatrix.duplicateBasionymAuthorTeams.iterator().next());
+ if(matchMatrix.duplicateBasionymAuthorships.size() > 0){
+ name.setBasionymAuthorship(matchMatrix.duplicateBasionymAuthorships.iterator().next());
// FIXME TODO resolve multiple duplications. We use first match for a start.
}
- if(matchMatrix.duplicateExBasionymAuthorTeams.size() > 0){
- name.setExBasionymAuthorTeam(matchMatrix.duplicateExBasionymAuthorTeams.iterator().next());
+ if(matchMatrix.duplicateExBasionymAuthorships.size() > 0){
+ name.setExBasionymAuthorship(matchMatrix.duplicateExBasionymAuthorships.iterator().next());
// FIXME TODO resolve multiple duplications. We use first match for a start.
}
}
matchMatrix.duplicateNames = findMatchingLatinNames(name);
- matchMatrix.duplicateCombinationAuthorTeams = findMatchingAuthors(name.getCombinationAuthorTeam());
- matchMatrix.duplicateExCombinationAuthorTeams = findMatchingAuthors(name.getExCombinationAuthorTeam());
- matchMatrix.duplicateBasionymAuthorTeams = findMatchingAuthors(name.getBasionymAuthorTeam());
- matchMatrix.duplicateExBasionymAuthorTeams = findMatchingAuthors(name.getExBasionymAuthorTeam());
+ matchMatrix.duplicateCombinationAuthorships = findMatchingAuthors(name.getCombinationAuthorship());
+ matchMatrix.duplicateExCombinationAuthorships = findMatchingAuthors(name.getExCombinationAuthorship());
+ matchMatrix.duplicateBasionymAuthorships = findMatchingAuthors(name.getBasionymAuthorship());
+ matchMatrix.duplicateExBasionymAuthorships = findMatchingAuthors(name.getExBasionymAuthorship());
INomenclaturalReference nomenclaturalReference = name.getNomenclaturalReference();