Project

General

Profile

bug #7703

Multiple names cannot be shown in TypeDesignationDetailElement for specimens

Added by Patrick Plitzner 5 months ago. Updated 3 months ago.

Status:
New
Priority:
New
Category:
taxeditor
Target version:
Start date:
08/30/2018
Due date:
% Done:

0%

Severity:
major
Found in Version:

Description

If a SpecimenTypeDesignation has more than one name set as typifiedName the DetailsView shows the following:

The code responsible for that is in class DerivedUnitTypeDesignationElement:

 @Override
    public void setEntity(SpecimenTypeDesignation entity) {
        super.setEntity(entity);
        Set<TaxonName> typifiedNames = entity.getTypifiedNames();
        if(typifiedNames.size()==1){
            selectionTaxonName.setEntity(typifiedNames.iterator().next());
        }
        else if(typifiedNames.size()>1){
            formFactory.createLabel(getLayoutComposite(), "!!!!!!!!");
        }

        SpecimenTypeDesignationStatus typeStatus = HibernateProxyHelper
                .deproxy(entity.getTypeStatus());
        combo_typeStatus.setSelection(typeStatus);
        checkbox_notDesignated.setSelection(entity.isNotDesignated());

//        for (TaxonNameBase taxonNameBase : typifiedNames) {
//            EntitySelectionElement<TaxonNameBase> selectionElement = formFactory.createSelectionElement(
//                    TaxonNameBase.class, getConversationHolder(), parentFormElement, "Scientific Name", null,
//                    EntitySelectionElement.EDITABLE | EntitySelectionElement.SELECTABLE, style);
//            selectionElement.setEntity(taxonNameBase);
//        }

    }

There is some commented code that tried to deal with this issue. We should discuss how this should be visualized in the DetailsView. Probably an EntitySelectionElement for each name has to be available

picture999-1.png View (14.1 KB) Patrick Plitzner, 08/30/2018 07:57 AM

History

#1 Updated by Patrick Plitzner 5 months ago

  • Target version changed from Release 5.3 to Release 5.4

#2 Updated by Patrick Plitzner 3 months ago

  • Target version changed from Release 5.4 to Release 5.5

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)