view.jsp 6.24 KB
Newer Older
Alexander Basov's avatar
Alexander Basov committed
1
2
<!DOCTYPE html>

3
<%@ include file="/WEB-INF/jsp/init.jsp" %>
Alexander Basov's avatar
Alexander Basov committed
4
5
6

<html>
<head>
Matija Obreza's avatar
Matija Obreza committed
7
8
<title><c:out value="${project.code} - ${project.name}" /></title>
<meta name="description" content="<c:out value="${jspHelper.htmlToText(blurp.summary)}" />" />
Alexander Basov's avatar
Alexander Basov committed
9
10
</head>
<body>
Matija Obreza's avatar
Matija Obreza committed
11
	<h1>
Matija Obreza's avatar
Matija Obreza committed
12
		<c:out value="${project.name}" />
Matija Obreza's avatar
Matija Obreza committed
13
14
15
16
		<small>
			<c:out value="${project.code}" />
		</small>
	</h1>
Alexander Basov's avatar
Alexander Basov committed
17

18
	<security:authorize access="hasRole('ADMINISTRATOR') or hasPermission(#project, 'ADMINISTRATION')">
Matija Obreza's avatar
Matija Obreza committed
19
20
21
22
		<a href="<c:url value="/acl/${project.getClass().name}/${project.id}/permissions"><c:param name="back"><c:url value="/project/${project.code}" /></c:param></c:url>" class="close">
			<spring:message code="edit-acl" />
		</a>
	</security:authorize>
23
	<security:authorize access="hasRole('ADMINISTRATOR') or hasRole('CONTENTMANAGER') or hasPermission(#project, 'ADMINISTRATION')">
Matija Obreza's avatar
Matija Obreza committed
24
25
26
27
		<a href="<c:url value="/project/${project.code}/edit" />" class="close">
			<spring:message code="edit" />
		</a>
	</security:authorize>
Alexander Basov's avatar
Alexander Basov committed
28

29
30
	<!-- Project text -->
	<cms:blurb blurb="${blurp}" />
Matija Obreza's avatar
Matija Obreza committed
31

32
33
34
35
36
37
	<c:if test="${project.url ne ''}">
		<p>
			<a title="<c:out value="${project.name}" />" href="<c:url value="${project.url}" />"><c:out value="${project.url}" /></a>
		</p>
	</c:if>
	
Matija Obreza's avatar
Matija Obreza committed
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
	<div class="content-section-2015">
		<h3>
			<span>
				<spring:message code="heading.general-info" />
			</span>
		</h3>
		<div class="row">
			<div class="col-md-offset-2 col-md-10">
				<ul class="funny-list statistics">
					<li class="clearfix odd">
						<span class="stats-number">
							<fmt:formatNumber value="${countByProject}" />
						</span>
						<spring:message code="faoInstitutes.stat.accessionCount" />
					</li>
				</ul>

				<c:if test="${countByProject gt 0}">
					<a class="btn btn-primary" title="<spring:message code="faoInstitute.data-title" arguments="${project.name}" />" href="<c:url value="/project/${project.code}/data" />">
						<span class="glyphicon glyphicon-list"></span>
						<spring:message code="view.accessions" />
					</a>
					<a class="btn btn-default" title="<spring:message code="faoInstitute.overview-title" arguments="${project.name}" />" href="<c:url value="/project/${project.code}/overview" />">
						<span class="glyphicon glyphicon-eye-open"></span>
						<spring:message code="data-overview.short" />
					</a>
Matija Obreza's avatar
Matija Obreza committed
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
					<div class="btn-group">
						<form class="form-horizontal" method="post" action="<c:url value="/download/project/${project.code}/download" />">
							<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
							<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
								<span class="glyphicon glyphicon-download"></span>
								<span>
									<spring:message code="download" />
								</span>
								<span class="caret"></span>
							</button>
							<ul class="dropdown-menu">
								<security:authorize access="isAuthenticated()">
									<li>
										<button name="mcpd" class="btn btn-inline" type="submit">
											<spring:message code="filter.download-mcpd" />
										</button>
										<button name="pdci" class="btn btn-inline" type="submit">
											<spring:message code="filter.download-pdci" />
										</button>
									</li>
								</security:authorize>
								<li>
									<button name="dwca" class="btn btn-inline" type="submit">
										<spring:message code="metadata.download-dwca" />
									</button>
								</li>
							</ul>
						</form>
					</div>
Matija Obreza's avatar
Matija Obreza committed
93
94
95
				</c:if>
			</div>
		</div>
Matija Obreza's avatar
Matija Obreza committed
96

Matija Obreza's avatar
Matija Obreza committed
97
98
99
100
101
102
103
104
105
106
107
108
		<c:if test="${statisticsCrop ne null and statisticsCrop.totalCount gt 0}">
			<h4>
				<span>
					<spring:message code="faoInstitute.stat-by-crop" />
				</span>
			</h4>
			<div class="row">
				<div class="col-md-offset-2 col-md-10">
					<local:term-result termResult="${statisticsCrop}" type="crop" />
				</div>
			</div>
		</c:if>
Matija Obreza's avatar
Matija Obreza committed
109

Matija Obreza's avatar
Matija Obreza committed
110
111
112
113
114
115
116
117
118
119
120
121
		<c:if test="${statisticsGenus ne null and statisticsGenus.totalCount gt 0}">
			<h4>
				<span>
					<spring:message code="faoInstitute.stat-by-genus" />
				</span>
			</h4>
			<div class="row">
				<div class="col-md-offset-2 col-md-10">
					<local:term-result termResult="${statisticsGenus}" type="genus" />
				</div>
			</div>
		</c:if>
Matija Obreza's avatar
Matija Obreza committed
122

Matija Obreza's avatar
Matija Obreza committed
123
124
		<c:if test="${statisticsTaxonomy ne null and statisticsTaxonomy.totalCount gt 0}">
			<h4>
Matija Obreza's avatar
Matija Obreza committed
125
				<span>
Matija Obreza's avatar
Matija Obreza committed
126
					<spring:message code="faoInstitute.stat-by-species" />
Matija Obreza's avatar
Matija Obreza committed
127
				</span>
Matija Obreza's avatar
Matija Obreza committed
128
			</h4>
Matija Obreza's avatar
Matija Obreza committed
129
130
			<div class="row">
				<div class="col-md-offset-2 col-md-10">
Matija Obreza's avatar
Matija Obreza committed
131
132
133
134
					<local:term-result termResult="${statisticsTaxonomy}" type="species" />
				</div>
			</div>
		</c:if>
Matija Obreza's avatar
Matija Obreza committed
135

Matija Obreza's avatar
Matija Obreza committed
136
137
138
139
140
141
142
143
144
145
146
147
		<c:if test="${statisticsOrigCty ne null and statisticsOrigCty.totalCount gt 0}">
			<h4>
				<span>
					<spring:message code="accession.orgCty" />
				</span>
			</h4>
			<div class="row">
				<div class="col-md-offset-2 col-md-10">
					<local:term-result termResult="${statisticsOrigCty}" type="country" />
				</div>
			</div>
		</c:if>
Matija Obreza's avatar
Matija Obreza committed
148
	</div>
Matija Obreza's avatar
Matija Obreza committed
149

Matija Obreza's avatar
Matija Obreza committed
150
151
152
153
154
155
156
157
158
159
160
	<c:if test="${fn:length(accessionLists) gt 0}">
		<div class="content-section-2015">
			<h3>
				<span>
					<spring:message code="project.accessionLists" />
				</span>
			</h3>
			<div class="row">
				<div class="col-md-offset-2 col-md-10">
					<ul>
						<c:forEach items="${accessionLists}" var="accessionList">
Matija Obreza's avatar
Matija Obreza committed
161
							<li>
Matija Obreza's avatar
Matija Obreza committed
162
163
								<a href="<c:url value="/explore"><c:param name="filter" value='{"lists":["${accessionList.uuid}"]}' /></c:url>">
									<c:out value="${accessionList.title}" />
Matija Obreza's avatar
Matija Obreza committed
164
165
								</a>
							</li>
Matija Obreza's avatar
Matija Obreza committed
166
167
						</c:forEach>
					</ul>
Matija Obreza's avatar
Matija Obreza committed
168
				</div>
Matija Obreza's avatar
Matija Obreza committed
169
			</div>
Matija Obreza's avatar
Matija Obreza committed
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
		</div>
	</c:if>

	<c:if test="${countByProject gt 0}">
		<div class="content-section-2015">
			<h3>
				<span>
					<spring:message code="heading.see-also" />
				</span>
			</h3>
			<div class="row">
				<div class="col-md-offset-2 col-md-10">
					<ul class="see-also">
						<li>
							<a href="<c:url value="/project/${project.code}/data/map" />">
								<spring:message code="see-also.map" />
							</a>
						</li>
						<li>
							<a href="<c:url value="/project/${project.code}/overview" />">
								<spring:message code="see-also.overview" />
							</a>
						</li>
193
194
195
196
197
198
199
						<c:if test="${project.url ne ''}">
						<li>
							<a title="<c:out value="${project.name}" />" href="<c:url value="${project.url}" />">
								<spring:message code="project.url" />
							</a>
						</li>
						</c:if>
Matija Obreza's avatar
Matija Obreza committed
200
201
202
203
204
205
					</ul>
				</div>
			</div>
		</div>
	</c:if>

Alexander Basov's avatar
Alexander Basov committed
206
207
</body>
</html>