Commit f20d9ae3 authored by Matija Obreza's avatar Matija Obreza

Make climatic data public

parent c2939ffd
......@@ -464,109 +464,107 @@
</c:if>
</c:if>
<security:authorize access="isAuthenticated()">
<!-- WorldClim.org -->
<c:if test="${worldclimJson ne null}">
<h4>
<spring:message code="worldclim.monthly.title" />
</h4>
<!-- Charts -->
<div class="row">
<div class="col-xs-12 col-sm-6">
<h5>
<spring:message code="worldclim.monthly.temperatures.title" />
</h5>
<div id="temperatureChart" style="height: 150px;"></div>
</div>
<div class="col-xs-12 col-sm-6">
<h5>
<spring:message code="worldclim.monthly.precipitation.title" />
</h5>
<div id="precipitationChart" style="height: 150px;"></div>
</div>
<!-- WorldClim.org -->
<c:if test="${worldclimJson ne null}">
<h4>
<spring:message code="worldclim.monthly.title" />
</h4>
<!-- Charts -->
<div class="row">
<div class="col-xs-12 col-sm-6">
<h5>
<spring:message code="worldclim.monthly.temperatures.title" />
</h5>
<div id="temperatureChart" style="height: 150px;"></div>
</div>
<div class="col-xs-12 col-sm-6">
<h5>
<spring:message code="worldclim.monthly.precipitation.title" />
</h5>
<div id="precipitationChart" style="height: 150px;"></div>
</div>
</div>
<!-- Data -->
<div class="row">
<div class="col-sm-offset-4 col-sm-8 col-xs-12">
<div class="row">
<c:forEach var="i" begin="0" end="11">
<div class="col-xs-1 text-right">
<strong><c:out value="${jspHelper.monthShortNames(pageContext.response.locale)[i]}" /></strong>
</div>
</c:forEach>
</div>
<!-- Data -->
<div class="row">
<div class="col-sm-offset-4 col-sm-8 col-xs-12">
<div class="row">
<c:forEach var="i" begin="0" end="11">
<div class="col-xs-1 text-right">
<strong><c:out value="${jspHelper.monthShortNames(pageContext.response.locale)[i]}" /></strong>
</div>
</c:forEach>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-xs-12">
<spring:message code="worldclim.monthly.tempMin" />
</div>
<div class="col-sm-8 col-xs-12">
<div class="row">
<c:forEach var="i" begin="0" end="11">
<div class="col-xs-1 text-right">
<fmt:formatNumber value="${worldclimJson.tempMin[i]}" />
</div>
</c:forEach>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-xs-12">
<spring:message code="worldclim.monthly.tempMin" />
</div>
<div class="col-sm-8 col-xs-12">
<div class="row">
<c:forEach var="i" begin="0" end="11">
<div class="col-xs-1 text-right">
<fmt:formatNumber value="${worldclimJson.tempMin[i]}" />
</div>
</c:forEach>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-xs-12">
<spring:message code="worldclim.monthly.tempMean" />
</div>
<div class="col-sm-8 col-xs-12">
<div class="row">
<c:forEach var="i" begin="0" end="11">
<div class="col-xs-1 text-right">
<fmt:formatNumber value="${worldclimJson.tempMean[i]}" />
</div>
</c:forEach>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-xs-12">
<spring:message code="worldclim.monthly.tempMean" />
</div>
<div class="col-sm-8 col-xs-12">
<div class="row">
<c:forEach var="i" begin="0" end="11">
<div class="col-xs-1 text-right">
<fmt:formatNumber value="${worldclimJson.tempMean[i]}" />
</div>
</c:forEach>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-xs-12">
<spring:message code="worldclim.monthly.tempMax" />
</div>
<div class="col-sm-8 col-xs-12">
<div class="row">
<c:forEach var="i" begin="0" end="11">
<div class="col-xs-1 text-right">
<fmt:formatNumber value="${worldclimJson.tempMax[i]}" />
</div>
</c:forEach>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-xs-12">
<spring:message code="worldclim.monthly.tempMax" />
</div>
<div class="col-sm-8 col-xs-12">
<div class="row">
<c:forEach var="i" begin="0" end="11">
<div class="col-xs-1 text-right">
<fmt:formatNumber value="${worldclimJson.tempMax[i]}" />
</div>
</c:forEach>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-xs-12">
<spring:message code="worldclim.monthly.precipitation" />
</div>
<div class="col-sm-8 col-xs-12">
<div class="row">
<c:forEach var="i" begin="0" end="11">
<div class="col-xs-1 text-right">
<fmt:formatNumber value="${worldclimJson.precipitation[i]}" />
</div>
</c:forEach>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-xs-12">
<spring:message code="worldclim.monthly.precipitation" />
</div>
<div class="col-sm-8 col-xs-12">
<div class="row">
<c:forEach var="i" begin="0" end="11">
<div class="col-xs-1 text-right">
<fmt:formatNumber value="${worldclimJson.precipitation[i]}" />
</div>
</c:forEach>
</div>
</div>
</div>
<%-- Needs work
<h4><spring:message code="worldclim.other-climate" /></h4>
<c:forEach items="${worldclimJson.other.keySet()}" var="worldclimDescriptor">
<div class="row">
<div class="col-xs-4"><c:out value="${worldclimDescriptor.title}" /></div>
<div class="col-xs-8"><fmt:formatNumber value="${worldclimJson.other[worldclimDescriptor]}" /><span class="uom">${worldclimDescriptor.uom}</span></div>
</div>
</c:forEach>
--%>
</c:if>
</security:authorize>
<%-- Needs work
<h4><spring:message code="worldclim.other-climate" /></h4>
<c:forEach items="${worldclimJson.other.keySet()}" var="worldclimDescriptor">
<div class="row">
<div class="col-xs-4"><c:out value="${worldclimDescriptor.title}" /></div>
<div class="col-xs-8"><fmt:formatNumber value="${worldclimJson.other[worldclimDescriptor]}" /><span class="uom">${worldclimDescriptor.uom}</span></div>
</div>
</c:forEach>
--%>
</c:if>
<c:if test="${svalbardData ne null}">
<h4>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment