META-INF.resources.select_version.jsp Maven / Gradle / Ivy
<%--
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
--%>
<%@ include file="/init.jsp" %>
<%
long groupId = ParamUtil.getLong(request, "groupId");
String articleId = ParamUtil.getString(request, "articleId");
double sourceVersion = ParamUtil.getDouble(request, "sourceVersion");
PortletURL portletURL = PortletURLBuilder.createRenderURL(
renderResponse
).setMVCPath(
"/select_version.jsp"
).setRedirect(
currentURL
).setParameter(
"articleId", articleId
).setParameter(
"groupId", groupId
).setParameter(
"sourceVersion", sourceVersion
).buildPortletURL();
%>
<%
double curSourceVersion = sourceVersion;
double curTargetVersion = curArticle.getVersion();
if (curTargetVersion < curSourceVersion) {
double tempVersion = curTargetVersion;
curTargetVersion = curSourceVersion;
curSourceVersion = tempVersion;
}
%>
<%= String.valueOf(curArticle.getVersion()) %>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy