From 5ef10c70caffb5ffc8bbedc0df289cdd9fc019ee Mon Sep 17 00:00:00 2001 From: buczekp <buczekp> Date: Tue, 24 May 2011 08:37:18 +0000 Subject: [PATCH] [LMS-2253] show registrator of unofficial terms (works in combo box and detail view, doesn't work in browsers) SVN: 21458 --- .../model/renderer/VocabularyPropertyColRenderer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/model/renderer/VocabularyPropertyColRenderer.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/model/renderer/VocabularyPropertyColRenderer.java index 5635c62d8ce..84f3266d827 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/model/renderer/VocabularyPropertyColRenderer.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/model/renderer/VocabularyPropertyColRenderer.java @@ -71,6 +71,7 @@ public class VocabularyPropertyColRenderer<T extends IEntityPropertiesHolder> ex result = MultilineHTML.wrapUpInDivWithTooltip(result, description); } else { + result += " (" + term.getRegistrator() + ")"; result = MultilineHTML.wrapUpInDivWithTooltip(result, description, "color: grey; font-style:italic"); @@ -85,7 +86,8 @@ public class VocabularyPropertyColRenderer<T extends IEntityPropertiesHolder> ex final String label = term.getLabel(); final String description = term.getDescription(); String result = ""; - String unofficialOrEmpty = term.isOfficial() ? "" : "(unofficial term)"; + String unofficialOrEmpty = + term.isOfficial() ? "" : "(ad hoc term created by " + term.getRegistrator() + ")"; if (label == null) { result += "<b>" + code + " " + unofficialOrEmpty + "</b>"; -- GitLab