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

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

There is a newer version: 2.0.4
Show newest version
<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
--%>

<%@ include file="/init.jsp" %>

<%
String keywords = ParamUtil.getString(request, "keywords");

String category = ParamUtil.getString(request, "category", "all-categories");
String state = ParamUtil.getString(request, "state", "all-statuses");

String orderByType = ParamUtil.getString(request, "orderByType", "asc");

List apps = AppLocalServiceUtil.getApps(QueryUtil.ALL_POS, QueryUtil.ALL_POS);

PortletURL portletURL = renderResponse.createRenderURL();

portletURL.setParameter("mvcPath", "/view_search_results.jsp");
portletURL.setParameter("category", category);
portletURL.setParameter("state", state);
portletURL.setParameter("orderByType", orderByType);

PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, "app-manager"), String.valueOf(renderResponse.createRenderURL()));
PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, "search-results"), null);
%>


	
		

		
	

	
		
			
		

		
			

			
		
	



	
		
	

	
		
	


<% List bundles = BundleManagerUtil.getBundles(); results = MarketplaceAppManagerSearchUtil.getResults(bundles, keywords); results = ListUtil.sort(results, new MarketplaceAppManagerComparator(orderByType)); int end = searchContainer.getEnd(); if (end > results.size()) { end = results.size(); } searchContainer.setResults(results.subList(searchContainer.getStart(), end)); searchContainer.setTotal(results.size()); %> <% AppDisplay appDisplay = (AppDisplay)result; %> <%@ include file="/app_display_columns.jspf" %> <% ModuleGroupDisplay moduleGroupDisplay = (ModuleGroupDisplay)result; %> <%@ include file="/module_group_display_columns.jspf" %> <% Bundle bundle = (Bundle)result; String app = StringPool.BLANK; String moduleGroup = StringPool.BLANK; %> <%@ include file="/bundle_columns.jspf" %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy