Skip to content
Snippets Groups Projects
Commit dd786758 authored by buczekp's avatar buczekp
Browse files

[LMS-2034] minor: link for global well search

SVN: 20014
parent 5cea5d96
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}));
}
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment