fireWarningEvent(warning, next, 12);
taxon.getName().setRank(Rank.UNKNOWN_RANK());
}
+ //hybrid
+ if (state.isTaxonIsHybrid() && !taxon.getName().isHybrid()){
+ fireWarningEvent("Taxon is hybrid but name is not a hybrid name", next, 4);
+ }
+ state.setTaxonIsHybrid(false);
keyImport.makeKeyNodes(state, parentEvent, taxonTitle);
state.setCurrentTaxon(null);
INonViralName name;
Rank rank = null; //Rank.SPECIES(); // default
boolean isCultivar = checkAndRemoveAttributeValue(attributes, CLASS, "cultivated");
+
if (isCultivar) {
name = TaxonNameFactory.NewCultivarInstance(rank);
} else {
} else if (checkAndRemoveAttributeValue(attributes, CLASS, "excluded")) {
state.setCurrentTaxonExcluded(true);
}
+ state.setTaxonIsHybrid(checkAndRemoveAttributeValue(attributes, CLASS, "hybrid"));
+
// TODO insufficient, new, expected
handleNotYetImplementedAttribute(attributes, CLASS, event);
// From old version
if (isMyEndingElement(next, parentEvent)) {
Taxon taxon = state.getCurrentTaxon();
String titleText = null;
- if (checkMandatoryText(text, parentEvent)) {
+ if (state.getConfig().isDoExtensionForTaxonTitle() && checkMandatoryText(text, parentEvent)) {
titleText = normalize(text);
UUID uuidTitle = MarkupTransformer.uuidTaxonTitle;
ExtensionType titleExtension = this.getExtensionType(state, uuidTitle, "Taxon Title ","taxon title", "title");