details.jsp 8.86 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 41 42 43 44
	
	<c:if test="${not accession.availability}">
		<div class="alert alert-warning">
			<spring:message code="accession.not-available-for-distribution" />
		</div>
	</c:if>
Matija Obreza's avatar
Matija Obreza committed
45

Matija Obreza's avatar
Matija Obreza committed
46 47
	<table>
		<tbody>
Matija Obreza's avatar
Updates  
Matija Obreza committed
48 49


Matija Obreza's avatar
Matija Obreza committed
50 51
			<tr>
				<td><spring:message code="accession.holdingInstitute" /></td>
Matija Obreza's avatar
Matija Obreza committed
52 53
				<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
54 55 56
			</tr>
			<tr>
				<td><spring:message code="accession.holdingCountry" /></td>
Matija Obreza's avatar
Matija Obreza committed
57
				<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
58 59 60 61 62
			</tr>
			<tr>
				<td><spring:message code="accession.accessionName" /></td>
				<td><c:out value="${accession.accessionName}" /></td>
			</tr>
Matija Obreza's avatar
Matija Obreza committed
63

Matija Obreza's avatar
Matija Obreza committed
64
			<c:if test="${crops ne null}">
65 66
				<tr>
					<td><spring:message code="accession.crop" /></td>
67 68
					<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
69
						</c:forEach></td>
70 71
				</tr>
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
72

Matija Obreza's avatar
Matija Obreza committed
73 74 75
			<c:if test="${accession.countryOfOrigin ne null}">
				<tr>
					<td><spring:message code="accession.origin" /></td>
Matija Obreza's avatar
Matija Obreza committed
76
					<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
77
					</a></td>
Matija Obreza's avatar
Matija Obreza committed
78 79
				</tr>
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
80

Matija Obreza's avatar
Matija Obreza committed
81 82 83 84 85 86 87 88 89 90
			<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
91 92
				<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
93 94
			</tr>
			<tr>
Matija Obreza's avatar
Matija Obreza committed
95
				<td><spring:message code="accession.otherNames" /></td>
Matija Obreza's avatar
Matija Obreza committed
96
				<td><c:out value="${accessionNames.accNames}" /><br /> <c:out value="${accessionNames.otherIds}" /></td>
Matija Obreza's avatar
Matija Obreza committed
97
			</tr>
Matija Obreza's avatar
Matija Obreza committed
98 99 100 101 102
			
			<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
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147


			<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>
					<td><spring:message code="accession.collecting.date" /></td>
					<td>${accessionCollect.collectDate}</td>
				</tr>
				<tr>
					<td><spring:message code="accession.collecting.number" /></td>
					<td>${accessionCollect.collectorsNumb}</td>
				</tr>
				<tr>
					<td><spring:message code="accession.collecting.institute" /></td>
					<td>${accessionCollect.collectingInstitute}</td>
				</tr>
				<tr>
					<td><spring:message code="accession.collecting.site" /></td>
					<td>${accessionCollect.collectSite}</td>
				</tr>
			</c:if>

			<c:if test="${accessionBreeding ne null}">
				<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>


			<c:if test="${accessionEnvironment ne null}">
Matija Obreza's avatar
Matija Obreza committed
148
				<c:if test="${accessionEnvironment.latitude ne null}">
Matija Obreza's avatar
Updates  
Matija Obreza committed
149 150 151 152
				<tr>
					<td><spring:message code="accession.geolocation" /></td>
					<td>${accessionEnvironment.latitude}, ${accessionEnvironment.longitude}</td>
				</tr>
Matija Obreza's avatar
Matija Obreza committed
153 154
				</c:if>
				<c:if test="${accessionEnvironment.altitude ne null}">
Matija Obreza's avatar
Updates  
Matija Obreza committed
155 156 157 158
				<tr>
					<td><spring:message code="accession.altitude" /></td>
					<td>${accessionEnvironment.altitude}<span class="uom">m</span></td>
				</tr>
Matija Obreza's avatar
Matija Obreza committed
159 160 161 162
				</c:if>
				<c:if test="${accessionEnvironment.latitude ne null}">
				<tr>
					<td colspan="2">
163
						<h4><spring:message code="accession.collecting.site" /></h4>
Matija Obreza's avatar
Matija Obreza committed
164
						<div id="map" class="gis-map"><spring:message code="maps.loading-map" /></div>
Matija Obreza's avatar
Matija Obreza committed
165 166 167
					</td>
				</tr>
				</c:if>
Matija Obreza's avatar
Updates  
Matija Obreza committed
168 169
			</c:if>

Matija Obreza's avatar
Matija Obreza committed
170 171 172 173

			<c:if test="${accession.svalbardData ne null}">
				<tr>
					<td colspan="2">
Matija Obreza's avatar
Matija Obreza committed
174
						<h4><spring:message code="accession.svalbard-data" /></h4>
Matija Obreza's avatar
Matija Obreza committed
175 176 177
					</td>
				</tr>
				<tr>
Matija Obreza's avatar
Matija Obreza committed
178
					<td><spring:message code="accession.svalbard-data.taxonomy" /></td>
Matija Obreza's avatar
Matija Obreza committed
179 180 181 182
					<td>${accession.svalbardData.taxonomy}</td>
				</tr>

				<tr>
Matija Obreza's avatar
Matija Obreza committed
183
					<td><spring:message code="accession.svalbard-data.depositDate" /></td>
Matija Obreza's avatar
Matija Obreza committed
184 185 186
					<td>${accession.svalbardData.depositDate}</td>
				</tr>
				<tr>
Matija Obreza's avatar
Matija Obreza committed
187
					<td><spring:message code="accession.svalbard-data.boxNumber" /></td>
Matija Obreza's avatar
Matija Obreza committed
188 189 190
					<td>${accession.svalbardData.boxNumber}</td>
				</tr>
				<tr>
Matija Obreza's avatar
Matija Obreza committed
191
					<td><spring:message code="accession.svalbard-data.quantity" /></td>
Matija Obreza's avatar
Matija Obreza committed
192 193 194 195 196 197
					<td>${accession.svalbardData.quantity}</td>
				</tr>

			</c:if>


Matija Obreza's avatar
Matija Obreza committed
198 199
		</tbody>
	</table>
Matija Obreza's avatar
Matija Obreza committed
200

Matija Obreza's avatar
Updates  
Matija Obreza committed
201

Matija Obreza's avatar
Matija Obreza committed
202
	<c:if test="${methods.size() gt 0}">
203
		<h4>
Matija Obreza's avatar
Matija Obreza committed
204
			<spring:message code="accession.methods" />
205
		</h4>
Matija Obreza's avatar
Matija Obreza committed
206 207 208
		<table>
			<tbody>
				<c:forEach items="${methods}" var="method" varStatus="status">
Matija Obreza's avatar
Matija Obreza committed
209
					<tr class="targeted" id="method${method.id}">
Matija Obreza's avatar
Matija Obreza committed
210 211 212
						<td><c:out value="${method.parameter.title}" /></td>
						<td><c:forEach items="${methodValues[method.id]}" var="val">
								<div>
213
									<c:out value="${method.decode(val.value)}" />
Matija Obreza's avatar
Updates  
Matija Obreza committed
214
									<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
215 216
								</div>
							</c:forEach></td>
217
						<td class="notimportant"><c:out value="${method.method}" /></td>
Matija Obreza's avatar
Matija Obreza committed
218 219 220 221 222 223 224
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</c:if>

	<c:if test="${metadatas.size() gt 0}">
225
		<h4>
Matija Obreza's avatar
Matija Obreza committed
226
			<spring:message code="accession.metadatas" />
227
		</h4>
Matija Obreza's avatar
Matija Obreza committed
228
		<ul class="funny-list">
Matija Obreza's avatar
Matija Obreza committed
229 230 231 232 233 234 235 236 237 238 239 240 241
			<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">
						<c:out value="${metadata.institute}" />
					</div>
					<div class="pull-right">
						<c:out value="${metadata.description}" />
					</div>
				</li>
			</c:forEach>
Matija Obreza's avatar
Matija Obreza committed
242
		</ul>
Matija Obreza's avatar
Matija Obreza committed
243 244
	</c:if>

Matija Obreza's avatar
Matija Obreza committed
245 246
	<script type="text/javascript">
		<c:if test="${accessionEnvironment ne null and accessionEnvironment.latitude ne null}">
Matija Obreza's avatar
Matija Obreza committed
247 248 249
			jQuery(document).ready(function() {
				var accessionMap=GoogleMaps.map("${pageContext.response.locale.language}", $("#map"), { center: new GoogleMaps.LatLng(${accessionEnvironment.latitude}, ${accessionEnvironment.longitude}), markerTitle: "<spring:escapeBody javaScriptEscape="true">${accession.accessionName}, ${accession.instituteCode}</spring:escapeBody>" });
			});
Matija Obreza's avatar
Matija Obreza committed
250 251 252 253
		</c:if>

		_pageGaq = [];
		_pageGaq.push(['_setCustomVar', 1, 'Institute', '${accession.instituteCode}']);
254 255
		_pageGaq.push(['_setCustomVar', 2, 'Genus', '${accession.genus}']);
		<c:forEach items="${crops}" var="crop">_pageGaq.push(['_setCustomVar', 3, 'Crop', '${crop.shortName}']);
Matija Obreza's avatar
Matija Obreza committed
256 257
		</c:forEach>
	</script>
Matija Obreza's avatar
Matija Obreza committed
258 259
</body>
</html>