From c0095be54c7745b45eda92009cf4d1c39a92317c Mon Sep 17 00:00:00 2001
From: izabel <izabel>
Date: Wed, 6 Oct 2010 13:04:09 +0000
Subject: [PATCH] fix: sections not hiding

SVN: 18183
---
 openbis/etc/web-client.properties                           | 4 ++--
 .../client/web/client/application/ui/AbstractViewer.java    | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/openbis/etc/web-client.properties b/openbis/etc/web-client.properties
index 38389356ee5..ea76894a7d1 100644
--- a/openbis/etc/web-client.properties
+++ b/openbis/etc/web-client.properties
@@ -41,11 +41,11 @@ sample-view.view = generic_sample_viewer
 sample-view.types = CELL_PLATE, CONTROL_LAYOUT
 sample-view.hide-sections = attachment-section, module-section
 
-experiment-view.view = generic_sample_viewer
+experiment-view.view = generic_experiment_viewer
 experiment-view.types = SIRNA_HCS
 experiment-view.hide-sections = attachment-section
 
-data-view.view = generic-dataset-viewer
+data-view.view = generic_dataset_viewer
 data-view.types = HCS_IMAGE
 data-view.hide-smart-view = true
 data-view.hide-file-view = false
diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/AbstractViewer.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/AbstractViewer.java
index 79d728afbb4..d31a82e44cd 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/AbstractViewer.java
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/AbstractViewer.java
@@ -168,15 +168,15 @@ public abstract class AbstractViewer<D extends IEntityInformationHolder> extends
     public static String getTitle(final IMessageProvider messageProvider,
             final String entityKindDictKey, final ICodeHolder codeProvider)
     {
-        return messageProvider.getMessage(Dict.DETAILS_TITLE, messageProvider
-                .getMessage(entityKindDictKey), codeProvider.getCode());
+        return messageProvider.getMessage(Dict.DETAILS_TITLE,
+                messageProvider.getMessage(entityKindDictKey), codeProvider.getCode());
     }
 
     /** Updates data displayed in the browser (needed to open editor view). */
     protected void updateOriginalData(D newData)
     {
         this.originalData = newData;
-        this.displayIdSuffix = newData.getEntityKind() + "_" + newData.getEntityType().getCode();
+        this.displayIdSuffix = newData.getEntityType().getCode();
         updateTitle(getOriginalDataDescription());
         setToolBarButtonsEnabled(true);
     }
-- 
GitLab