details.jsp 3.61 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
Matija Obreza committed
14 15 16 17
	
	<div class="page-header">
		<a href="<c:url value="/sel/add/${accession.id}" />"><spring:message code="selection.add" arguments="${accession.accessionName}" /></a>
	</div>
Matija Obreza's avatar
Matija Obreza committed
18

Matija Obreza's avatar
Matija Obreza committed
19 20 21 22 23 24 25 26 27 28 29 30
	<c:if test="${accession.inTrust eq true}">
		<div class="alert"><spring:message code="accession.inTrust.true" /></div>
	</c:if>
	
	<c:if test="${accession.inSvalbard eq true}">
			<div class="alert"><spring:message code="accession.inSvalbard.true" /></div>
	</c:if>
	
	<c:if test="${accession.mlsStatus eq true}">
			<div class="alert"><spring:message code="accession.mlsStatus.true" /></div>
	</c:if>

Matija Obreza's avatar
Matija Obreza committed
31 32
	<table>
		<tbody>
Matija Obreza's avatar
Matija Obreza committed
33 34
		
			
Matija Obreza's avatar
Matija Obreza committed
35 36
			<tr>
				<td><spring:message code="accession.holdingInstitute" /></td>
Matija Obreza's avatar
Matija Obreza committed
37 38
				<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
39 40 41 42 43 44 45 46 47
			</tr>
			<tr>
				<td><spring:message code="accession.holdingCountry" /></td>
				<td><c:out value="${accession.institute.country.name}" /></td>
			</tr>
			<tr>
				<td><spring:message code="accession.accessionName" /></td>
				<td><c:out value="${accession.accessionName}" /></td>
			</tr>
Matija Obreza's avatar
Matija Obreza committed
48 49


Matija Obreza's avatar
Matija Obreza committed
50 51 52
			<c:if test="${accession.countryOfOrigin ne null}">
				<tr>
					<td><spring:message code="accession.origin" /></td>
Matija Obreza's avatar
Matija Obreza committed
53 54
					<td><img src="http://genesys-pgr.org/images/flags/${accession.origin.toUpperCase()}.png" /> <a href="<c:url value="/geo/${accession.origin.toLowerCase()}" />"> <c:out value="${accession.countryOfOrigin.name}" />
					</a></td>
Matija Obreza's avatar
Matija Obreza committed
55 56
				</tr>
			</c:if>
Matija Obreza's avatar
Matija Obreza committed
57

Matija Obreza's avatar
Matija Obreza committed
58 59 60 61 62 63 64 65 66 67 68 69 70
			<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>
				<td><c:out value="${accession.taxonomy.taxonName}" /></td>
			</tr>
			<tr>
Matija Obreza's avatar
Matija Obreza committed
71
				<td><spring:message code="accession.otherNames" /></td>
Matija Obreza's avatar
Matija Obreza committed
72
				<td><c:out value="${accessionNames.accNames}" /><br /> <c:out value="${accessionNames.otherIds}" /></td>
Matija Obreza's avatar
Matija Obreza committed
73
			</tr>
Matija Obreza's avatar
Matija Obreza committed
74 75
		</tbody>
	</table>
Matija Obreza's avatar
Matija Obreza committed
76 77 78 79 80 81 82 83 84 85 86 87

	<c:if test="${methods.size() gt 0}">
		<h2>
			<spring:message code="accession.methods" />
		</h2>
		<table>
			<tbody>
				<c:forEach items="${methods}" var="method" varStatus="status">
					<tr>
						<td><c:out value="${method.parameter.title}" /></td>
						<td><c:forEach items="${methodValues[method.id]}" var="val">
								<div>
88
									<c:out value="${method.decode(val.value)}" />
Matija Obreza's avatar
Matija Obreza committed
89
									<span class="uom"><c:out value="${method.unit}" /></span>
Matija Obreza's avatar
Matija Obreza committed
90
									<sup><a href="#metadata-${val.experimentId}"><c:out value="${val.experimentId}" /></a></sup>
Matija Obreza's avatar
Matija Obreza committed
91 92 93 94 95 96 97 98 99 100
								</div>
							</c:forEach></td>
						<td><c:out value="${method.method}" /></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</c:if>

	<c:if test="${metadatas.size() gt 0}">
Matija Obreza's avatar
Matija Obreza committed
101
		<h3>
Matija Obreza's avatar
Matija Obreza committed
102
			<spring:message code="accession.metadatas" />
Matija Obreza's avatar
Matija Obreza committed
103
		</h3>
Matija Obreza's avatar
Matija Obreza committed
104
		<c:forEach items="${metadatas}" var="metadata" varStatus="status">
Matija Obreza's avatar
Matija Obreza committed
105 106
			<div class="targeted" id="metadata-${metadata.id}">
				<sup><c:out value="${metadata.id}" /></sup>
Matija Obreza's avatar
Matija Obreza committed
107 108 109 110 111 112 113 114 115
				<a href="<c:url value="/data/view/${metadata.id}" />"><c:out value="${metadata.title}" /></a>
				<c:out value="${metadata.institute}" />
			</div>
			<div>
				<c:out value="${metadata.description}" />
			</div>
		</c:forEach>
	</c:if>

Matija Obreza's avatar
Matija Obreza committed
116 117
</body>
</html>