improve description for taxonnodes as referenced object
authorKatja Luther <k.luther@bgbm.org>
Thu, 9 Mar 2017 13:19:45 +0000 (14:19 +0100)
committerKatja Luther <k.luther@bgbm.org>
Thu, 9 Mar 2017 13:20:11 +0000 (14:20 +0100)
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/ReferencingObjectsView.java

index 3a29aa40e7cdf9898ed5da8a783997b53ff7724e..00bcc23f174f97c644bdde4ed9c6af51817d4111 100644 (file)
@@ -74,6 +74,7 @@ import eu.etaxonomy.cdm.model.name.NonViralName;
 import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
 import eu.etaxonomy.cdm.model.reference.Reference;
 import eu.etaxonomy.cdm.model.taxon.TaxonBase;
+import eu.etaxonomy.cdm.model.taxon.TaxonNode;
 import eu.etaxonomy.taxeditor.model.DescriptionHelper;
 import eu.etaxonomy.taxeditor.session.ICdmEntitySession;
 import eu.etaxonomy.taxeditor.store.CdmStore;
@@ -460,8 +461,8 @@ public class ReferencingObjectsView extends AbstractCdmViewPart {
                 }
                 else if (referencedCdmObject.isInstanceOf(User.class)){
                     referencedObjectTitleCache = ((User)referencedCdmObject).getUsername();
-                }else{
-                    referencedObjectTitleCache = null;
+                }else if (referencedCdmObject.isInstanceOf(TaxonNode.class)){
+                    referencedObjectTitleCache = "TaxonNode of "+(HibernateProxyHelper.deproxy(referencedCdmObject, TaxonNode.class)).getTaxon().getTitleCache();
                 }
                    }
                    if (referencedObjectTitleCache != null){