method.jsp 1.93 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>

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

<html>
<head>
<title><spring:message code="metadata.page.title" /></title>
</head>
<body>
	<h1>
		<c:out value="${trait.title}" />
	</h1>
13
14
15
	<div>
		<spring:message code="filter.crop" />: <b><a href="<c:url value="/c/${trait.crop.shortName}/descriptors" />">${trait.crop.getName(pageContext.response.locale)}</a></b>
	</div>
Matija Obreza's avatar
Matija Obreza committed
16
17
18
19
20
21
22
23
24
25
	<table>
		<tbody>
			<tr>
				<td><a href="<c:url value="/descriptors/${trait.id}" />"><c:out value="${method.parameter.title}" /></a></td>
				<td><a href="<c:url value="/descriptors/${trait.id}/${method.id}" />"><c:out value="${method.method}" /></a></td>
				<td><c:out value="${method.fieldName}" /></td>
				<td><c:out value="${method.unit}" /></td>
			</tr>
		</tbody>
	</table>
26
27
28
29
30
31
32
	
	<c:if test="${method.coded}">
		<h3><spring:message code="method.coding-table" /></h3>
		<ul class="funny-list">
		<c:forEach items="${codeMap.keySet()}" var="key" varStatus="status">
			<li class="${status.count % 2 == 0 ? 'even' : 'odd'}">
				<span class="method-code"><c:out value="${key}" /></span>
Matija Obreza's avatar
Matija Obreza committed
33
				<a title="<spring:message code="view.accessions" />" href="<c:url value="/explore"><c:param name="crop" value="${trait.crop.shortName}" /><c:param name="filter">{"gm:${method.id}":["${key}"]}</c:param></c:url>">
34
35
36
37
38
39
40
					<c:out value="${codeMap[key]}" />
				</a>
				count=${codeStatistics[key]}
			</li>
		</c:forEach>
		</ul>
	</c:if>
Matija Obreza's avatar
Matija Obreza committed
41
42

	<h3><spring:message code="accession.metadatas" /></h3>
Matija Obreza's avatar
Matija Obreza committed
43

Matija Obreza's avatar
Matija Obreza committed
44
	<ul class="funny-list">
Matija Obreza's avatar
Matija Obreza committed
45
		<c:forEach items="${metadatas}" var="metadata" varStatus="status">
46
47
			<li class="clearfix ${status.count % 2 == 0 ? 'even' : 'odd'}">
				<a class="show pull-left" href="/data/view/${metadata.id}"><c:out value="${metadata.title}" /></a>
Matija Obreza's avatar
Matija Obreza committed
48
				<div class="pull-right">
Matija Obreza's avatar
Matija Obreza committed
49
					<c:out value="${metadata.instituteCode}" />
Matija Obreza's avatar
Matija Obreza committed
50
				</div></li>
Matija Obreza's avatar
Matija Obreza committed
51
52
		</c:forEach>
	</ul>
53
54
55
	<style>
		span.method-code { font-weight: bold; font-size: 110%; margin-left: 2em; float: right; } 
	</stlye>
Matija Obreza's avatar
Matija Obreza committed
56
57
</body>
</html>