Commit e92e095a authored by Matija Obreza's avatar Matija Obreza
Browse files

"See also" section

parent dfaae0a9
......@@ -232,6 +232,18 @@ public class WiewsController extends BaseController {
model.addAttribute("page", page);
return "redirect:/explore";
}
@RequestMapping("/{wiewsCode}/data/map")
public String viewData(ModelMap model, @PathVariable(value = "wiewsCode") String wiewsCode) {
_logger.debug("Viewing map for institute " + wiewsCode);
final FaoInstitute faoInstitute = instituteService.getInstitute(wiewsCode);
if (faoInstitute == null) {
throw new ResourceNotFoundException();
}
model.addAttribute("filter", "{\"" + FilterConstants.INSTCODE + "\":[\"" + faoInstitute.getCode() + "\"]}");
return "redirect:/explore/map";
}
@RequestMapping("/{wiewsCode}/overview")
public String overview(HttpServletRequest request, @PathVariable(value = "wiewsCode") String wiewsCode) throws UnsupportedEncodingException {
......
......@@ -672,3 +672,10 @@ linkedin.share-this=Share on LinkedIn
welcome.read-more=Read more about Genesys
twitter.latest-on-twitter=Latest on Twitter
video.play-video=Play video
heading.general-info=General information
heading.about=About
heading.see-also=See also
see-also.map=Map of accession localities
see-also.overview=Overview of the collection
see-also.country=More about PGR conservation in {0}
......@@ -244,6 +244,14 @@
</div>
</div>
</form>
<div>
<h3><spring:message code="heading.see-also" /></h3>
<div><a href="<c:url value="/wiews/${faoInstitute.code}/data/map" />"><spring:message code="see-also.map" /></a></div>
<div><a href="<c:url value="/wiews/${faoInstitute.code}/overview" />"><spring:message code="see-also.overview" /></a></div>
<div><a href="<c:url value="/geo/${faoInstitute.country.code3}" />"><spring:message code="see-also.country" arguments="${faoInstitute.country.getName(pageContext.response.locale)}" /></a></div>
</div>
</c:if>
<content tag="javascript"> <c:if test="${faoInstitute.latitude ne null}">
......
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