diff --git a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/ScreeningModule.java b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/ScreeningModule.java index e4231a50f40f18c47a7a6139cb8ac621505ad873..4a31efa682e809b7f11db7df4c0d9c79748de912 100644 --- a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/ScreeningModule.java +++ b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/ScreeningModule.java @@ -36,6 +36,7 @@ import ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityKind; import ch.systemsx.cisd.openbis.plugin.screening.client.web.client.IScreeningClientServiceAsync; import ch.systemsx.cisd.openbis.plugin.screening.client.web.client.application.detailviewers.ExperimentPlateLocationsSection; import ch.systemsx.cisd.openbis.plugin.screening.client.web.client.application.detailviewers.ExperimentWellMaterialsSection; +import ch.systemsx.cisd.openbis.plugin.screening.client.web.client.application.locator.GlobalWellSearchLocatorResolver; /** * Screening extensions: reviewing panel section for the experiment (batch search for gene @@ -65,6 +66,11 @@ public class ScreeningModule implements IModule return Dict.WELLS_SEARCH_MENU_ITEM; } + public String getHelpPageTitle() + { + return "Global Well Search"; + } + public DatabaseModificationAwareComponent createComponent( IViewContext<IScreeningClientServiceAsync> context) { @@ -75,13 +81,9 @@ public class ScreeningModule implements IModule public String tryGetLink() { - return null; + return GlobalWellSearchLocatorResolver.createQueryBrowserLink(); } - public String getHelpPageTitle() - { - return null; - } })); } diff --git a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/locator/GlobalWellSearchLocatorResolver.java b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/locator/GlobalWellSearchLocatorResolver.java index 568d6a097db98fccc4a783f0e6d21235f61c9037..9352e02a6adcc0dc8d66c00fceb71f47d918cc47 100644 --- a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/locator/GlobalWellSearchLocatorResolver.java +++ b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/locator/GlobalWellSearchLocatorResolver.java @@ -10,6 +10,7 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.application.help.HelpP import ch.systemsx.cisd.openbis.generic.client.web.client.application.locator.AbstractViewLocatorResolver; import ch.systemsx.cisd.openbis.generic.client.web.client.application.locator.ViewLocator; import ch.systemsx.cisd.openbis.generic.client.web.client.exception.UserFailureException; +import ch.systemsx.cisd.openbis.generic.shared.basic.URLMethodWithParameters; import ch.systemsx.cisd.openbis.plugin.screening.client.web.client.IScreeningClientServiceAsync; import ch.systemsx.cisd.openbis.plugin.screening.client.web.client.application.ScreeningModule; import ch.systemsx.cisd.openbis.plugin.screening.client.web.client.application.detailviewers.ExperimentPlateLocationsSection; @@ -24,8 +25,7 @@ public class GlobalWellSearchLocatorResolver extends AbstractViewLocatorResolver { private final IViewContext<IScreeningClientServiceAsync> viewContext; - public GlobalWellSearchLocatorResolver( - IViewContext<IScreeningClientServiceAsync> viewContext) + public GlobalWellSearchLocatorResolver(IViewContext<IScreeningClientServiceAsync> viewContext) { super(ScreeningLinkExtractor.GLOBAL_WELL_SEARCH_ACTION); this.viewContext = viewContext; @@ -56,6 +56,7 @@ public class GlobalWellSearchLocatorResolver extends AbstractViewLocatorResolver exactMatchOnly); return DefaultTabItem.createUnaware(wellSearchTab, false); } + @Override public String tryGetLink() { @@ -68,7 +69,6 @@ public class GlobalWellSearchLocatorResolver extends AbstractViewLocatorResolver return ExperimentPlateLocationsSection.getTabTitle(viewContext); } - @Override public HelpPageIdentifier getHelpPageIdentifier() { @@ -77,4 +77,12 @@ public class GlobalWellSearchLocatorResolver extends AbstractViewLocatorResolver }); } + + public static String createQueryBrowserLink() + { + URLMethodWithParameters url = new URLMethodWithParameters(""); + url.addParameter(ViewLocator.ACTION_PARAMETER, + ScreeningLinkExtractor.GLOBAL_WELL_SEARCH_ACTION); + return url.toString().substring(1); + } } \ No newline at end of file