ref #9959: fix author text in bibliographic references
authorKatja Luther <k.luther@bgbm.org>
Fri, 25 Feb 2022 11:56:29 +0000 (12:56 +0100)
committerKatja Luther <k.luther@bgbm.org>
Fri, 25 Feb 2022 11:56:29 +0000 (12:56 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/ReferenceWizardPage.java

index bd0ef9f043ac498b3c3bca628d4198e5f9b83e84..ecc68f8842e4856b54ce68204de9a63785b3b77a 100644 (file)
@@ -49,7 +49,12 @@ public class ReferenceWizardPage extends AbstractCdmEntityWizardPage<Reference>
 
        @Override
     public AbstractCdmDetailElement<Reference> createElement(ICdmFormElement rootElement){
-               ReferenceDetailElement referenceElement = formFactory.createNomenclaturalReferenceDetailElement(rootElement,  SWT.NULL);
+               ReferenceDetailElement referenceElement;
+               if (isNomenclaturalReference){
+                       referenceElement = formFactory.createNomenclaturalReferenceDetailElement(rootElement,  SWT.NULL);
+               }else{
+                       referenceElement = formFactory.createReferenceDetailElement(rootElement, SWT.NULL);
+               }
                referenceElement.addExceptionHandler(this);
                referenceElement.setEntity(entity);
                referenceElement.setWarnForReferencingObjectsVisible(true);