details.jsp 15.3 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>
Matija Obreza's avatar
Matija Obreza committed
11 12
		<span property="dwc:catalogNumber"><c:out value="${accession.accessionName}" /></span>
		<small property="dwc:institutionCode" datatype="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>
Matija Obreza's avatar
Matija Obreza committed
61
	            <td><spring:message code="filter.geo.latitude" />:</td>
Matija Obreza's avatar
Matija Obreza committed
62 63
	            <td><c:out value="${accessionGeo.latitude}" /></td>
	          </tr><tr>
Matija Obreza's avatar
Matija Obreza committed
64
	            <td><spring:message code="filter.geo.longitude" />:</td>
Matija Obreza's avatar
Matija Obreza committed
65 66 67 68 69 70 71 72 73 74
	            <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>
	
Matija Obreza's avatar
Matija Obreza committed
75 76 77
	<div class="crop-details">
			<div class="row">
				<div class="col-xs-4"><spring:message code="accession.holdingInstitute" /></div>
Matija Obreza's avatar
Matija Obreza committed
78
				<div class="col-xs-8"><a property="dwc:institutionCode" href="<c:url value="/wiews/${accession.instituteCode}" />"> <c:out value="${accession.institute.fullName}" />
Matija Obreza's avatar
Matija Obreza committed
79 80 81 82 83 84 85 86 87 88
				</a></div>
			</div>
			<div class="row">
				<div class="col-xs-4"><spring:message code="accession.holdingCountry" /></div>
				<div class="col-xs-8"><a href="<c:url value="/geo/${accession.institute.country.code3}" />"><c:out value="${accession.institute.country.getName(pageContext.response.locale)}" /></a></div>
			</div>
			<div class="row">
				<div class="col-xs-4"><spring:message code="accession.accessionName" /></div>
				<div class="col-xs-8"><c:out value="${accession.accessionName}" /></div>
			</div>
89
			<c:if test="${accession.uuid ne null}">
Matija Obreza's avatar
Matija Obreza committed
90 91 92 93
			<div class="row">
				<div class="col-xs-4"><spring:message code="accession.uuid" /></div>
				<div class="col-xs-8"><b><c:out value="${accession.uuid}" /></b></div>
			</div>
94
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
95

Matija Obreza's avatar
Matija Obreza committed
96
			<c:if test="${crops ne null}">
Matija Obreza's avatar
Matija Obreza committed
97 98 99
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.crop" /></div>
					<div class="col-xs-8"><c:forEach items="${crops}" var="crop">
100
							<a href="<c:url value="/c/${crop.shortName}" />"><c:out value="${crop.getName(pageContext.response.locale)}" /></a>
Matija Obreza's avatar
Matija Obreza committed
101 102
						</c:forEach></div>
				</div>
103
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
104

Matija Obreza's avatar
Matija Obreza committed
105
			<c:if test="${accession.countryOfOrigin ne null}">
Matija Obreza's avatar
Matija Obreza committed
106 107 108 109 110
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.origin" /></div>
					<div class="col-xs-8"><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)}" />
					</a></div>
				</div>
Matija Obreza's avatar
Matija Obreza committed
111
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
112

Matija Obreza's avatar
Matija Obreza committed
113 114 115 116 117 118 119
			<div class="row">
				<div class="col-xs-4"><spring:message code="taxonomy.genus" /></div>
				<div class="col-xs-8" property="dwc:genus"><a href="<c:url value="/acn/t/${accession.taxonomy.genus}" />"><c:out value="${accession.taxonomy.genus}" /></a></div>
			</div>
			<div class="row">
				<div class="col-xs-4"><spring:message code="taxonomy.species" /></div>
				<div class="col-xs-8"><a href="<c:url value="/acn/t/${accession.taxonomy.genus}/${accession.taxonomy.species}" />"><c:out value="${accession.taxonomy.genus} ${accession.taxonomy.species}" /></a>
Matija Obreza's avatar
Matija Obreza committed
120
					<br />
121
					<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
122 123 124 125 126 127
				</div>
			</div>
			<div class="row">
				<div class="col-xs-4"><spring:message code="taxonomy.taxonName" /></div>
				<div class="col-xs-8"><c:out value="${accession.taxonomy.taxonName}" /></div>
			</div>
128

Matija Obreza's avatar
Matija Obreza committed
129 130 131 132
			<div class="row">
				<div class="col-xs-4"><spring:message code="accession.sampleStatus" /></div>
				<div class="col-xs-8" property="germplasm:biologicalStatus"><spring:message code="accession.sampleStatus.${accession.sampleStatus}" /></div>
			</div>
133

Matija Obreza's avatar
Matija Obreza committed
134 135
			<div class="row">
				<div class="col-xs-4"><spring:message code="accession.storage" /></div>
136 137 138 139 140 141 142 143 144 145
				<div class="col-xs-8">
					<c:forEach items="${accession.storage.split('[;,]')}" var="storage">
						<div><spring:message code="accession.storage.${storage}" /></div>
					</c:forEach>
<%--				
					<c:forEach items="${accession.stoRage}" var="storage">
						<div><spring:message code="accession.storage.${storage}" /></div>
					</c:forEach>
--%>
				</div>
Matija Obreza's avatar
Matija Obreza committed
146
			</div>
147

Matija Obreza's avatar
Matija Obreza committed
148 149 150 151
			<div class="row">
				<div class="col-xs-4"><spring:message code="accession.availability" /></div>
				<div class="col-xs-8"><spring:message code="accession.availability.${accession.availability}" /></div>
			</div>
152
			
Matija Obreza's avatar
Matija Obreza committed
153 154 155
			<div class="row">
				<div class="col-xs-4"><spring:message code="accession.otherNames" /></div>
				<div class="col-xs-8">
156 157 158 159
				<c:forEach items="${accessionAliases}" var="accessionAlias">
					<div>
						<c:out value="${accessionAlias.name}" />
						<c:if test="${accessionAlias.instCode != ''}">
160
							<a href="<c:url value="/wiews/${accessionAlias.instCode}" />">
161 162 163
							${accessionAlias.instCode}
							</a>
						</c:if>
164 165 166
						<c:if test="${accessionAlias.usedBy != ''}">
							${accessionAlias.usedBy}
						</c:if>
167 168 169 170 171 172
						<c:if test="${accessionAlias.lang != ''}">
							<c:out value="${accessionAlias.lang}" />
						</c:if>
						<spring:message code="accession.aliasType.${accessionAlias.aliasType}" />
					</div>			
				</c:forEach>
Matija Obreza's avatar
Matija Obreza committed
173 174
				</div>
			</div>
Matija Obreza's avatar
Matija Obreza committed
175
			
Matija Obreza's avatar
Matija Obreza committed
176 177 178
			<div class="row">
				<div class="col-xs-4"><spring:message code="accession.duplSite" /></div>
				<div class="col-xs-8"><c:forEach items="${accession.duplSite.split('[;,]')}" var="duplSite">
179
					<div><spring:message code="${duplSite}" /></div>
Matija Obreza's avatar
Matija Obreza committed
180 181
				</c:forEach></div>
			</div>
182
			
Matija Obreza's avatar
Updates  
Matija Obreza committed
183 184

			<c:if test="${accessionExchange ne null}">
Matija Obreza's avatar
Matija Obreza committed
185 186 187 188 189 190 191 192
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.donor.institute" /></div>
					<div class="col-xs-8">${accessionExchange.donorInstitute}</div>
				</div>
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.donor.accessionNumber" /></div>
					<div class="col-xs-8">${accessionExchange.accNumbDonor}</div>
				</div>
Matija Obreza's avatar
Updates  
Matija Obreza committed
193 194 195
			</c:if>

			<c:if test="${accessionCollect ne null}">
Matija Obreza's avatar
Matija Obreza committed
196 197 198 199 200 201
				<h4><spring:message code="accession.collecting" /></h4>
				
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.collecting.institute" /></div>
					<div class="col-xs-8">${accessionCollect.collCode}</div>
				</div>
202
				<c:if test="${accessionCollect.collName ne null}">
Matija Obreza's avatar
Matija Obreza committed
203 204 205 206 207
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.collecting.institute" /></div>
					<div class="col-xs-8">${accessionCollect.collName}
					${accessionCollect.collInstAddress}</div>
				</div>
208
				</c:if>
Matija Obreza's avatar
Matija Obreza committed
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.collecting.mission" /></div>
					<div class="col-xs-8"><c:out value="${accessionCollect.collMissId}" /></div>
<%--				<div class="col-xs-8"><a href="<c:url value="/collectingmission"><c:param name="collMissId" value="${accessionCollect.collMissId}" /></c:url>"><c:out value="${accessionCollect.collMissId}" /></a></div> --%>
				</div>
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.collecting.date" /></div>
					<div class="col-xs-8">${accessionCollect.collDate}</div>
				</div>
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.collecting.number" /></div>
					<div class="col-xs-8">${accessionCollect.collNumb}</div>
				</div>
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.collecting.site" /></div>
					<div class="col-xs-8">${accessionCollect.collSite}</div>
				</div>
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.collecting.source" /></div>
					<div class="col-xs-8"><spring:message code="accession.collectingSource.${accessionCollect.collSrc}" /></div>
				</div>
Matija Obreza's avatar
Updates  
Matija Obreza committed
230 231 232
			</c:if>

			<c:if test="${accessionBreeding ne null}">
Matija Obreza's avatar
Matija Obreza committed
233 234 235 236 237 238 239 240 241 242
				<h4><spring:message code="accession.breeding" /></h4>

				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.breederCode" /></div>
					<div class="col-xs-8">${accessionBreeding.breederCode}</div>
				</div>
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.pedigree" /></div>
					<div class="col-xs-8">${accessionBreeding.pedigree}</div>
				</div>
Matija Obreza's avatar
Updates  
Matija Obreza committed
243 244 245
			</c:if>


246
			<c:if test="${accessionGeo ne null}">
Matija Obreza's avatar
Matija Obreza committed
247 248
				<h4><spring:message code="accession.geo" /></h4>

249
				<c:if test="${accessionCollect.collSite ne null}">
Matija Obreza's avatar
Matija Obreza committed
250 251 252 253
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.collecting.site" /></div>
					<div class="col-xs-8">${accessionCollect.collSite}</div>
				</div>
254
				</c:if>
255
				<c:if test="${accessionGeo.latitude ne null}">
Matija Obreza's avatar
Matija Obreza committed
256 257 258 259
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.geolocation" /></div>
					<div class="col-xs-8">${accessionGeo.latitude}, ${accessionGeo.longitude}</div>
				</div>
Matija Obreza's avatar
Matija Obreza committed
260 261
				</c:if>
				<c:if test="${accessionGeo.elevation ne null}">
Matija Obreza's avatar
Matija Obreza committed
262 263 264 265
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.elevation" /></div>
					<div class="col-xs-8">${accessionGeo.elevation}<span class="uom">m</span></div>
				</div>
Matija Obreza's avatar
Matija Obreza committed
266
				</c:if>
Matija Obreza's avatar
Matija Obreza committed
267 268 269 270 271 272 273 274
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.geo.datum" /></div>
					<div class="col-xs-8">${accessionGeo.datum}</div>
				</div>
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.geo.method" /></div>
					<div class="col-xs-8">${accessionGeo.method}</div>
				</div>
275
				<c:if test="${accessionGeo.uncertainty ne null}">
Matija Obreza's avatar
Matija Obreza committed
276 277 278 279
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.geo.uncertainty" /></div>
					<div class="col-xs-8">${accessionGeo.uncertainty}<span class="uom">m</span></div>
				</div>
280
				</c:if>
Matija Obreza's avatar
Updates  
Matija Obreza committed
281 282
			</c:if>

Matija Obreza's avatar
Matija Obreza committed
283

284
			<c:if test="${svalbardData ne null}">
Matija Obreza's avatar
Matija Obreza committed
285
				<h4><spring:message code="accession.svalbard-data" /></h4>
Matija Obreza's avatar
Matija Obreza committed
286

Matija Obreza's avatar
Matija Obreza committed
287 288 289 290
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.svalbard-data.taxonomy" /></div>
					<div class="col-xs-8">${svalbardData.taxonomy}</div>
				</div>
Matija Obreza's avatar
Matija Obreza committed
291

Matija Obreza's avatar
Matija Obreza committed
292 293 294 295 296 297 298 299 300 301 302 303
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.svalbard-data.depositDate" /></div>
					<div class="col-xs-8">${svalbardData.depositDate}</div>
				</div>
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.svalbard-data.boxNumber" /></div>
					<div class="col-xs-8">${svalbardData.boxNumber}</div>
				</div>
				<div class="row">
					<div class="col-xs-4"><spring:message code="accession.svalbard-data.quantity" /></div>
					<div class="col-xs-8">${svalbardData.quantity}</div>
				</div>
Matija Obreza's avatar
Matija Obreza committed
304

Matija Obreza's avatar
Matija Obreza committed
305
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
306

Matija Obreza's avatar
Matija Obreza committed
307 308 309 310 311 312 313 314 315 316 317
	
			<c:if test="${fn:length(accessionRemarks) gt 0}">		
				<h4><spring:message code="accession.remarks" /></h4>
			</c:if>
			<c:forEach items="${accessionRemarks}" var="accessionRemark">
				<div class="row">
					<div class="col-xs-4"><c:out value="${accessionRemark.fieldName}" /></div>
					<div class="col-xs-8"><c:out value="${accessionRemark.remark}" /></div>
				</div>
			</c:forEach>
	</div>
Matija Obreza's avatar
Matija Obreza committed
318

Matija Obreza's avatar
Updates  
Matija Obreza committed
319

Matija Obreza's avatar
Matija Obreza committed
320
	<c:if test="${methods.size() gt 0}">
Matija Obreza's avatar
Matija Obreza committed
321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338

		<div class="crop-details">
			<h4>
				<spring:message code="accession.methods" />
			</h4>
			<c:forEach items="${methods}" var="method" varStatus="status">
				<div class="row targeted" id="method${method.id}">
					<div class="col-xs-6 col-sm-4"><c:out value="${method.parameter.title}" /></div>
					<div class="col-xs-6 col-sm-4"><c:forEach items="${methodValues[method.id]}" var="val">
							<div>
								<c:out value="${method.decode(val.value)}" />
								<span class="uom"><c:out value="${method.unit}" /></span> <sup><a href="#metadata-${val.experimentId}"><c:out value="${val.experimentId}" /></a></sup>
							</div>
						</c:forEach></div>
					<div class="col-xs-12 col-sm-4"><c:out value="${method.method}" /></div>
				</div>
			</c:forEach>
		</div>
Matija Obreza's avatar
Matija Obreza committed
339 340 341
	</c:if>

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

	<content tag="javascript">
370 371 372
	<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
373
					var map = L.map('map').setView([${accessionGeo.latitude}, ${accessionGeo.longitude}], 2);
374 375 376 377 378 379 380 381 382 383
					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
384

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