Commit 461ca300 authored by Matija Obreza's avatar Matija Obreza
Browse files

opensearch errors

parent 22651767
......@@ -16,14 +16,16 @@
<opensearch:Query role="request" searchTerms="<c:out value="${a}" />" startPage="<c:out value="${pagedData.number + 1} "/>" />
<c:if test="${error ne null}">
<div class="alert alert-warning">
<spring:message code="search.search-query-failed" arguments="${error.message}" />
</div>
<item>
<title>Error</title>
<description><spring:message code="search.search-query-failed" arguments="${error.message}" /></description>
</item>
</c:if>
<c:if test="${pagedData eq null}">
<div class="alert alert-warning">
<spring:message code="search.search-query-missing" />
</div>
<item>
<title>Error</title>
<description><spring:message code="search.search-query-missing" /></description>
</item>
</c:if>
<c:forEach items="${pagedData.content}" var="accession" varStatus="status">
......@@ -31,9 +33,12 @@
<title><c:out value="${accession.acceNumb}" /></title>
<link><c:url value="/acn/id/${accession.id}" /></link>
<description>
<![CDATA[
<b><c:out value="${accession.acceNumb}" /></b>
(<em><c:out value="${accession.taxonomy.sciName}" /></em>),
<spring:message code="accession.sampleStatus.${accession.sampStat}" />
<c:out value="${accession.taxonomy.sciName}" />
<c:out value="${accession.institute.code}" />
]]>
</description>
</item>
</c:forEach>
......
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