details.jsp 12.9 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1 2 3 4 5 6 7 8
<!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>
9
<body typeof="germplasm:GermplasmAccession">
Matija Obreza's avatar
Matija Obreza committed
10
	<h1>
11 12
		<span property="germplasm:germplasmIdentifier"><c:out value="${accession.accessionName}" /></span>
		<small property="germplasmType:wiewsInstituteID"><c:out value="${accession.instituteCode}" /></small>
Matija Obreza's avatar
Matija Obreza committed
13
	</h1>
Matija Obreza's avatar
Updates  
Matija Obreza committed
14

Matija Obreza's avatar
Matija Obreza committed
15
	<div class="main-col-header acn">
Matija Obreza's avatar
Matija Obreza committed
16
		<div class="sel" x-aid="${accession.id}">
17
			<a class="add" href=""><spring:message code="selection.add" arguments="${accession.accessionName}" /></a> <a class="remove" href=""><spring:message code="selection.remove"
Matija Obreza's avatar
Matija Obreza committed
18
					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

52
	<div class="pseudo-right-col col-md-3">
53
		<c:if test="${accessionGeo.latitude ne null and accessionGeo.longitude ne null}">
54 55
		
		<div class="crop-location" itemscope itemtype="http://schema.org/GeoCoordinates">
Matija Obreza's avatar
Matija Obreza committed
56
		 <h3><spring:message code="accession.collecting.site" /></h3>
57
	        <div id="map" class="map-container"></div>
Matija Obreza's avatar
Matija Obreza committed
58 59 60
	        
	        <table class="map-data">  
	        <tr>
61
	            <td><spring:message code="filter.latitude" />:</td>
Matija Obreza's avatar
Matija Obreza committed
62 63
	            <td><c:out value="${accessionGeo.latitude}" /></td>
	          </tr><tr>
64
	            <td><spring:message code="filter.longitude" />:</td>
Matija Obreza's avatar
Matija Obreza committed
65 66 67 68 69 70 71 72 73 74 75
	            <td><c:out value="${accessionGeo.longitude}" /></td>
	          </tr><tr>
	            <td><spring:message code="accession.elevation" />:</td>
	            <td><c:out value="${accessionGeo.elevation}" /></td>
	          </tr>
	         </table>
	      </div>
		</c:if>
	</div>
	
	<table class="accessions crop-details">
Matija Obreza's avatar
Matija Obreza committed
76 77 78
		<tbody>
			<tr>
				<td><spring:message code="accession.holdingInstitute" /></td>
79
				<td><a property="dwc:instituteId" href="<c:url value="/wiews/${accession.instituteCode}" />"> <c:out value="${accession.institute.fullName}" />
Matija Obreza's avatar
Matija Obreza committed
80
				</a></td>
Matija Obreza's avatar
Matija Obreza committed
81 82 83
			</tr>
			<tr>
				<td><spring:message code="accession.holdingCountry" /></td>
84
				<td><a href="<c:url value="/geo/${accession.institute.country.code3}" />"><c:out value="${accession.institute.country.getName(pageContext.response.locale)}" /></a></td>
Matija Obreza's avatar
Matija Obreza committed
85 86 87 88 89
			</tr>
			<tr>
				<td><spring:message code="accession.accessionName" /></td>
				<td><c:out value="${accession.accessionName}" /></td>
			</tr>
90 91 92 93 94 95
			<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
96

Matija Obreza's avatar
Matija Obreza committed
97
			<c:if test="${crops ne null}">
98 99
				<tr>
					<td><spring:message code="accession.crop" /></td>
100 101
					<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
102
						</c:forEach></td>
103 104
				</tr>
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
105

Matija Obreza's avatar
Matija Obreza committed
106 107 108
			<c:if test="${accession.countryOfOrigin ne null}">
				<tr>
					<td><spring:message code="accession.origin" /></td>
109
					<td><img src="<c:url value="${cdnFlagsUrl}" />/${accession.origin.toUpperCase()}.png" /> <a href="<c:url value="/geo/${accession.origin}" />"> <c:out value="${accession.countryOfOrigin.getName(pageContext.response.locale)}" />
Matija Obreza's avatar
Matija Obreza committed
110
					</a></td>
Matija Obreza's avatar
Matija Obreza committed
111 112
				</tr>
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
113

Matija Obreza's avatar
Matija Obreza committed
114 115
			<tr>
				<td><spring:message code="taxonomy.genus" /></td>
Matija Obreza's avatar
Matija Obreza committed
116
				<td property="dwc:genus"><a href="<c:url value="/acn/t/${accession.taxonomy.genus}" />"><c:out value="${accession.taxonomy.genus}" /></a></td>
Matija Obreza's avatar
Matija Obreza committed
117 118 119
			</tr>
			<tr>
				<td><spring:message code="taxonomy.species" /></td>
Matija Obreza's avatar
Matija Obreza committed
120 121
				<td><a href="<c:url value="/acn/t/${accession.taxonomy.genus}/${accession.taxonomy.species}" />"><c:out value="${accession.taxonomy.genus} ${accession.taxonomy.species}" /></a>
					<br />
122
					<a href="<c:url value="/wiews/${accession.institute.code}/t/${accession.taxonomy.genus}/${accession.taxonomy.species}" />"><spring:message code="accession.taxonomy-at-institute" arguments="${accession.taxonomy.genus} ${accession.taxonomy.species}|||${accession.institute.code}" argumentSeparator="|||" /></a>
Matija Obreza's avatar
Matija Obreza committed
123
				</td>
Matija Obreza's avatar
Matija Obreza committed
124 125 126
			</tr>
			<tr>
				<td><spring:message code="taxonomy.taxonName" /></td>
Matija Obreza's avatar
Matija Obreza committed
127
				<td><c:out value="${accession.taxonomy.taxonName}" /></td>
Matija Obreza's avatar
Matija Obreza committed
128
			</tr>
129

130 131
			<tr>
				<td><spring:message code="accession.sampleStatus" /></td>
132
				<td property="germplasm:biologicalStatus"><spring:message code="accession.sampleStatus.${accession.sampleStatus}" /></td>
133 134 135 136 137 138 139 140 141
			</tr>

			<tr>
				<td><spring:message code="accession.storage" /></td>
				<td><c:forEach items="${accession.storage.split('[;,]')}" var="storage">
					<div><spring:message code="accession.storage.${storage}" /></div>
				</c:forEach></td>
			</tr>

142 143 144 145 146
			<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
147
			<tr>
Matija Obreza's avatar
Matija Obreza committed
148
				<td><spring:message code="accession.otherNames" /></td>
149 150 151 152 153
				<td>
				<c:forEach items="${accessionAliases}" var="accessionAlias">
					<div>
						<c:out value="${accessionAlias.name}" />
						<c:if test="${accessionAlias.instCode != ''}">
154
							<a href="<c:url value="/wiews/${accessionAlias.instCode}" />">
155 156 157
							${accessionAlias.instCode}
							</a>
						</c:if>
158 159 160
						<c:if test="${accessionAlias.usedBy != ''}">
							${accessionAlias.usedBy}
						</c:if>
161 162 163 164 165 166 167
						<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
168
			</tr>
Matija Obreza's avatar
Matija Obreza committed
169
			
170 171 172 173 174 175 176
			<tr>
				<td><spring:message code="accession.duplSite" /></td>
				<td><c:forEach items="${accession.duplSite.split('[;,]')}" var="duplSite">
					<div><spring:message code="${duplSite}" /></div>
				</c:forEach></td>
			</tr>
			
Matija Obreza's avatar
Updates  
Matija Obreza committed
177 178 179 180 181 182 183 184 185 186 187 188 189 190

			<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>
Matija Obreza's avatar
Matija Obreza committed
191
					<td class="title" colspan="2">
192 193
						<h4><spring:message code="accession.collecting" /></h4>
					</td>
Matija Obreza's avatar
Updates  
Matija Obreza committed
194 195
				</tr>
				<tr>
196 197
					<td><spring:message code="accession.collecting.institute" /></td>
					<td>${accessionCollect.collCode}</td>
Matija Obreza's avatar
Updates  
Matija Obreza committed
198
				</tr>
199
				<c:if test="${accessionCollect.collName ne null}">
Matija Obreza's avatar
Updates  
Matija Obreza committed
200 201
				<tr>
					<td><spring:message code="accession.collecting.institute" /></td>
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
					<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
217 218 219
				</tr>
				<tr>
					<td><spring:message code="accession.collecting.site" /></td>
220 221 222 223
					<td>${accessionCollect.collSite}</td>
				</tr>
				<tr>
					<td><spring:message code="accession.collecting.source" /></td>
224
					<td><spring:message code="accession.collectingSource.${accessionCollect.collSrc}" /></td>
Matija Obreza's avatar
Updates  
Matija Obreza committed
225 226 227 228
				</tr>
			</c:if>

			<c:if test="${accessionBreeding ne null}">
229
				<tr>
Matija Obreza's avatar
Matija Obreza committed
230
					<td class="title" colspan="2">
231 232 233
						<h4><spring:message code="accession.breeding" /></h4>
					</td>
				</tr>
Matija Obreza's avatar
Updates  
Matija Obreza committed
234 235 236 237 238 239 240 241 242 243 244
				<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>


245
			<c:if test="${accessionGeo ne null}">
246
				<tr>
Matija Obreza's avatar
Matija Obreza committed
247
					<td class="title" colspan="2">
248 249 250 251 252 253 254 255 256
						<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>
257
				<c:if test="${accessionGeo.latitude ne null}">
Matija Obreza's avatar
Updates  
Matija Obreza committed
258 259
				<tr>
					<td><spring:message code="accession.geolocation" /></td>
260
					<td>${accessionGeo.latitude}, ${accessionGeo.longitude}</td>
Matija Obreza's avatar
Updates  
Matija Obreza committed
261
				</tr>
Matija Obreza's avatar
Matija Obreza committed
262 263 264 265 266 267 268
				</c:if>
				<c:if test="${accessionGeo.elevation ne null}">
				<tr>
					<td><spring:message code="accession.elevation" /></td>
					<td>${accessionGeo.elevation}<span class="uom">m</span></td>
				</tr>
				</c:if>
269 270 271 272 273 274 275 276 277 278 279 280 281 282
				<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>
				<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>
Matija Obreza's avatar
Updates  
Matija Obreza committed
283 284
			</c:if>

Matija Obreza's avatar
Matija Obreza committed
285

286
			<c:if test="${svalbardData ne null}">
Matija Obreza's avatar
Matija Obreza committed
287
				<tr>
Matija Obreza's avatar
Matija Obreza committed
288
					<td class="title" colspan="2">
Matija Obreza's avatar
Matija Obreza committed
289
						<h4><spring:message code="accession.svalbard-data" /></h4>
Matija Obreza's avatar
Matija Obreza committed
290 291 292
					</td>
				</tr>
				<tr>
Matija Obreza's avatar
Matija Obreza committed
293
					<td><spring:message code="accession.svalbard-data.taxonomy" /></td>
294
					<td>${svalbardData.taxonomy}</td>
Matija Obreza's avatar
Matija Obreza committed
295 296 297
				</tr>

				<tr>
Matija Obreza's avatar
Matija Obreza committed
298
					<td><spring:message code="accession.svalbard-data.depositDate" /></td>
299
					<td>${svalbardData.depositDate}</td>
Matija Obreza's avatar
Matija Obreza committed
300 301
				</tr>
				<tr>
Matija Obreza's avatar
Matija Obreza committed
302
					<td><spring:message code="accession.svalbard-data.boxNumber" /></td>
303
					<td>${svalbardData.boxNumber}</td>
Matija Obreza's avatar
Matija Obreza committed
304 305
				</tr>
				<tr>
Matija Obreza's avatar
Matija Obreza committed
306
					<td><spring:message code="accession.svalbard-data.quantity" /></td>
307
					<td>${svalbardData.quantity}</td>
Matija Obreza's avatar
Matija Obreza committed
308 309 310 311 312
				</tr>

			</c:if>


Matija Obreza's avatar
Matija Obreza committed
313 314
		</tbody>
	</table>
Matija Obreza's avatar
Matija Obreza committed
315

Matija Obreza's avatar
Updates  
Matija Obreza committed
316

Matija Obreza's avatar
Matija Obreza committed
317
	<c:if test="${methods.size() gt 0}">
318
		<h4>
Matija Obreza's avatar
Matija Obreza committed
319
			<spring:message code="accession.methods" />
320
		</h4>
Matija Obreza's avatar
Matija Obreza committed
321
		<table class="accessions crop-details">
Matija Obreza's avatar
Matija Obreza committed
322 323
			<tbody>
				<c:forEach items="${methods}" var="method" varStatus="status">
Matija Obreza's avatar
Matija Obreza committed
324
					<tr class="targeted" id="method${method.id}">
Matija Obreza's avatar
Matija Obreza committed
325 326 327
						<td><c:out value="${method.parameter.title}" /></td>
						<td><c:forEach items="${methodValues[method.id]}" var="val">
								<div>
328
									<c:out value="${method.decode(val.value)}" />
Matija Obreza's avatar
Updates  
Matija Obreza committed
329
									<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
330 331
								</div>
							</c:forEach></td>
332
						<td class="notimportant"><c:out value="${method.method}" /></td>
Matija Obreza's avatar
Matija Obreza committed
333 334 335 336 337 338 339
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</c:if>

	<c:if test="${metadatas.size() gt 0}">
340
		<h4>
Matija Obreza's avatar
Matija Obreza committed
341
			<spring:message code="accession.metadatas" />
342
		</h4>
Matija Obreza's avatar
Matija Obreza committed
343
		<ul class="funny-list">
Matija Obreza's avatar
Matija Obreza committed
344 345 346 347 348 349
			<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
350
						<c:out value="${metadata.instituteCode}" />
Matija Obreza's avatar
Matija Obreza committed
351 352 353 354 355 356
					</div>
					<div class="pull-right">
						<c:out value="${metadata.description}" />
					</div>
				</li>
			</c:forEach>
Matija Obreza's avatar
Matija Obreza committed
357
		</ul>
Matija Obreza's avatar
Matija Obreza committed
358
	</c:if>
Matija Obreza's avatar
Matija Obreza committed
359 360 361 362 363 364 365
	
	
	
	<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>
366 367

	<content tag="javascript">
368 369 370
	<c:if test="${accessionGeo ne null and accessionGeo.latitude ne null}">
		<script type="text/javascript">
				jQuery(document).ready(function() {
Matija Obreza's avatar
Matija Obreza committed
371
					var map = L.map('map').setView([${accessionGeo.latitude}, ${accessionGeo.longitude}], 2);
372 373 374 375 376 377 378 379 380 381
					L.tileLayer('https://otile{s}-s.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.png', {
					    attribution: "MapQuest",
					    styleId: 22677,
					    subdomains: ['1','2','3','4'],
					    opacity: 0.6
					}).addTo(map);
					var marker = L.marker([${accessionGeo.latitude}, ${accessionGeo.longitude}]).addTo(map);
				});
		</script>
	</c:if>
Matija Obreza's avatar
Matija Obreza committed
382

383
	<script type="text/javascript">
Matija Obreza's avatar
Matija Obreza committed
384
		<%@include file="/WEB-INF/jsp/wiews/ga.jsp"%>
Matija Obreza's avatar
Matija Obreza committed
385
		_pageDim = { institute: '${accession.instituteCode}', genus: '${accession.taxonomy.genus}' };
Matija Obreza's avatar
Matija Obreza committed
386
	</script>
387
	</content>
Matija Obreza's avatar
Matija Obreza committed
388 389
</body>
</html>