From 0536e7a1345d2c4fb3e709ed2ac2fb62bd049213 Mon Sep 17 00:00:00 2001 From: Adam Rauch Date: Tue, 25 Mar 2025 07:17:42 -0700 Subject: [PATCH] Eliminate sketchy htmlHelpText boolean in favor of HtmlString --- .../org/labkey/ms2/compare/comparePeptideQueryOptions.jsp | 7 ++++--- ms2/src/org/labkey/ms2/compare/spectraCountOptions.jsp | 2 +- ms2/src/org/labkey/ms2/protein.jsp | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ms2/src/org/labkey/ms2/compare/comparePeptideQueryOptions.jsp b/ms2/src/org/labkey/ms2/compare/comparePeptideQueryOptions.jsp index b4dfd78632..3ab93d3430 100644 --- a/ms2/src/org/labkey/ms2/compare/comparePeptideQueryOptions.jsp +++ b/ms2/src/org/labkey/ms2/compare/comparePeptideQueryOptions.jsp @@ -16,22 +16,23 @@ */ %> <%@ page import="org.labkey.api.protein.search.ProphetFilterType" %> +<%@ page import="org.labkey.api.util.HtmlString" %> <%@ page import="org.labkey.api.util.PageFlowUtil" %> <%@ page import="org.labkey.api.view.ActionURL" %> <%@ page import="org.labkey.api.view.HttpView" %> <%@ page import="org.labkey.api.view.JspView" %> <%@ page import="org.labkey.ms2.MS2Controller" %> <%@ page import="org.labkey.ms2.MS2Controller.PeptideFilteringFormElements" %> +<%@ page import="org.labkey.ms2.query.FilterView" %> <%@ page import="static org.labkey.api.protein.search.ProphetFilterType.customView" %> <%@ page import="static org.labkey.api.protein.search.ProphetFilterType.probability" %> <%@ page import="static org.labkey.ms2.MS2Controller.PeptideFilteringFormElements.peptideFilterType" %> <%@ page import="static org.labkey.ms2.MS2Controller.PeptideFilteringFormElements.peptideProphetProbability" %> <%@ page import="static org.labkey.ms2.MS2Controller.PeptideFilteringFormElements.targetProtein" %> -<%@ page import="org.labkey.ms2.query.FilterView" %> <%@ page extends="org.labkey.api.jsp.JspBase"%> <%@ taglib prefix="labkey" uri="http://www.labkey.org/taglib" %> <% -JspView view = (JspView) HttpView.currentView(); +JspView view = HttpView.currentView(); MS2Controller.CompareOptionsBean bean = view.getModelBean(); MS2Controller.PeptideFilteringComparisonForm form = bean.getForm(); String peptideViewName = form.getPeptideCustomViewName(getViewContext()); @@ -57,7 +58,7 @@ String peptideViewName = form.getPeptideCustomViewName(getViewContext());

Optionally require that peptides have a sequence match in protein: " /> - <%=helpPopup("Protein Filter", "

Show only peptides whose sequences match against a specified protein. It need not be the protein mapped to the peptide by the search engine or ProteinProphet.

If no protein matches the name specified, or if multiple proteins match, this page will be redisplayed to correct the search.

", true)%> + <%=helpPopup("Protein Filter", HtmlString.unsafe("

Show only peptides whose sequences match against a specified protein. It need not be the protein mapped to the peptide by the search engine or ProteinProphet.

If no protein matches the name specified, or if multiple proteins match, this page will be redisplayed to correct the search.

"))%>

diff --git a/ms2/src/org/labkey/ms2/compare/spectraCountOptions.jsp b/ms2/src/org/labkey/ms2/compare/spectraCountOptions.jsp index d105aad926..6f93c5016c 100644 --- a/ms2/src/org/labkey/ms2/compare/spectraCountOptions.jsp +++ b/ms2/src/org/labkey/ms2/compare/spectraCountOptions.jsp @@ -115,7 +115,7 @@

Optionally require that peptides have a sequence match in protein: " /> - <%=helpPopup("Protein Filter", "

Show only peptides whose sequences match against a specified protein. It need not be the protein mapped to the peptide by the search engine or ProteinProphet.

If no protein matches the name specified, or if multiple proteins match, this page will be redisplayed to correct the search.

", true)%> + <%=helpPopup("Protein Filter", HtmlString.unsafe("

Show only peptides whose sequences match against a specified protein. It need not be the protein mapped to the peptide by the search engine or ProteinProphet.

If no protein matches the name specified, or if multiple proteins match, this page will be redisplayed to correct the search.

"))%>

diff --git a/ms2/src/org/labkey/ms2/protein.jsp b/ms2/src/org/labkey/ms2/protein.jsp index 85c6421b3d..102ae91c82 100644 --- a/ms2/src/org/labkey/ms2/protein.jsp +++ b/ms2/src/org/labkey/ms2/protein.jsp @@ -23,6 +23,7 @@ <%@ page import="org.labkey.ms2.PeptideManager" %> <%@ page import="org.labkey.ms2.protein.ProteinViewBean" %> <%@ page import="java.text.Format" %> +<%@ page import="org.labkey.api.util.HtmlString" %> <%@ taglib prefix="labkey" uri="http://www.labkey.org/taglib" %> <%@ page extends="org.labkey.api.jsp.JspBase" %> <% @@ -46,7 +47,7 @@ ActionURL urlProteinDetailsPage = getViewContext().cloneActionURL(); urlProteinDetailsPage.deleteParameter(ProteinViewBean.ALL_PEPTIDES_URL_PARAM); %> - Peptides<%=helpPopup("Peptides", "

Show only peptides assigned by search engine
The page displays only the set of peptides that the search engine has chosen as matching the subject protein, based on engine-specific scoring.

Show all peptides with sequence matches
The coverage map and peptide grid show all the filtered trimmed peptides from the run that match a sequence within the subject protein, regardless of whether the protein was chosen by the search engine as matching that specific peptide.

", true)%> + Peptides<%=helpPopup("Peptides", HtmlString.unsafe("

Show only peptides assigned by search engine
The page displays only the set of peptides that the search engine has chosen as matching the subject protein, based on engine-specific scoring.

Show all peptides with sequence matches
The coverage map and peptide grid show all the filtered trimmed peptides from the run that match a sequence within the subject protein, regardless of whether the protein was chosen by the search engine as matching that specific peptide.

"))%> <% for (Pair param : urlProteinDetailsPage.getParameters()) { %>