import eu.etaxonomy.cdm.model.description.Distribution;\r
import eu.etaxonomy.cdm.model.description.PresenceAbsenceTermBase;\r
import eu.etaxonomy.cdm.model.description.TaxonDescription;\r
+import eu.etaxonomy.cdm.model.description.TaxonInteraction;\r
import eu.etaxonomy.cdm.model.location.NamedArea;\r
import eu.etaxonomy.cdm.model.media.ImageFile;\r
import eu.etaxonomy.taxeditor.model.DescriptionHelper;\r
if (element instanceof Distribution) {\r
return getDistributionText((Distribution) element); \r
} \r
+ if (element instanceof TaxonInteraction) {\r
+ return getTaxonInteractionText((TaxonInteraction) element);\r
+ }\r
if (element instanceof DescriptionElementBase) {\r
return getElementText((DescriptionElementBase) element);\r
}\r
}\r
return element.toString();\r
} \r
- \r
+\r
/**\r
* @param element\r
* @return\r
*/\r
private String getElementText(DescriptionElementBase element) {\r
String text = DescriptionHelper.getCache(element);\r
+ boolean isImageGallery = element.getInDescription().isImageGallery();\r
if (text == null || text.length() == 0) {\r
- text = "No text provided";\r
+ text = isImageGallery ? "No label provided" : "No text provided";\r
}\r
+ if (isImageGallery) {\r
+ text = "Ordered image list: " + text;\r
+ }\r
+ return text;\r
+ }\r
+ \r
+ /**\r
+ * @param element\r
+ * @return\r
+ */\r
+ private String getTaxonInteractionText(TaxonInteraction element) {\r
+ String text = DescriptionHelper.getCache(element);\r
return text;\r
}\r
\r
if (text == null || text.length() == 0) {\r
text = "No label provided";\r
}\r
- return "Description: " + text;\r
+ return (description.isImageGallery() ? "Image Gallery: " : "Description: ") + text;\r
}\r
\r
/* (non-Javadoc)\r