From d3d53f1402e384d4995f9e11b2a535aa0b15d997 Mon Sep 17 00:00:00 2001
From: Adam Rauch
This compensation calculation may be edited in a number of ways:
- <%=link("edit").href(editURL.clone().addParameter(AttributeController.Param.rowId, primary._rowId))%>
+ <%=link("edit", editURL.clone().addParameter(AttributeController.Param.rowId, primary._rowId))%>
<%--<% if (totalCount == 0) { %>--%>
<%--
- <%=link("edit").href(editURL.clone().addParameter(AttributeController.Param.rowId, alias._rowId))%>
+ <%=link("edit", editURL.clone().addParameter(AttributeController.Param.rowId, alias._rowId))%>
<%--
@@ -98,7 +98,7 @@
- <%=link("create alias").href(aliasURL.clone().addParameter(AttributeController.Param.rowId, primary._rowId))%>
+ <%=link("create alias", aliasURL.clone().addParameter(AttributeController.Param.rowId, primary._rowId))%>
diff --git a/flow/src/org/labkey/flow/controllers/compensation/showCompensation.jsp b/flow/src/org/labkey/flow/controllers/compensation/showCompensation.jsp
index 8912d64ae0..a4d1c37fc1 100644
--- a/flow/src/org/labkey/flow/controllers/compensation/showCompensation.jsp
+++ b/flow/src/org/labkey/flow/controllers/compensation/showCompensation.jsp
@@ -191,7 +191,7 @@
<%}%>
<% } %>
-<%=link("Download").href(flowComp.urlDownload()).nofollow()%>
+<%=link("Download", flowComp.urlDownload()).nofollow()%>
<%
DiscussionService service = DiscussionService.get();
if (service != null)
diff --git a/flow/src/org/labkey/flow/controllers/editscript/showCompensationCalculation.jsp b/flow/src/org/labkey/flow/controllers/editscript/showCompensationCalculation.jsp
index 075ae92cfa..b39a190ee5 100644
--- a/flow/src/org/labkey/flow/controllers/editscript/showCompensationCalculation.jsp
+++ b/flow/src/org/labkey/flow/controllers/editscript/showCompensationCalculation.jsp
@@ -58,9 +58,9 @@
- <%=link("Upload a FlowJo workspace").href(form.urlFor(ScriptController.UploadCompensationCalculationAction.class))%>
- <%=link("Switch keywords or gates").href(form.urlFor(ScriptController.ChooseCompensationRunAction.class))%>
- <%=link("Rename gates").href(form.getFlowScript().urlFor(ScriptController.EditGateTreeAction.class, FlowProtocolStep.calculateCompensation))%>
- <%=link("Script main page").href(form.urlFor(AnalysisScriptController.BeginAction.class))%>
+ <%=link("Upload a FlowJo workspace", form.urlFor(ScriptController.UploadCompensationCalculationAction.class))%>
+ <%=link("Switch keywords or gates", form.urlFor(ScriptController.ChooseCompensationRunAction.class))%>
+ <%=link("Rename gates", form.getFlowScript().urlFor(ScriptController.EditGateTreeAction.class, FlowProtocolStep.calculateCompensation))%>
+ <%=link("Script main page", form.urlFor(AnalysisScriptController.BeginAction.class))%>
<%
+ %><%=link("Hide Runs", url.clone().replaceParameter("showRuns", "0"))%>
<%
BindException errors = new NullSafeBindException(new Object(), "fake");
FlowSchema schema = new FlowSchema(context);
@@ -88,7 +88,7 @@ The analysis section describes which gates in the analysis, as well as the stati
view.getSettings().getBaseFilter().addCondition(FieldKey.fromParts("AnalysisScript", "RowId"), script.getScriptId(), CompareType.EQUAL);
include(view, out);
} else {
- %><%=link("Show Runs").href(url.clone().replaceParameter("showRuns", "1"))%><%
+ %><%=link("Show Runs", url.clone().replaceParameter("showRuns", "1"))%><%
}
} %>
diff --git a/flow/src/org/labkey/flow/controllers/protocol/showProtocol.jsp b/flow/src/org/labkey/flow/controllers/protocol/showProtocol.jsp
index ba2fc02aa0..2c27a4ef41 100644
--- a/flow/src/org/labkey/flow/controllers/protocol/showProtocol.jsp
+++ b/flow/src/org/labkey/flow/controllers/protocol/showProtocol.jsp
@@ -36,36 +36,36 @@
Upload sample information and match samples with FCSFiles.
<% if (sampleType == null) { %>
No samples have been uploaded in this folder.
- <%=link("Create new sample type").href(protocol.urlCreateSampleType())%>
+ <%=link("Create new sample type", protocol.urlCreateSampleType())%>
<% } else { %>
- <%=link("Show sample type").href(protocol.getSampleTypeDetailsURL(sampleType, getContainer()))%>
- <%=link("Show samples joined to FCS Files").href(protocol.urlShowSamples())%>
- <%=link("Upload more samples from a spreadsheet").href(protocol.urlUploadSamples())%>
- <% if (protocol.getSampleTypeJoinFields().size() != 0) { %>
- <%=link("Modify sample join fields").href(protocol.urlFor(JoinSampleTypeAction.class))%>
+ <%=link("Show sample type", protocol.getSampleTypeDetailsURL(sampleType, getContainer()))%>
+ <%=link("Show samples joined to FCS Files", protocol.urlShowSamples())%>
+ <%=link("Upload more samples from a spreadsheet", protocol.urlUploadSamples())%>
+ <% if (!protocol.getSampleTypeJoinFields().isEmpty()) { %>
+ <%=link("Modify sample join fields", protocol.urlFor(JoinSampleTypeAction.class))%>
<% } else { %>
- <%=link("Join samples to FCS File Data").href(protocol.urlFor(JoinSampleTypeAction.class))%>
+ <%=link("Join samples to FCS File Data", protocol.urlFor(JoinSampleTypeAction.class))%>
<% } %>
<% } %>
FCS Analysis Display Names
When you analyze an FCS file, the FCS analysis can be given a name composed from keyword values from the FCS file.
- <%=link("Change FCS Analyses Names").href(protocol.urlFor(ProtocolController.EditFCSAnalysisNameAction.class))%>
+ <%=link("Change FCS Analyses Names", protocol.urlFor(ProtocolController.EditFCSAnalysisNameAction.class))%>
FCS Analysis Filter
You can choose to only analyze FCS files where the keywords match certain criteria.
- <%=link("Edit FCS Analysis Filter").href(protocol.urlFor(ProtocolController.EditFCSAnalysisFilterAction.class))%>
+ <%=link("Edit FCS Analysis Filter", protocol.urlFor(ProtocolController.EditFCSAnalysisFilterAction.class))%>
Metadata
Identify participant visit/date columns and
columns used to subtract background from stimulated wells.
- <%=link("Edit Metadata").href(protocol.urlFor(ProtocolController.EditICSMetadataAction.class))%>
+ <%=link("Edit Metadata", protocol.urlFor(ProtocolController.EditICSMetadataAction.class))%>
Manage Names and Aliases
Create and remove names and aliases for Keywords, Statistics, and Graphs.
- <%=link("Case sensitivity").href(protocol.urlFor(AttributeController.CaseSensitivityAction.class).addReturnUrl(getActionURL()))%>
- <%=link("Delete Unused").href(protocol.urlFor(AttributeController.DeleteUnusedAction.class).addReturnUrl(getActionURL()))%>
- <%=link("Manage Keywords").href(protocol.urlFor(AttributeController.SummaryAction.class).addParameter(AttributeController.Param.type, AttributeType.keyword.name()))%>
- <%=link("Manage Statistics").href(protocol.urlFor(AttributeController.SummaryAction.class).addParameter(AttributeController.Param.type, AttributeType.statistic.name()))%>
- <%=link("Manage Graphs").href(protocol.urlFor(AttributeController.SummaryAction.class).addParameter(AttributeController.Param.type, AttributeType.graph.name()))%>
+ <%=link("Case sensitivity", protocol.urlFor(AttributeController.CaseSensitivityAction.class).addReturnUrl(getActionURL()))%>
+ <%=link("Delete Unused", protocol.urlFor(AttributeController.DeleteUnusedAction.class).addReturnUrl(getActionURL()))%>
+ <%=link("Manage Keywords", protocol.urlFor(AttributeController.SummaryAction.class).addParameter(AttributeController.Param.type, AttributeType.keyword.name()))%>
+ <%=link("Manage Statistics", protocol.urlFor(AttributeController.SummaryAction.class).addParameter(AttributeController.Param.type, AttributeType.statistic.name()))%>
+ <%=link("Manage Graphs", protocol.urlFor(AttributeController.SummaryAction.class).addParameter(AttributeController.Param.type, AttributeType.graph.name()))%>
There are <%=sampleCount%> sample descriptions in this folder.
-<% if (sampleTypeJoinFields.size() == 0) { %>
+<% if (sampleTypeJoinFields.isEmpty()) { %>
- <%=link("Join samples to FCS File Data").href(protocol.urlFor(JoinSampleTypeAction.class))%>
+ <%=link("Join samples to FCS File Data", protocol.urlFor(JoinSampleTypeAction.class))%>
No sample join fields have been defined yet. The samples are linked to the FCS files using keywords. When new samples are added or FCS files are loaded, new links will be created.
<% } else { %>
Samples are joined to FCSFiles by the following properties (edit):
diff --git a/flow/src/org/labkey/flow/controllers/run/download.jsp b/flow/src/org/labkey/flow/controllers/run/download.jsp
index f5076bcb21..2effebbb88 100644
--- a/flow/src/org/labkey/flow/controllers/run/download.jsp
+++ b/flow/src/org/labkey/flow/controllers/run/download.jsp
@@ -48,7 +48,7 @@
%>
- <%=link("Download FCS Files anyway?").href(model.run.urlFor(RunController.DownloadAction.class).addParameter("skipMissing", true))%>
+ <%=link("Download FCS Files anyway?", model.run.urlFor(RunController.DownloadAction.class).addParameter("skipMissing", true))%>
diff --git a/flow/src/org/labkey/flow/reports/PositivityFlowReport.java b/flow/src/org/labkey/flow/reports/PositivityFlowReport.java index 22176a84ed..74f8e05358 100644 --- a/flow/src/org/labkey/flow/reports/PositivityFlowReport.java +++ b/flow/src/org/labkey/flow/reports/PositivityFlowReport.java @@ -26,6 +26,7 @@ import org.labkey.api.query.AliasManager; import org.labkey.api.query.FieldKey; import org.labkey.api.reports.report.ReportDescriptor; +import org.labkey.api.util.LinkBuilder; import org.labkey.api.util.PageFlowUtil; import org.labkey.api.util.Tuple3; import org.labkey.api.view.ActionURL; @@ -178,7 +179,7 @@ public HttpView renderReport(ViewContext context) throws Exception return HtmlView.unsafe( "
Positivity report requires configuring flow experiment metadata for study and background information before running.
" + - PageFlowUtil.link("Edit Metadata").href(editICSMetadataURL)); + LinkBuilder.labkeyLink("Edit Metadata", editICSMetadataURL)); } else { diff --git a/flow/src/org/labkey/flow/reports/editPositivityReport.jsp b/flow/src/org/labkey/flow/reports/editPositivityReport.jsp index f5ce93d709..35d94445af 100644 --- a/flow/src/org/labkey/flow/reports/editPositivityReport.jsp +++ b/flow/src/org/labkey/flow/reports/editPositivityReport.jsp @@ -70,7 +70,7 @@ The positivity report requires metadata describing the sample and background information of the flow experiment before it can be run.