view.jsp 3.7 KB
Newer Older
1
2
3
4
5
6
<!DOCTYPE html>

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

<html>
<head>
Matija Obreza's avatar
Matija Obreza committed
7
<title><spring:message code="metadata.page.view.title" /></title>
8
9
</head>
<body>
Matija Obreza's avatar
Styling    
Matija Obreza committed
10
	<h1>
Matija Obreza's avatar
Matija Obreza committed
11
		<c:out value="${metadata.title}" />
Matija Obreza's avatar
Styling    
Matija Obreza committed
12
	</h1>
13

Matija Obreza's avatar
Styling    
Matija Obreza committed
14
15
16
	<c:if test="${page eq 1}">
		<table>
			<thead>
17
				<tr>
Matija Obreza's avatar
Styling    
Matija Obreza committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
					<td><spring:message code="ce.trait" /></td>
					<td><spring:message code="ce.method" /></td>
					<td><spring:message code="unit-of-measure" /></td>
					<td><spring:message code="method.fieldName" /></td>
			</thead>
			<tbody>
				<c:forEach items="${methods}" var="method">
					<tr>
						<td><a href="<c:url value="/descriptors/${method.parameter.id}" />"><c:out value="${method.parameter.title}" /></a></td>
						<td><a href="<c:url value="/descriptors/${method.parameter.id}/${method.id}" />"><c:out value="${method.method}" /></a></td>
						<td><c:out value="${method.unit}" /></td>
						<td><c:out value="${method.fieldName}" /></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		<p>
			<c:out value="${metadata.description}" />
		</p>
		<p>
			<c:out value="${metadata.location}" />
		</p>
		<p>
			<c:out value="${metadata.citation}" />
		</p>
		<p>
			<c:out value="${metadata.SDate}" />
			<c:out value="${metadata.EDate}" />
		</p>
		<div>
			<c:out value="${metadata.description}" escapeXml="false" />
		</div>
50
51


Matija Obreza's avatar
Styling    
Matija Obreza committed
52
53
54
		<h3>Observations</h3>
	</c:if>

55
	<div class="nav-header">
Matija Obreza's avatar
Matija Obreza committed
56
		<spring:message code="paged.totalElements" arguments="${pagedData.totalElements}" />
Matija Obreza's avatar
Matija Obreza committed
57
		<br />
Matija Obreza's avatar
Matija Obreza committed
58
59
		<spring:message code="paged.pageOfPages" arguments="${pagedData.number+1},${pagedData.totalPages}" />
		<a class="${pagedData.number eq 0 ? 'disabled' :''}" href="?page=${pagedData.number eq 0 ? 1 : pagedData.number}">⇇ Previous</a> <a href="?page=${pagedData.number + 2}">Next ⇉</a>
60
61
	</div>

Matija Obreza's avatar
Matija Obreza committed
62

Matija Obreza's avatar
Matija Obreza committed
63
	<table class="accessions">
64
65
		<thead>
			<tr>
Matija Obreza's avatar
Matija Obreza committed
66
				<td class="idx-col"></td>
Matija Obreza's avatar
Matija Obreza committed
67
				<c:if test="${selection ne null}">
Matija Obreza's avatar
Styling    
Matija Obreza committed
68
					<td />
Matija Obreza's avatar
Matija Obreza committed
69
				</c:if>
70
				<td><spring:message code="accession.accessionName" /></td>
Matija Obreza's avatar
Styling    
Matija Obreza committed
71
72
73
74
				<%-- 		<td><spring:message code="accession.origin" /></td>
		 --%>
				<td><spring:message code="accession.taxonomy" /></td>
				<%-- 			<td><spring:message code="accession.holdingInstitute" /></td>
75
				<td><spring:message code="accession.holdingCountry" /></td>
Matija Obreza's avatar
Styling    
Matija Obreza committed
76
77
78
79
80
81
82
83
	 --%>
				<c:forEach items="${methods}" var="method">
					<td><c:out value="${method.fieldName}" /> <c:if test="${method.unit ne ''}">[<c:out value="${method.unit}" />]</c:if></td>
				</c:forEach>



			</tr>
84
85
86
		</thead>
		<tbody>
			<c:forEach items="${accessions.content}" var="accession" varStatus="status">
Matija Obreza's avatar
Matija Obreza committed
87
				<tr class="acn ${status.count % 2 == 0 ? 'even' : 'odd'}">
Matija Obreza's avatar
Matija Obreza committed
88
					<td class="idx-col">${status.count + pagedData.size * pagedData.number}</td>
Matija Obreza's avatar
Matija Obreza committed
89
					<c:if test="${selection ne null}">
Matija Obreza's avatar
Styling    
Matija Obreza committed
90
						<td class="sel ${selection.containsId(accession.id) ? 'picked' : ''}" x-aid="${accession.id}"></td>
Matija Obreza's avatar
Matija Obreza committed
91
					</c:if>
92
					<td><a href="<c:url value="/acn/id/${accession.id}" />"><b><c:out value="${accession.accessionName}" /></b></a></td>
Matija Obreza's avatar
Styling    
Matija Obreza committed
93
94
95
96
					<%-- 		<td><a href="<c:url value="/geo/${accession.origin.toLowerCase()}" />"><c:out value="${accession.countryOfOrigin.name}" /></a></td>
			 --%>
					<td><c:out value="${accession.taxonomy.taxonName}" /></td>
					<%-- 	<td><a href="<c:url value="/wiews/${accession.institute.code.toLowerCase()}" />"><c:out value="${accession.institute.code}" /></a></td>
97
					<td><a href="<c:url value="/geo/${accession.institute.country.code3.toLowerCase()}" />"><c:out value="${accession.institute.country.name}" /></a></td>
98
				 --%>
Matija Obreza's avatar
Styling    
Matija Obreza committed
99
100
101
102
103
104

					<c:set value="${accessionMethods[accession.id]}" var="methodValues" />
					<c:forEach items="${methods}" var="method">
						<td><c:out value="${method.decode(methodValues[method.id])}" /></td>
					</c:forEach>
				</tr>
105
106
107
108
109
110
			</c:forEach>
		</tbody>
	</table>

</body>
</html>