2018-01-12 17:09:51 +01:00
|
|
|
<%@ page contentType="text/html" pageEncoding="UTF-8"%>
|
|
|
|
|
2021-10-13 08:58:31 +02:00
|
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
2018-01-12 17:09:51 +01:00
|
|
|
|
2021-10-13 08:58:31 +02:00
|
|
|
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>
|
|
|
|
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>
|
|
|
|
<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %>
|
|
|
|
<%@ page import="com.liferay.portal.kernel.util.Constants" %>
|
|
|
|
<%@ page import="com.liferay.portal.kernel.util.GetterUtil" %>
|
|
|
|
<%@ page import="com.liferay.portal.kernel.util.StringPool" %>
|
|
|
|
<%@ page import="com.liferay.portal.util.PortalUtil" %>
|
2021-10-11 18:03:31 +02:00
|
|
|
|
2021-10-13 09:13:23 +02:00
|
|
|
|
2021-10-13 08:58:31 +02:00
|
|
|
<!-- show the types only when the ckan instance is specified in the config portlet part -->
|
|
|
|
<c:choose>
|
|
|
|
<c:when test="${not empty catalogueActualURL}">
|
2021-10-11 18:03:31 +02:00
|
|
|
<input type="hidden" value="${catalogueURL}" id="catalogueURL">
|
|
|
|
<table class="catalogue-container">
|
|
|
|
<tr class="catalogue-table-row">
|
|
|
|
<td class="catalogue-table-cell">
|
|
|
|
<div class="input-append input-catalogue">
|
|
|
|
<input type="text" class="input-large" name="q" value=""
|
|
|
|
autocomplete="off" placeholder="Insert keywords here"
|
|
|
|
id="inputQueryCatalogue">
|
|
|
|
<button class="btn btn-primary" type="button" title="Search"
|
|
|
|
id="searchCatalogueButton">
|
|
|
|
<i class="icon-search"></i> <span>Search</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<a href="${catalogueURL}?path=/dataset">See All Items</a> <a
|
2021-10-13 08:58:31 +02:00
|
|
|
href="${catalogueURL}?path=/types" style="float: right;">See
|
|
|
|
All Types</a>
|
2021-10-11 18:03:31 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td class="catalogue-table-cell-max">
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<c:forEach var="type" items="${catalogueTypes}">
|
|
|
|
<td class="media-item-homepage"><a href="${type.link}"
|
|
|
|
title="View ${type.name}"> <img class="logo-homepage"
|
|
|
|
src="${type.img}" alt="${type.name}"
|
|
|
|
title="${type.name} group">
|
|
|
|
</a>
|
|
|
|
<p class="media-heading-homepage">
|
|
|
|
<a href="${type.link}" title="View ${type.name}">
|
|
|
|
${type.name} (${type.occurrence}) </a>
|
|
|
|
</p></td>
|
|
|
|
</c:forEach>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</c:when>
|
|
|
|
<c:otherwise>
|
|
|
|
<div id="catalogueDiv">
|
|
|
|
<div class="input-append input-catalogue">
|
|
|
|
<input type="text" class="input-large" name="q" value=""
|
|
|
|
autocomplete="off" placeholder="Insert keywords here"
|
|
|
|
id="inputQueryCatalogue">
|
|
|
|
<button class="btn btn-primary" type="button" title="Search"
|
|
|
|
id="searchCatalogueButton">
|
|
|
|
<i class="icon-search"></i> <span>Search</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="catstats">
|
|
|
|
<ul>
|
|
|
|
<li><a href="${catalogueURL}?path=/dataset/"> <b><span>${itemsNo}</span></b>
|
|
|
|
items
|
|
|
|
</a></li>
|
|
|
|
<li><a href="${catalogueURL}?path=/organization/"> <b><span>${organisationsNo}</span></b>
|
|
|
|
organisation
|
|
|
|
</a></li>
|
|
|
|
<li><a href="${catalogueURL}?path=/group/"> <b><span>${groupsNo}</span></b>
|
|
|
|
groups
|
|
|
|
</a></li>
|
|
|
|
<li><a href="${catalogueURL}?path=/type/"> <b><span>${typesNo}</span></b>
|
|
|
|
types
|
|
|
|
</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</c:otherwise>
|
|
|
|
</c:choose>
|
|
|
|
|