META-INF.resources.info_panel.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" %>
<%
List folders = (List)request.getAttribute(JournalWebKeys.JOURNAL_FOLDERS);
List articles = (List)request.getAttribute(JournalWebKeys.JOURNAL_ARTICLES);
if (ListUtil.isEmpty(folders) && ListUtil.isEmpty(articles)) {
long folderId = GetterUtil.getLong((String)request.getAttribute("view.jsp-folderId"), ParamUtil.getLong(request, "folderId"));
folders = new ArrayList();
if (folderId != JournalFolderConstants.DEFAULT_PARENT_FOLDER_ID) {
folders.add(JournalFolderLocalServiceUtil.fetchFolder(folderId));
}
else {
folders.add(null);
}
}
Map componentContext = journalDisplayContext.getComponentContext();
%>
<%
JournalFolder folder = folders.get(0);
request.setAttribute("info_panel.jsp-folder", folder);
%>
<%
JournalArticle article = articles.get(0);
request.setAttribute("info_panel.jsp-entry", article);
%>
<%
Date expirationDate = article.getExpirationDate();
%>
<%
Date reviewDate = article.getReviewDate();
%>
<%
DDMTemplate ddmTemplate = DDMTemplateLocalServiceUtil.fetchTemplate(scopeGroupId, PortalUtil.getClassNameId(DDMStructure.class), article.getDDMTemplateKey(), true);
%>
<%
AssetEntry assetEntry = AssetEntryLocalServiceUtil.fetchEntry(JournalArticle.class.getName(), JournalArticleAssetRenderer.getClassPK(article));
%>
<%
JournalVersionTabDisplayContext journalVersionTabDisplayContext = new JournalVersionTabDisplayContext(assetDisplayPageFriendlyURLProvider, article, liferayPortletRequest, liferayPortletResponse, trashHelper);
%>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy