Fix section title for specimen determinations #5673
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 12 Apr 2016 04:45:02 +0000 (06:45 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 12 Apr 2016 09:10:36 +0000 (11:10 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DeterminationDetailSection.java

index c2ae96f..945c9b3 100644 (file)
@@ -44,7 +44,11 @@ public class DeterminationDetailSection extends AbstractCdmDetailSection<Derived
         */
        @Override
        public String getHeading() {
-               return "Determinations";
+               String sectionTitle = "Determinations";
+               if(getEntity()!=null && getEntity().getDeterminations().size()>0){
+                       return sectionTitle+" +"; 
+               }
+               return sectionTitle;
        }
 
        /* (non-Javadoc)