82 |
82 |
private EntitySelectionElement<TaxonName> selection_reuseExistingName;
|
83 |
83 |
private EntitySelectionElement<Reference> selection_SecRef;
|
84 |
84 |
|
85 |
|
private OriginalSourceElement sourceSection;
|
|
85 |
private OriginalSourceElement singleSourceSection;
|
86 |
86 |
|
87 |
87 |
private TextWithLabelElement textTaxonSec;
|
88 |
88 |
private TextWithLabelElement microReference;
|
... | ... | |
107 |
107 |
}
|
108 |
108 |
|
109 |
109 |
public Reference getRef() {
|
110 |
|
return sourceSection.getEntity().getCitation();
|
|
110 |
return singleSourceSection.getEntity().getCitation();
|
111 |
111 |
}
|
112 |
112 |
public TaxonName getExistingName() {
|
113 |
113 |
return selection_reuseExistingName.getEntity();
|
... | ... | |
251 |
251 |
|
252 |
252 |
|
253 |
253 |
|
254 |
|
sourceSection = formFactory.createOriginalSourceElement(formElement, entity);
|
|
254 |
singleSourceSection = formFactory.createOriginalSourceElement(formElement, entity);
|
255 |
255 |
if (isCreateNew() || entity.getSource() == null){
|
256 |
256 |
DescriptionElementSource source = DescriptionElementSource.NewPrimarySourceInstance(null, null);
|
257 |
257 |
entity.setSource(source);
|
258 |
|
sourceSection.setEntity(source);
|
|
258 |
singleSourceSection.setEntity(source);
|
259 |
259 |
}else{
|
260 |
|
sourceSection.setEntity(entity.getSource());
|
|
260 |
singleSourceSection.setEntity(entity.getSource());
|
261 |
261 |
|
262 |
262 |
}
|
263 |
263 |
|
... | ... | |
338 |
338 |
complete = !textNewTaxonName.getText().isEmpty();
|
339 |
339 |
}
|
340 |
340 |
|
341 |
|
if (eventSource == sourceSection) {
|
|
341 |
if (eventSource == singleSourceSection) {
|
342 |
342 |
// getEntity().setSource((DescriptionElementSource)sourceSection.getEntity());
|
343 |
343 |
|
344 |
344 |
}else if (eventSource == selection_SecRef) {
|
ref #9116: layout issues