details.jsp 4.42 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1 2 3 4 5 6
<!DOCTYPE html>

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

<html>
<head>
7
<title><spring:message code="organization.page.profile.title" arguments="${organization.slug}"
Matija Obreza's avatar
Matija Obreza committed
8
    argumentSeparator="|" /></title>
9
	<local:content-headers description="${jspHelper.htmlToText(blurp.summary, 150)}" title="${organization.title}" keywords="${organization.slug}, ${organization.title}" />
Matija Obreza's avatar
Matija Obreza committed
10 11
</head>
<body>
12 13 14 15
  <h1>
    <c:out value="${organization.title}" />
    <small><c:out value="${organization.slug}" /></small>
  </h1>
Matija Obreza's avatar
Matija Obreza committed
16

17 18 19 20 21 22 23 24 25 26 27
  <div class="main-col-header text-right">
    <a class="btn btn-default" href="<c:url value="/org/${organization.slug}/data" />"><spring:message
        code="view.accessions"
      /></a> <a class="btn btn-default" href="<c:url value="/org/${organization.slug}/overview" />"><span
      class="glyphicon glyphicon-eye-open"
    ></span><span style="margin-left: 0.5em;"><spring:message code="data-overview.short" /></span></a> <a class="btn btn-default"
      href="<c:url value="/org/${organization.slug}/map" />"
    ><span class="glyphicon glyphicon-globe"></span><span style="margin-left: 0.5em;"><spring:message
          code="maps.view-map"
        /></span></a>
  </div>
28

29 30 31 32
  <security:authorize access="hasRole('ADMINISTRATOR')">
    <a href="<c:url value="/org/${organization.slug}/edit" />" class="close"> <spring:message code="edit" />
    </a>
  </security:authorize>
33

34
  <%@include file="/WEB-INF/jsp/content/include/blurp-display.jsp"%>
35 36


Matija Obreza's avatar
Matija Obreza committed
37

38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
  <c:set value="" var="countryName" />
  <div class="form-horizontal">
    <div class="form-group">
      <label class="col-lg-2 control-label"> <spring:message code="select-country" /></label>
      <div class="col-lg-3">
        <select id="countryNavigation" class="form-control">
          <c:forEach items="${members}" var="faoInstitute" varStatus="status">
            <c:if test="${countryName ne faoInstitute.country.getName(pageContext.response.locale)}">
              <c:set var="countryName" value="${faoInstitute.country.getName(pageContext.response.locale)}" />
              <option value="${faoInstitute.country.code3}">
                <c:out value="${faoInstitute.country.getName(pageContext.response.locale)}" />
              </option>
            </c:if>
          </c:forEach>
        </select>
      </div>
    </div>
    <c:remove var="countryName" />
  </div>

  <c:set value="" var="countryName" />
  <ul class="funny-list">
    <c:forEach items="${members}" var="faoInstitute" varStatus="status">
      <c:if test="${countryName ne faoInstitute.country.getName(pageContext.response.locale)}">
        <c:set var="countryName" value="${faoInstitute.country.getName(pageContext.response.locale)}" />
        <li class="hoofdleter" id="nav-${faoInstitute.country.code3}"><c:out value="${countryName}" /> <small><a
            href="#"
          ><spring:message code="jump-to-top" /></a></small></li>
      </c:if>
      <li class="clearfix ${status.count % 2 == 0 ? 'even' : 'odd'}"><a class="show pull-left"
        href="<c:url value="/wiews/${faoInstitute.code}" />"
      ><b><c:out value="${faoInstitute.code}" /></b> <c:out value="${faoInstitute.fullName}" /></a>
        <div class="pull-right">
          <spring:message code="faoInstitute.accessionCount" arguments="${faoInstitute.accessionCount}" />
        </div></li>
    </c:forEach>
  </ul>


Matija Obreza's avatar
Matija Obreza committed
77 78 79 80 81
  <c:if test="${statisticsPDCI.count gt 0}">
    <h3>
      <spring:message code="accession.pdci" />
    </h3>
    <p><spring:message code="accession.pdci.stats-text" arguments="${statisticsPDCI.elStats}" /></p>
82

Matija Obreza's avatar
Matija Obreza committed
83 84 85
    <div class="chart chart-histogram">
      <div id="chartPDCI" style="height: 200px"></div>
    </div>
86

Matija Obreza's avatar
Matija Obreza committed
87 88 89 90 91 92 93 94 95 96 97
    <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>
98 99

  <content tag="javascript"> <script type="text/javascript">
100 101 102
	jQuery(document).ready(function() {	
		$("#countryNavigation").on("change", function() {
			window.location.hash="nav-" + this.value;
103
		});
104 105 106 107 108
<security:authorize access="isAuthenticated()">
<c:if test="${statisticsPDCI.count gt 0}">
		GenesysChart.histogram("#chartPDCI", <c:out value="${statisticsPDCI.histogramJson}" escapeXml="false" /> );
</c:if>
</security:authorize>		
109
	});
110
	</script> </content>
Matija Obreza's avatar
Matija Obreza committed
111 112
</body>
</html>