All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.info_panel.jsp Maven / Gradle / Ivy

There is a newer version: 5.0.181
Show newest version
<%--
/**
 * 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);
		%>

		

		<%
		JournalVersionTabDisplayContext journalVersionTabDisplayContext = new JournalVersionTabDisplayContext(assetDisplayPageFriendlyURLProvider, article, liferayPortletRequest, liferayPortletResponse, trashHelper);
		%>

		
			
				

				

				

				

				<%
				DDMTemplate ddmTemplate = DDMTemplateLocalServiceUtil.fetchTemplate(scopeGroupId, PortalUtil.getClassNameId(DDMStructure.class), article.getDDMTemplateKey(), true);
				%>

				

				

				

				

				

				

				<%
				AssetEntry assetEntry = AssetEntryLocalServiceUtil.fetchEntry(JournalArticle.class.getName(), JournalArticleAssetRenderer.getClassPK(article));
				%>

				

				
					

					
				

				

				<%
				Date expirationDate = article.getExpirationDate();
				%>

				

				

				<%
				Date reviewDate = article.getReviewDate();
				%>

				
			

			
				

				
					




© 2015 - 2024 Weber Informatics LLC | Privacy Policy