details.jsp 11.2 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>

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

<html>
<head>
<title><spring:message code="accession.page.profile.title" arguments="${accession.accessionName}" argumentSeparator="|" /></title>
</head>
<body>
	<h1>
		<c:out value="${accession.accessionName}" />
		<small><c:out value="${accession.instituteCode}" /></small>
	</h1>
Matija Obreza's avatar
Updates  
Matija Obreza committed
14

Matija Obreza's avatar
Matija Obreza committed
15
16
	<div class="page-header acn">
		<div class="sel ${selection.containsId(accession.id) ? 'picked' : ''}" x-aid="${accession.id}">
Matija Obreza's avatar
Matija Obreza committed
17
18
			<a class="add" href="<c:url value="/sel/add/${accession.id}" />"><spring:message code="selection.add" arguments="${accession.accessionName}" /></a> <a class="remove" href="<c:url value="/sel/remove/${accession.id}" />"><spring:message code="selection.remove"
					arguments="${accession.accessionName}" /></a>
Matija Obreza's avatar
Matija Obreza committed
19
		</div>
Matija Obreza's avatar
Matija Obreza committed
20
	</div>
Matija Obreza's avatar
Matija Obreza committed
21

Matija Obreza's avatar
Matija Obreza committed
22
	<c:if test="${accession.inTrust eq true}">
Matija Obreza's avatar
Matija Obreza committed
23
		<div class="alert alert-info">
Matija Obreza's avatar
Updates  
Matija Obreza committed
24
25
			<spring:message code="accession.inTrust.true" />
		</div>
Matija Obreza's avatar
Matija Obreza committed
26
	</c:if>
Matija Obreza's avatar
Updates  
Matija Obreza committed
27

Matija Obreza's avatar
Matija Obreza committed
28
	<c:if test="${accession.inSvalbard eq true}">
Matija Obreza's avatar
Matija Obreza committed
29
		<div class="alert alert-info">
Matija Obreza's avatar
Updates  
Matija Obreza committed
30
31
			<spring:message code="accession.inSvalbard.true" />
		</div>
Matija Obreza's avatar
Matija Obreza committed
32
	</c:if>
Matija Obreza's avatar
Updates  
Matija Obreza committed
33

Matija Obreza's avatar
Matija Obreza committed
34
	<c:if test="${accession.mlsStatus eq true}">
Matija Obreza's avatar
Matija Obreza committed
35
		<div class="alert alert-info">
Matija Obreza's avatar
Updates  
Matija Obreza committed
36
37
			<spring:message code="accession.mlsStatus.true" />
		</div>
Matija Obreza's avatar
Matija Obreza committed
38
	</c:if>
Matija Obreza's avatar
Matija Obreza committed
39
	
40
	<c:if test="${accession.availability eq false}">
Matija Obreza's avatar
Matija Obreza committed
41
42
43
44
		<div class="alert alert-warning">
			<spring:message code="accession.not-available-for-distribution" />
		</div>
	</c:if>
Matija Obreza's avatar
Matija Obreza committed
45
46
47
48
49
50
	
	<c:if test="${accession.availability eq true}">
		<div class="alert alert-info">
			<spring:message code="accession.available-for-distribution" />
		</div>
	</c:if>
Matija Obreza's avatar
Matija Obreza committed
51

Matija Obreza's avatar
Matija Obreza committed
52
53
	<table>
		<tbody>
Matija Obreza's avatar
Updates  
Matija Obreza committed
54
55


Matija Obreza's avatar
Matija Obreza committed
56
57
			<tr>
				<td><spring:message code="accession.holdingInstitute" /></td>
Matija Obreza's avatar
Matija Obreza committed
58
59
				<td><a href="<c:url value="/wiews/${accession.instituteCode.toLowerCase()}" />"> <c:out value="${accession.institute.fullName}" />
				</a></td>
Matija Obreza's avatar
Matija Obreza committed
60
61
62
			</tr>
			<tr>
				<td><spring:message code="accession.holdingCountry" /></td>
Matija Obreza's avatar
Matija Obreza committed
63
				<td><a href="<c:url value="/geo/${accession.institute.country.code3.toLowerCase()}" />"><c:out value="${accession.institute.country.getName(pageContext.response.locale)}" /></a></td>
Matija Obreza's avatar
Matija Obreza committed
64
65
66
67
68
			</tr>
			<tr>
				<td><spring:message code="accession.accessionName" /></td>
				<td><c:out value="${accession.accessionName}" /></td>
			</tr>
69
70
71
72
73
74
			<c:if test="${accession.uuid ne null}">
			<tr>
				<td><spring:message code="accession.uuid" /></td>
				<td><b><c:out value="${accession.uuid}" /></b></td>
			</tr>
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
75

Matija Obreza's avatar
Matija Obreza committed
76
			<c:if test="${crops ne null}">
77
78
				<tr>
					<td><spring:message code="accession.crop" /></td>
79
80
					<td><c:forEach items="${crops}" var="crop">
							<a href="<c:url value="/c/${crop.shortName}" />"><c:out value="${crop.getName(pageContext.response.locale)}" /></a>
Matija Obreza's avatar
Matija Obreza committed
81
						</c:forEach></td>
82
83
				</tr>
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
84

Matija Obreza's avatar
Matija Obreza committed
85
86
87
			<c:if test="${accession.countryOfOrigin ne null}">
				<tr>
					<td><spring:message code="accession.origin" /></td>
Matija Obreza's avatar
Matija Obreza committed
88
					<td><img src="${cdnFlagsUrl}/${accession.origin.toUpperCase()}.png" /> <a href="<c:url value="/geo/${accession.origin.toLowerCase()}" />"> <c:out value="${accession.countryOfOrigin.getName(pageContext.response.locale)}" />
Matija Obreza's avatar
Matija Obreza committed
89
					</a></td>
Matija Obreza's avatar
Matija Obreza committed
90
91
				</tr>
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
92

Matija Obreza's avatar
Matija Obreza committed
93
94
95
96
97
98
99
100
101
102
			<tr>
				<td><spring:message code="taxonomy.genus" /></td>
				<td><c:out value="${accession.taxonomy.genus}" /></td>
			</tr>
			<tr>
				<td><spring:message code="taxonomy.species" /></td>
				<td><c:out value="${accession.taxonomy.species}" /></td>
			</tr>
			<tr>
				<td><spring:message code="taxonomy.taxonName" /></td>
Matija Obreza's avatar
Matija Obreza committed
103
104
				<td><a href="<c:url value="/acn/t/${accession.taxonomy.genus}/${accession.taxonomy.species}" />"><c:out value="${accession.taxonomy.taxonName}" /></a> <br /> <a
					href="<c:url value="/wiews/${accession.institute.code.toLowerCase()}/t/${accession.taxonomy.genus}/${accession.taxonomy.species}" />"><spring:message code="accession.taxonomy-at-institute" arguments="${accession.taxonomy.taxonName}|||${accession.institute.code}" argumentSeparator="|||" /></a></td>
Matija Obreza's avatar
Matija Obreza committed
105
			</tr>
106
107
108
109
110
111

			<tr>
				<td><spring:message code="accession.availability" /></td>
				<td><spring:message code="accession.availability.${accession.availability}" /></td>
			</tr>
			
Matija Obreza's avatar
Matija Obreza committed
112
			<tr>
Matija Obreza's avatar
Matija Obreza committed
113
				<td><spring:message code="accession.otherNames" /></td>
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
				<td>
				<c:forEach items="${accessionAliases}" var="accessionAlias">
					<div>
						<c:out value="${accessionAlias.name}" />
						<c:if test="${accessionAlias.instCode != ''}">
							<a href="<c:url value="/wiews/${accessionAlias.instCode.toLowerCase()}" />">
							${accessionAlias.instCode}
							</a>
						</c:if>
						<c:if test="${accessionAlias.lang != ''}">
							<c:out value="${accessionAlias.lang}" />
						</c:if>
						<spring:message code="accession.aliasType.${accessionAlias.aliasType}" />
					</div>			
				</c:forEach>
				</td>
Matija Obreza's avatar
Matija Obreza committed
130
			</tr>
Matija Obreza's avatar
Matija Obreza committed
131
132
133
134
135
			
			<tr>
				<td><spring:message code="accession.sampleStatus" /></td>
				<td><spring:message code="accession.sampleStatus.${accession.sampleStatus}" /></td>
			</tr>
Matija Obreza's avatar
Updates  
Matija Obreza committed
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150


			<c:if test="${accessionExchange ne null}">
				<tr>
					<td><spring:message code="accession.donor.institute" /></td>
					<td>${accessionExchange.donorInstitute}</td>
				</tr>
				<tr>
					<td><spring:message code="accession.donor.accessionNumber" /></td>
					<td>${accessionExchange.accNumbDonor}</td>
				</tr>
			</c:if>

			<c:if test="${accessionCollect ne null}">
				<tr>
151
152
153
					<td colspan="2">
						<h4><spring:message code="accession.collecting" /></h4>
					</td>
Matija Obreza's avatar
Updates  
Matija Obreza committed
154
155
				</tr>
				<tr>
156
157
					<td><spring:message code="accession.collecting.institute" /></td>
					<td>${accessionCollect.collCode}</td>
Matija Obreza's avatar
Updates  
Matija Obreza committed
158
				</tr>
159
				<c:if test="${accessionCollect.collName ne null}">
Matija Obreza's avatar
Updates  
Matija Obreza committed
160
161
				<tr>
					<td><spring:message code="accession.collecting.institute" /></td>
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
					<td>${accessionCollect.collName}
					${accessionCollect.collInstAddress}</td>
				</tr>
				</c:if>
				<tr>
					<td><spring:message code="accession.collecting.mission" /></td>
					<td>${accessionCollect.collMissId}</td>
				</tr>
				<tr>
					<td><spring:message code="accession.collecting.date" /></td>
					<td>${accessionCollect.collDate}</td>
				</tr>
				<tr>
					<td><spring:message code="accession.collecting.number" /></td>
					<td>${accessionCollect.collNumb}</td>
Matija Obreza's avatar
Updates  
Matija Obreza committed
177
178
179
				</tr>
				<tr>
					<td><spring:message code="accession.collecting.site" /></td>
180
181
182
183
184
					<td>${accessionCollect.collSite}</td>
				</tr>
				<tr>
					<td><spring:message code="accession.collecting.source" /></td>
					<td>${accessionCollect.collSrc}</td>
Matija Obreza's avatar
Updates  
Matija Obreza committed
185
186
187
188
				</tr>
			</c:if>

			<c:if test="${accessionBreeding ne null}">
189
190
191
192
193
				<tr>
					<td colspan="2">
						<h4><spring:message code="accession.breeding" /></h4>
					</td>
				</tr>
Matija Obreza's avatar
Updates  
Matija Obreza committed
194
195
196
197
198
199
200
201
202
203
204
				<tr>
					<td><spring:message code="accession.breederCode" /></td>
					<td>${accessionBreeding.breederCode}</td>
				</tr>
				<tr>
					<td><spring:message code="accession.pedigree" /></td>
					<td>${accessionBreeding.pedigree}</td>
				</tr>
			</c:if>


205
			<c:if test="${accessionGeo ne null}">
206
207
208
209
210
211
212
213
214
215
216
				<tr>
					<td colspan="2">
						<h4><spring:message code="accession.geo" /></h4>
					</td>
				</tr>
				<c:if test="${accessionCollect.collSite ne null}">
				<tr>
					<td><spring:message code="accession.collecting.site" /></td>
					<td>${accessionCollect.collSite}</td>
				</tr>
				</c:if>
217
				<c:if test="${accessionGeo.latitude ne null}">
Matija Obreza's avatar
Updates  
Matija Obreza committed
218
219
				<tr>
					<td><spring:message code="accession.geolocation" /></td>
220
					<td>${accessionGeo.latitude}, ${accessionGeo.longitude}</td>
Matija Obreza's avatar
Updates  
Matija Obreza committed
221
				</tr>
222
223
224
225
226
227
228
229
				<tr>
					<td><spring:message code="accession.geo.datum" /></td>
					<td>${accessionGeo.datum}</td>
				</tr>
				<tr>
					<td><spring:message code="accession.geo.method" /></td>
					<td>${accessionGeo.method}</td>
				</tr>
Matija Obreza's avatar
Matija Obreza committed
230
				</c:if>
Matija Obreza's avatar
Matija Obreza committed
231
				<c:if test="${accessionGeo.elevation ne null}">
Matija Obreza's avatar
Updates  
Matija Obreza committed
232
				<tr>
Matija Obreza's avatar
Matija Obreza committed
233
234
					<td><spring:message code="accession.elevation" /></td>
					<td>${accessionGeo.elevation}<span class="uom">m</span></td>
Matija Obreza's avatar
Updates  
Matija Obreza committed
235
				</tr>
Matija Obreza's avatar
Matija Obreza committed
236
				</c:if>
237
238
239
240
241
242
				<c:if test="${accessionGeo.uncertainty ne null}">
				<tr>
					<td><spring:message code="accession.geo.uncertainty" /></td>
					<td>${accessionGeo.uncertainty}<span class="uom">m</span></td>
				</tr>
				</c:if>
243
				<c:if test="${accessionGeo.latitude ne null}">
Matija Obreza's avatar
Matija Obreza committed
244
245
				<tr>
					<td colspan="2">
246
						<h4><spring:message code="accession.collecting.site" /></h4>
Matija Obreza's avatar
Matija Obreza committed
247
						<div id="map" class="gis-map"><spring:message code="maps.loading-map" /></div>
Matija Obreza's avatar
Matija Obreza committed
248
249
250
					</td>
				</tr>
				</c:if>
Matija Obreza's avatar
Updates  
Matija Obreza committed
251
252
			</c:if>

Matija Obreza's avatar
Matija Obreza committed
253

254
			<c:if test="${svalbardData ne null}">
Matija Obreza's avatar
Matija Obreza committed
255
256
				<tr>
					<td colspan="2">
Matija Obreza's avatar
Matija Obreza committed
257
						<h4><spring:message code="accession.svalbard-data" /></h4>
Matija Obreza's avatar
Matija Obreza committed
258
259
260
					</td>
				</tr>
				<tr>
Matija Obreza's avatar
Matija Obreza committed
261
					<td><spring:message code="accession.svalbard-data.taxonomy" /></td>
262
					<td>${svalbardData.taxonomy}</td>
Matija Obreza's avatar
Matija Obreza committed
263
264
265
				</tr>

				<tr>
Matija Obreza's avatar
Matija Obreza committed
266
					<td><spring:message code="accession.svalbard-data.depositDate" /></td>
267
					<td>${svalbardData.depositDate}</td>
Matija Obreza's avatar
Matija Obreza committed
268
269
				</tr>
				<tr>
Matija Obreza's avatar
Matija Obreza committed
270
					<td><spring:message code="accession.svalbard-data.boxNumber" /></td>
271
					<td>${svalbardData.boxNumber}</td>
Matija Obreza's avatar
Matija Obreza committed
272
273
				</tr>
				<tr>
Matija Obreza's avatar
Matija Obreza committed
274
					<td><spring:message code="accession.svalbard-data.quantity" /></td>
275
					<td>${svalbardData.quantity}</td>
Matija Obreza's avatar
Matija Obreza committed
276
277
278
279
280
				</tr>

			</c:if>


Matija Obreza's avatar
Matija Obreza committed
281
282
		</tbody>
	</table>
Matija Obreza's avatar
Matija Obreza committed
283

Matija Obreza's avatar
Updates  
Matija Obreza committed
284

Matija Obreza's avatar
Matija Obreza committed
285
	<c:if test="${methods.size() gt 0}">
286
		<h4>
Matija Obreza's avatar
Matija Obreza committed
287
			<spring:message code="accession.methods" />
288
		</h4>
Matija Obreza's avatar
Matija Obreza committed
289
290
291
		<table>
			<tbody>
				<c:forEach items="${methods}" var="method" varStatus="status">
Matija Obreza's avatar
Matija Obreza committed
292
					<tr class="targeted" id="method${method.id}">
Matija Obreza's avatar
Matija Obreza committed
293
294
295
						<td><c:out value="${method.parameter.title}" /></td>
						<td><c:forEach items="${methodValues[method.id]}" var="val">
								<div>
296
									<c:out value="${method.decode(val.value)}" />
Matija Obreza's avatar
Updates  
Matija Obreza committed
297
									<span class="uom"><c:out value="${method.unit}" /></span> <sup><a href="#metadata-${val.experimentId}"><c:out value="${val.experimentId}" /></a></sup>
Matija Obreza's avatar
Matija Obreza committed
298
299
								</div>
							</c:forEach></td>
300
						<td class="notimportant"><c:out value="${method.method}" /></td>
Matija Obreza's avatar
Matija Obreza committed
301
302
303
304
305
306
307
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</c:if>

	<c:if test="${metadatas.size() gt 0}">
308
		<h4>
Matija Obreza's avatar
Matija Obreza committed
309
			<spring:message code="accession.metadatas" />
310
		</h4>
Matija Obreza's avatar
Matija Obreza committed
311
		<ul class="funny-list">
Matija Obreza's avatar
Matija Obreza committed
312
313
314
315
316
317
			<c:forEach items="${metadatas}" var="metadata" varStatus="status">
				<li class="clearfix targeted ${status.count % 2 == 0 ? 'even' : 'odd'}" id="metadata-${metadata.id}">
					<div class="show pull-left">
						<sup><c:out value="${metadata.id}" /></sup> <a href="<c:url value="/data/view/${metadata.id}" />"><c:out value="${metadata.title}" /></a>
					</div>
					<div class="pull-right">
Matija Obreza's avatar
Matija Obreza committed
318
						<c:out value="${metadata.instituteCode}" />
Matija Obreza's avatar
Matija Obreza committed
319
320
321
322
323
324
					</div>
					<div class="pull-right">
						<c:out value="${metadata.description}" />
					</div>
				</li>
			</c:forEach>
Matija Obreza's avatar
Matija Obreza committed
325
		</ul>
Matija Obreza's avatar
Matija Obreza committed
326
	</c:if>
Matija Obreza's avatar
Matija Obreza committed
327
328
329
330
331
332
333
	
	
	
	<div class="audit-info">
		<c:if test="${accession.lastModifiedBy ne null}"><spring:message code="audit.lastModifiedBy" arguments="${jspHelper.userFullName(accession.lastModifiedBy)}" /></c:if>
		<fmt:formatDate value="${accession.lastModifiedDate}" type="both" />
	</div>
Matija Obreza's avatar
Matija Obreza committed
334
	<script type="text/javascript">
335
		<c:if test="${accessionGeo ne null and accessionGeo.latitude ne null}">
Matija Obreza's avatar
Matija Obreza committed
336
			jQuery(document).ready(function() {
337
				var accessionMap=GoogleMaps.map("${pageContext.response.locale.language}", $("#map"), { center: new GoogleMaps.LatLng(${accessionGeo.latitude}, ${accessionGeo.longitude}), markerTitle: "<spring:escapeBody javaScriptEscape="true">${accession.accessionName}, ${accession.instituteCode}</spring:escapeBody>" });
Matija Obreza's avatar
Matija Obreza committed
338
			});
Matija Obreza's avatar
Matija Obreza committed
339
340
		</c:if>

Matija Obreza's avatar
Matija Obreza committed
341
		<%@include file="/WEB-INF/jsp/wiews/ga.jsp"%>
Matija Obreza's avatar
Matija Obreza committed
342
		_pageDim = { institute: '${accession.instituteCode}', genus: '${accession.taxonomy.genus}' };
Matija Obreza's avatar
Matija Obreza committed
343
	</script>
Matija Obreza's avatar
Matija Obreza committed
344
345
</body>
</html>