Commit 332422ee authored by Matija Obreza's avatar Matija Obreza
Browse files

i18n page titles

parent a9e1596d
......@@ -89,6 +89,8 @@ menu.terms=Terms and Conditions of Use
menu.copying=Copyright policy
menu.privacy=Privacy policy
page.home.title=Genesys Sandbox
user.pulldown.logout=Logout
user.pulldown.profile=View profile
user.create-new-account=Create an account
......@@ -160,3 +162,12 @@ selection.add-many.accessionIds=List accession IDs as used in Genesys separated
filter.taxonomy=Taxonomy
filter.crop=Crop
search.page.title=Full-text Search
search.no-results=No matches found for your query.
admin.page.title=Genesys 2 Administration
metadata.page.title=Datasets
metadata.page.view.title=Dataset details
page.login=Login
......@@ -38,7 +38,7 @@
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="showSql" value="true" />
<property name="showSql" value="${db.showSql}" />
<property name="generateDdl" value="false" />
</bean>
</property>
......
......@@ -24,6 +24,7 @@ db.url=jdbc:mysql://localhost/pgrsys_genesys?useUnicode=true&characterEncoding=U
db.driverClassName = com.mysql.jdbc.Driver
db.username = root
db.password =
db.showSql=true
c3p0.acquireIncrement=1
c3p0.minPoolSize=5
......
......@@ -5,7 +5,7 @@
<html>
<head>
<title><spring:message code="sample.message.index.title" /></title>
<title><spring:message code="admin.page.title" /></title>
</head>
<body>
......
......@@ -5,7 +5,7 @@
<html>
<head>
<title><spring:message code="sample.message.index.title" /></title>
<title><spring:message code="page.home.title" /></title>
</head>
<body>
......
......@@ -4,7 +4,7 @@
<html>
<head>
<title><spring:message code="sample.message.index.title"/></title>
<title><spring:message code="page.login"/></title>
</head>
<body>
<c:if test="${param['error'] ne null}">
......
......@@ -4,7 +4,7 @@
<html>
<head>
<title><spring:message code="sample.message.index.title" /></title>
<title><spring:message code="metadata.page.title" /></title>
</head>
<body>
......
......@@ -4,7 +4,7 @@
<html>
<head>
<title><spring:message code="sample.message.index.title" /></title>
<title><spring:message code="metadata.page.view.title" /></title>
</head>
<body>
<h3>
......
......@@ -5,7 +5,7 @@
<html>
<head>
<title><spring:message code="sample.message.index.title" /></title>
<title><spring:message code="search.page.title" /></title>
</head>
<body>
<form class="form-horizontal" method="get" action="<c:url value="/search" />">
......@@ -13,7 +13,7 @@
</form>
<c:if test="${searchResults.totalElements eq 0}">
<div class="alert">No results!</div>
<div class="alert"><spring:message code="search.no-results" /></div>
</c:if>
<c:if test="${searchResults ne null and searchResults.totalElements gt 0}">
......@@ -27,34 +27,40 @@
<ul class="funny-list">
<c:forEach items="${searchResults.content}" var="searchResult" varStatus="status">
<li><small>${searchResult.getClass().simpleName} <b><fmt:formatNumber value="${status.count + (searchResults.number)*searchResults.size}" /></b>.</small>
<c:if test="${searchResult.getClass().simpleName eq 'Taxonomy'}">
<c:set value="${searchResult.getClass().simpleName}" var="clazz" />
<c:if test="${clazz.contains('_$$_javassist_')}">
<c:set var="clazz" value="${clazz.substring(0, clazz.indexOf('_$$_javassist'))}" />
</c:if>
<li><small>${clazz} <b><fmt:formatNumber value="${status.count + (searchResults.number)*searchResults.size}" /></b>.</small>
<c:if test="${clazz eq 'Taxonomy'}">
<a href="<c:url value="/acn/t/${searchResult.genus}/${searchResult.species}" />"><c:out value="${searchResult.taxonName}" /></a>
</c:if>
<c:if test="${searchResult.getClass().simpleName eq 'Accession'}">
<c:if test="${clazz eq 'Accession'}">
<a href="<c:url value="/acn/id/${searchResult.id}" />">${searchResult.accessionName}</a>
</c:if>
<c:if test="${searchResult.getClass().simpleName eq 'Crop'}">
<c:if test="${clazz eq 'Crop'}">
<a href="<c:url value="/c/${searchResult.shortName}/data" />">${searchResult.name}</a>
</c:if>
<c:if test="${searchResult.getClass().simpleName eq 'FaoInstitute'}">
<c:if test="${clazz eq 'FaoInstitute'}">
<a href="<c:url value="/wiews/${searchResult.code.toLowerCase()}" />">${searchResult.fullName}</a>
${searchResult.code} ${searchResult.country.name}
</c:if>
<c:if test="${searchResult.getClass().simpleName eq 'Metadata'}">
<c:if test="${clazz eq 'Metadata'}">
<a href="<c:url value="/data/view/${searchResult.id}" />">${searchResult.title}</a>
</c:if>
<c:if test="${searchResult.getClass().simpleName eq 'ActivityPost'}">
<c:if test="${clazz eq 'ActivityPost'}">
${searchResult.title}
</c:if>
<c:if test="${searchResult.getClass().simpleName eq 'Country'}">
<c:if test="${clazz eq 'Country'}">
<a href="<c:url value="/geo/${searchResult.code3.toLowerCase()}" />">${searchResult.name}</a>
</c:if>
<c:if test="${searchResult.getClass().simpleName eq 'Article'}">
<c:if test="${clazz eq 'Article'}">
<a href="<c:url value="/content/${searchResult.slug}" />">${searchResult.title}</a>
</c:if>
</li>
<c:remove var="clazz" />
</c:forEach>
</ul>
</c:if>
......
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