Project

General

Profile

Revision 5c228c71

ID5c228c718aa7f1b6c3126f423ea6059a0277471f
Parent 66b0c98f
Child 7681fbb3

Added by Patrick Plitzner over 5 years ago

Fix specimen editor label provider for still images

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/derivateSearch/DerivateLabelProvider.java
28 28
import eu.etaxonomy.cdm.api.service.IOccurrenceService;
29 29
import eu.etaxonomy.cdm.api.service.molecular.ISequenceService;
30 30
import eu.etaxonomy.cdm.format.CdmFormatterFactory;
31
import eu.etaxonomy.cdm.format.ICdmFormatter;
32 31
import eu.etaxonomy.cdm.format.ICdmFormatter.FormatKey;
33 32
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
34 33
import eu.etaxonomy.cdm.model.common.CdmBase;
......
63 62
    private static Set<SingleRead> multiLinkSingleReads;
64 63

  
65 64
    private static Map<DerivedUnit, Collection<SpecimenTypeDesignation>> typeDesignations;
66
    
65

  
67 66
    private ConversationHolder conversation;
68 67

  
69 68
    private static DefinedTerm photoTerm = null;
......
368 367
                    }
369 368
                    return hasCharacterData?ImageResources.getImage(ImageResources.SPECIMEN_DERIVATE_CHARACTER_DATA):ImageResources.getImage(ImageResources.SPECIMEN_DERIVATE);
370 369
                }
371
                else if(derivedUnit.getRecordBasis()==SpecimenOrObservationType.Media){
370
                else if(derivedUnit.getRecordBasis().isKindOf(SpecimenOrObservationType.Media)){
372 371
                    if(derivedUnit.getKindOfUnit()!=null){
373 372
                        if(derivedUnit.getKindOfUnit().equals(getArtworkTerm())){
374 373
                            return hasCharacterData?ImageResources.getImage(ImageResources.ARTWORK_DERIVATE_CHARACTER_DATA):ImageResources.getImage(ImageResources.ARTWORK_DERIVATE);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)