Commit f89e2d72 authored by Matija Obreza's avatar Matija Obreza

Fixed display for selected columns in /explore

parent 5de135c9
......@@ -426,7 +426,7 @@
<%--<td><a href="<c:url value="/geo/${accession.institute.country.code3}" />"><c:out value="${accession.institute.country.name}" /></a></td>--%>
<c:forEach items="${selectedColumns}" var="col">
<c:choose>
<c:when test="${col eq 'scientificName'}">
<c:when test="${col eq 'taxonomy.sciName'}">
<td><span dir="ltr" class="sci-name"><c:out value="${accession.taxonomy.sciName}"/></span></td>
</c:when>
<c:when test="${col eq 'orgCty'}">
......@@ -435,18 +435,18 @@
<c:when test="${col eq 'sampStat'}">
<td class="notimportant"><spring:message code="accession.sampleStatus.${accession.sampStat}"/></td>
</c:when>
<c:when test="${col eq 'instCode'}">
<c:when test="${col eq 'institute.code'}">
<td class="notimportant"><a href="<c:url value="/wiews/${accession.institute.code}" />"><c:out
value="${accession.institute.code}"/></a></td>
</c:when>
<c:when test="${col eq 'genus'}">
<td class="notimportant"><c:out value="${accession.taxonomy.genus}"/></td>
<c:when test="${col eq 'taxonomy.genus'}">
<td class="notimportant"><span dir="ltr" class="sci-name"><c:out value="${accession.taxonomy.genus}"/></span></td>
</c:when>
<c:when test="${col eq 'species'}">
<td class="notimportant"><c:out value="${accession.taxonomy.species}"/></td>
<c:when test="${col eq 'taxonomy.species'}">
<td class="notimportant"><span dir="ltr" class="sci-name"><c:out value="${accession.taxonomy.species}"/></span></td>
</c:when>
<c:when test="${col eq 'subtaxa'}">
<td class="notimportant"><c:out value="${accession.taxonomy.subtaxa}"/></td>
<c:when test="${col eq 'taxonomy.subtaxa'}">
<td class="notimportant"><span dir="ltr" class="sci-name"><c:out value="${accession.taxonomy.subtaxa}"/></span></td>
</c:when>
<c:when test="${col eq 'crops'}">
<c:if test="${fn:length(accession.crops) == 0}">
......@@ -457,10 +457,6 @@
value="${crop.getName(pageContext.response.locale)}"
/></a></td>
</c:forEach>
<%--<td class="notimportant"><c:out value="${accession.accessionId.pdci.cropName}"/></td>--%>
</c:when>
<c:when test="${col eq 'latitudeAndLongitude'}">
<td class="notimportant" dir="ltr"><c:out value="${accession.geo.latitude}"/>, <c:out value=" ${accession.geo.longitude}"/></td>
</c:when>
<c:otherwise>
<c:set var="elVal" value="${accession}" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment