Revision 3581c717
Added by Andreas Müller over 3 years ago
cdm-eflora/src/main/java/eu/etaxonomy/cdm/io/eflora/EfloraTaxonImport.java | ||
---|---|---|
1324 | 1324 |
} |
1325 | 1325 |
} |
1326 | 1326 |
if (homonymIsLater){ |
1327 |
homonymName.addRelationshipToName(upperName, relType, null); |
|
1327 |
homonymName.addRelationshipToName(upperName, relType, null, null);
|
|
1328 | 1328 |
}else{ |
1329 |
upperName.addRelationshipToName(homonymName, relType, null); |
|
1329 |
upperName.addRelationshipToName(homonymName, relType, null, null);
|
|
1330 | 1330 |
} |
1331 | 1331 |
} |
1332 | 1332 |
|
... | ... | |
1497 | 1497 |
return detail; |
1498 | 1498 |
} |
1499 | 1499 |
|
1500 |
|
|
1501 | 1500 |
//non RE |
1502 | 1501 |
String reNon = "(\\s|,)non\\s"; |
1503 | 1502 |
Pattern patReference = Pattern.compile(reNon); |
... | ... | |
1543 | 1542 |
logger.warn("Classification name has no nomenclatural reference"); |
1544 | 1543 |
} |
1545 | 1544 |
if (homonymIsLater){ |
1546 |
homonymName.addRelationshipToName(name, relType, null); |
|
1545 |
homonymName.addRelationshipToName(name, relType, null, null);
|
|
1547 | 1546 |
}else{ |
1548 |
name.addRelationshipToName(homonymName, relType, null); |
|
1547 |
name.addRelationshipToName(homonymName, relType, null, null);
|
|
1549 | 1548 |
} |
1550 | 1549 |
|
1551 | 1550 |
}else{ |
... | ... | |
1665 | 1664 |
return name; |
1666 | 1665 |
} |
1667 | 1666 |
|
1668 |
|
|
1669 |
/** |
|
1670 |
* @param element |
|
1671 |
* @param taxon |
|
1672 |
*/ |
|
1673 | 1667 |
private void handleInfraspecificEpithet(Element element, String attrValue, INonViralName name) { |
1674 | 1668 |
String value = element.getTextNormalize(); |
1675 | 1669 |
if (value.indexOf("subsp.") != -1){ |
... | ... | |
1687 | 1681 |
} |
1688 | 1682 |
} |
1689 | 1683 |
|
1690 |
|
|
1691 | 1684 |
/** |
1692 | 1685 |
* @param state |
1693 | 1686 |
* @param element |
Also available in: Unified diff
fix some compile errors in eflora