Commit f20d9ae3 authored by Matija Obreza's avatar Matija Obreza
Browse files

Make climatic data public

parent c2939ffd
...@@ -464,109 +464,107 @@ ...@@ -464,109 +464,107 @@
</c:if> </c:if>
</c:if> </c:if>
<security:authorize access="isAuthenticated()"> <!-- WorldClim.org -->
<!-- WorldClim.org --> <c:if test="${worldclimJson ne null}">
<c:if test="${worldclimJson ne null}"> <h4>
<h4> <spring:message code="worldclim.monthly.title" />
<spring:message code="worldclim.monthly.title" /> </h4>
</h4>
<!-- Charts -->
<!-- Charts --> <div class="row">
<div class="row"> <div class="col-xs-12 col-sm-6">
<div class="col-xs-12 col-sm-6"> <h5>
<h5> <spring:message code="worldclim.monthly.temperatures.title" />
<spring:message code="worldclim.monthly.temperatures.title" /> </h5>
</h5> <div id="temperatureChart" style="height: 150px;"></div>
<div id="temperatureChart" style="height: 150px;"></div> </div>
</div> <div class="col-xs-12 col-sm-6">
<div class="col-xs-12 col-sm-6"> <h5>
<h5> <spring:message code="worldclim.monthly.precipitation.title" />
<spring:message code="worldclim.monthly.precipitation.title" /> </h5>
</h5> <div id="precipitationChart" style="height: 150px;"></div>
<div id="precipitationChart" style="height: 150px;"></div>
</div>
</div> </div>
</div>
<!-- Data --> <!-- Data -->
<div class="row"> <div class="row">
<div class="col-sm-offset-4 col-sm-8 col-xs-12"> <div class="col-sm-offset-4 col-sm-8 col-xs-12">
<div class="row"> <div class="row">
<c:forEach var="i" begin="0" end="11"> <c:forEach var="i" begin="0" end="11">
<div class="col-xs-1 text-right"> <div class="col-xs-1 text-right">
<strong><c:out value="${jspHelper.monthShortNames(pageContext.response.locale)[i]}" /></strong> <strong><c:out value="${jspHelper.monthShortNames(pageContext.response.locale)[i]}" /></strong>
</div> </div>
</c:forEach> </c:forEach>
</div>
</div> </div>
</div> </div>
<div class="row"> </div>
<div class="col-sm-4 col-xs-12"> <div class="row">
<spring:message code="worldclim.monthly.tempMin" /> <div class="col-sm-4 col-xs-12">
</div> <spring:message code="worldclim.monthly.tempMin" />
<div class="col-sm-8 col-xs-12"> </div>
<div class="row"> <div class="col-sm-8 col-xs-12">
<c:forEach var="i" begin="0" end="11"> <div class="row">
<div class="col-xs-1 text-right"> <c:forEach var="i" begin="0" end="11">
<fmt:formatNumber value="${worldclimJson.tempMin[i]}" /> <div class="col-xs-1 text-right">
</div> <fmt:formatNumber value="${worldclimJson.tempMin[i]}" />
</c:forEach> </div>
</div> </c:forEach>
</div> </div>
</div> </div>
<div class="row"> </div>
<div class="col-sm-4 col-xs-12"> <div class="row">
<spring:message code="worldclim.monthly.tempMean" /> <div class="col-sm-4 col-xs-12">
</div> <spring:message code="worldclim.monthly.tempMean" />
<div class="col-sm-8 col-xs-12"> </div>
<div class="row"> <div class="col-sm-8 col-xs-12">
<c:forEach var="i" begin="0" end="11"> <div class="row">
<div class="col-xs-1 text-right"> <c:forEach var="i" begin="0" end="11">
<fmt:formatNumber value="${worldclimJson.tempMean[i]}" /> <div class="col-xs-1 text-right">
</div> <fmt:formatNumber value="${worldclimJson.tempMean[i]}" />
</c:forEach> </div>
</div> </c:forEach>
</div> </div>
</div> </div>
<div class="row"> </div>
<div class="col-sm-4 col-xs-12"> <div class="row">
<spring:message code="worldclim.monthly.tempMax" /> <div class="col-sm-4 col-xs-12">
</div> <spring:message code="worldclim.monthly.tempMax" />
<div class="col-sm-8 col-xs-12"> </div>
<div class="row"> <div class="col-sm-8 col-xs-12">
<c:forEach var="i" begin="0" end="11"> <div class="row">
<div class="col-xs-1 text-right"> <c:forEach var="i" begin="0" end="11">
<fmt:formatNumber value="${worldclimJson.tempMax[i]}" /> <div class="col-xs-1 text-right">
</div> <fmt:formatNumber value="${worldclimJson.tempMax[i]}" />
</c:forEach> </div>
</div> </c:forEach>
</div> </div>
</div> </div>
<div class="row"> </div>
<div class="col-sm-4 col-xs-12"> <div class="row">
<spring:message code="worldclim.monthly.precipitation" /> <div class="col-sm-4 col-xs-12">
</div> <spring:message code="worldclim.monthly.precipitation" />
<div class="col-sm-8 col-xs-12"> </div>
<div class="row"> <div class="col-sm-8 col-xs-12">
<c:forEach var="i" begin="0" end="11"> <div class="row">
<div class="col-xs-1 text-right"> <c:forEach var="i" begin="0" end="11">
<fmt:formatNumber value="${worldclimJson.precipitation[i]}" /> <div class="col-xs-1 text-right">
</div> <fmt:formatNumber value="${worldclimJson.precipitation[i]}" />
</c:forEach> </div>
</div> </c:forEach>
</div> </div>
</div> </div>
</div>
<%-- Needs work <%-- Needs work
<h4><spring:message code="worldclim.other-climate" /></h4> <h4><spring:message code="worldclim.other-climate" /></h4>
<c:forEach items="${worldclimJson.other.keySet()}" var="worldclimDescriptor"> <c:forEach items="${worldclimJson.other.keySet()}" var="worldclimDescriptor">
<div class="row"> <div class="row">
<div class="col-xs-4"><c:out value="${worldclimDescriptor.title}" /></div> <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 class="col-xs-8"><fmt:formatNumber value="${worldclimJson.other[worldclimDescriptor]}" /><span class="uom">${worldclimDescriptor.uom}</span></div>
</div> </div>
</c:forEach> </c:forEach>
--%> --%>
</c:if> </c:if>
</security:authorize>
<c:if test="${svalbardData ne null}"> <c:if test="${svalbardData ne null}">
<h4> <h4>
......
Supports Markdown
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