From c2f439a8de66e34077f19bb5395e5dac0a8b66ac Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Wed, 24 Jun 2009 11:19:51 +0000
Subject: [PATCH] Bug in title of sample chooser fixed

SVN: 11530
---
 .../openbis/generic/client/web/client/application/Dict.java     | 2 ++
 .../web/client/application/ui/field/SampleChooserField.java     | 2 +-
 .../java/ch/systemsx/cisd/openbis/public/common-dictionary.js   | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/Dict.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/Dict.java
index 0a61fe54fbb..bfee8e13e4d 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/Dict.java
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/Dict.java
@@ -579,6 +579,8 @@ public abstract class Dict
     public static final String TITLE_CHOOSE_EXPERIMENT = "TITLE_CHOOSE_EXPERIMENT";
 
     public static final String INCORRECT_EXPERIMENT_SYNTAX = "incorrect_experiment_syntax";
+    
+    public static final String TITLE_CHOOSE_SAMPLE = "title_choose_sample";
 
     //
     // Grid Column Chooser
diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/field/SampleChooserField.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/field/SampleChooserField.java
index 08d7b068384..d7362963cfa 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/field/SampleChooserField.java
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/field/SampleChooserField.java
@@ -107,7 +107,7 @@ public final class SampleChooserField extends ChosenEntitySetter<Sample>
     {
         DisposableEntityChooser<Sample> browser =
                 SampleBrowserGrid.createChooser(viewContext, addShared, excludeWithoutExperiment);
-        String title = viewContext.getMessage(Dict.TITLE_CHOOSE_EXPERIMENT);
+        String title = viewContext.getMessage(Dict.TITLE_CHOOSE_SAMPLE);
         new EntityChooserDialog<Sample>(browser, chosenSampleField, title, viewContext).show();
     }
 
diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/public/common-dictionary.js b/openbis/source/java/ch/systemsx/cisd/openbis/public/common-dictionary.js
index f40fb59dfdf..6a9c012f22c 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/public/common-dictionary.js
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/public/common-dictionary.js
@@ -396,6 +396,7 @@ var common = {
  incorrect_material_syntax: "Incorrect material specification. Please provide the material code followed by the type in brackets: 'code (type)'.",
  TITLE_CHOOSE_EXPERIMENT: "Choose an Experiment",
 incorrect_experiment_syntax: "Incorrect experiment specification. Please provide the experiment group, project and code using the format '/group/project/code'.",
+ title_choose_sample: "Choose a Sample",
 
  //
  // Attachments
-- 
GitLab