Commit c2939ffd authored by Matija Obreza's avatar Matija Obreza

Make PDCI public

parent e1fa53c5
...@@ -643,32 +643,29 @@ ...@@ -643,32 +643,29 @@
</div> </div>
<security:authorize access="isAuthenticated()"> <c:if test="${pdci ne null}">
<c:if test="${pdci ne null}"> <div class="crop-details">
<div class="crop-details">
<h4> <h4>
<spring:message code="accession.pdci" /> <spring:message code="accession.pdci" />
</h4> </h4>
<div class="jumbotron pdci-score"> <div class="jumbotron pdci-score">
<div> <div>
<h3> <h3>
<spring:message code="accession.pdci.jumbo" arguments="${pdci.score}" /> <spring:message code="accession.pdci.jumbo" arguments="${pdci.score}" />
</h3> </h3>
<small> <c:if test="${institutePDCI ne null and institutePDCI.count > 0}"> <small> <c:if test="${institutePDCI ne null and institutePDCI.count > 0}">
<spring:message code="accession.pdci.institute-avg" arguments="${institutePDCI.avg}" /> <spring:message code="accession.pdci.institute-avg" arguments="${institutePDCI.avg}" />
</c:if> <a href="<c:url value="/content/passport-data-completeness-index" />"><spring:message </c:if> <a href="<c:url value="/content/passport-data-completeness-index" />"><spring:message
code="accession.pdci.about-link" code="accession.pdci.about-link"
/></a></small> /></a></small>
</div>
</div> </div>
<local:pdci value="${pdci}" />
</div> </div>
</c:if>
</security:authorize>
<local:pdci value="${pdci}" />
</div>
</c:if>
<c:if test="${methods.size() gt 0}"> <c:if test="${methods.size() gt 0}">
......
...@@ -74,30 +74,27 @@ ...@@ -74,30 +74,27 @@
</ul> </ul>
<security:authorize access="isAuthenticated()"> <c:if test="${statisticsPDCI.count gt 0}">
<c:if test="${statisticsPDCI.count gt 0}"> <h3>
<h3> <spring:message code="accession.pdci" />
<spring:message code="accession.pdci" /> </h3>
</h3> <p><spring:message code="accession.pdci.stats-text" arguments="${statisticsPDCI.elStats}" /></p>
<p><spring:message code="accession.pdci.stats-text" arguments="${statisticsPDCI.elStats}" /></p>
<div class="chart chart-histogram"> <div class="chart chart-histogram">
<div id="chartPDCI" style="height: 200px"></div> <div id="chartPDCI" style="height: 200px"></div>
</div> </div>
<p>
<a href="<c:url value="/content/passport-data-completeness-index" />"><spring:message
code="accession.pdci.about-link"
/></a>
</p>
<%-- <div class="row">
<c:forEach items="${statisticsPDCI.histogram}" var="item" varStatus="index">
<div class="col-xs-1">${index.count}=${item}</div>
</c:forEach>
</div> --%>
</c:if>
</security:authorize>
<p>
<a href="<c:url value="/content/passport-data-completeness-index" />"><spring:message
code="accession.pdci.about-link"
/></a>
</p>
<%-- <div class="row">
<c:forEach items="${statisticsPDCI.histogram}" var="item" varStatus="index">
<div class="col-xs-1">${index.count}=${item}</div>
</c:forEach>
</div> --%>
</c:if>
<content tag="javascript"> <script type="text/javascript"> <content tag="javascript"> <script type="text/javascript">
jQuery(document).ready(function() { jQuery(document).ready(function() {
......
...@@ -201,29 +201,27 @@ ...@@ -201,29 +201,27 @@
</div> </div>
<security:authorize access="isAuthenticated()"> <c:if test="${statisticsPDCI.count gt 0 and statisticsPDCI.count eq countByInstitute}">
<c:if test="${statisticsPDCI.count gt 0 and statisticsPDCI.count eq countByInstitute}"> <h3>
<h3> <spring:message code="accession.pdci" />
<spring:message code="accession.pdci" /> </h3>
</h3> <p>
<p> <spring:message code="accession.pdci.stats-text" arguments="${statisticsPDCI.elStats}" />
<spring:message code="accession.pdci.stats-text" arguments="${statisticsPDCI.elStats}" /> </p>
</p>
<div class="chart chart-histogram"> <div class="chart chart-histogram">
<div id="chartPDCI" style="height: 200px"></div> <div id="chartPDCI" style="height: 200px"></div>
</div> </div>
<p> <p>
<a href="<c:url value="/content/passport-data-completeness-index" />"><spring:message <a href="<c:url value="/content/passport-data-completeness-index" />"><spring:message
code="accession.pdci.about-link" code="accession.pdci.about-link"
/></a> /></a>
</p> </p>
<%-- <c:forEach items="${statisticsPDCI.histogram}" var="item" varStatus="index"> <%-- <c:forEach items="${statisticsPDCI.histogram}" var="item" varStatus="index">
<div>${index.count}=${item}</div> <div>${index.count}=${item}</div>
</c:forEach> --%> </c:forEach> --%>
</c:if> </c:if>
</security:authorize>
<c:if test="${countByInstitute gt 0}"> <c:if test="${countByInstitute gt 0}">
<form class="form-horizontal" method="post" action="/download/wiews/${faoInstitute.code}/download"> <form class="form-horizontal" method="post" action="/download/wiews/${faoInstitute.code}/download">
......
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