institute.tag 1.14 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
<%@ tag description="Display FAO institute data" pageEncoding="UTF-8"%>
<%@ tag body-content="empty"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ attribute name="institute" required="true"
	type="org.genesys2.server.model.impl.FaoInstitute"%>

<div class="genesys-mini genesys-institute">
	<div class="code">
		<a href="<c:url value="/wiews/${institute.code}" />"><c:out
				value="${institute.code}" /></a>
	</div>
	<div class="fullName">
		<c:out value="${institute.fullName}" />
	</div>
	<div class="acronym">
		<c:out value="${institute.acronym}" />
	</div>
	<div class="accessionCount">
		<c:choose>
			<c:when test="${institute.accessionCount gt 0}">
				<spring:message code="faoInstitutes.stat.accessionCount" />
				<a href="<c:url value="/wiews/${institute.code}/data" />"><fmt:formatNumber value="${institute.accessionCount}" /></a>
			</c:when>
			<c:otherwise>
			
			</c:otherwise>
		</c:choose>
	</div>
</div>