private EntitySelectionElement<TaxonName> selection_reuseExistingName;
private EntitySelectionElement<Reference> selection_SecRef;
- private OriginalSourceElement sourceSection;
+ private OriginalSourceElement singleSourceSection;
private TextWithLabelElement textTaxonSec;
private TextWithLabelElement microReference;
}
public Reference getRef() {
- return sourceSection.getEntity().getCitation();
+ return singleSourceSection.getEntity().getCitation();
}
public TaxonName getExistingName() {
return selection_reuseExistingName.getEntity();
- sourceSection = formFactory.createOriginalSourceElement(formElement, entity);
+ singleSourceSection = formFactory.createOriginalSourceElement(formElement, entity);
if (isCreateNew() || entity.getSource() == null){
DescriptionElementSource source = DescriptionElementSource.NewPrimarySourceInstance(null, null);
entity.setSource(source);
- sourceSection.setEntity(source);
+ singleSourceSection.setEntity(source);
}else{
- sourceSection.setEntity(entity.getSource());
+ singleSourceSection.setEntity(entity.getSource());
}
complete = !textNewTaxonName.getText().isEmpty();
}
- if (eventSource == sourceSection) {
+ if (eventSource == singleSourceSection) {
// getEntity().setSource((DescriptionElementSource)sourceSection.getEntity());
}else if (eventSource == selection_SecRef) {