Commit 1add77b9 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

660: Harmonize and integrate translation codes and messages

Task-Url: https://mantisbt.tgradl.de/view.php?id=660
parent 237ed9ba
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="joda" uri="http://www.joda.org/joda/time/tags" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<c:choose>
<c:when test="${crawls!=null && fn:length(crawls)>0}">
......@@ -60,6 +61,6 @@
</div>
</c:when>
<c:otherwise>
~ No crawled data available
<s:message code="~eu.dariah.de.minfba.search.view.crawl.notfication.no_crawled_data" />
</c:otherwise>
</c:choose>
\ No newline at end of file
......@@ -6,8 +6,8 @@
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<ul class="breadcrumb">
<li class="active"><s:message code="~de.dariah.genericsearch.view.administration.title" /></li>
<li><a href="<s:url value="collections" />"><s:message code="~eu.dariah.de.minfba.search.view.datasources.title" /></a></li>
<li class="active"><s:message code="~eu.dariah.de.minfba.common.titles.administration" /></li>
<li><a href="<s:url value="collections" />"><s:message code="~eu.dariah.de.minfba.search.view.titles.collection_management" /></a></li>
<li class="active">${collectionName}</li>
</ul>
......@@ -19,7 +19,7 @@
${collectionName}
<small>
<c:if test="${_auth==null || _auth.auth==false}">
<span class="glyphicon glyphicon-lock" data-toggle="tooltip" data-placement="left" title="<s:message code="~de.dariah.common.view.notifications.limited_access" />"></span>
<span class="glyphicon glyphicon-lock" data-toggle="tooltip" data-placement="left" title="<s:message code="~eu.dariah.de.minfba.common.notification.limited_access" />"></span>
</c:if>
</small>
......@@ -28,19 +28,19 @@
<table class="details-table">
<tbody>
<tr>
<th>~ID</th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.common.id" /></th>
<td>${collection.id}</td>
</tr>
<tr>
<th>~Source</th>
<td><a title="<s:message code="~eu.dariah.de.minfba.search.view.datasources.show_in_CR" />" href="#" target='_blank'>${collection.linkUrl} <i class="fa fa-external-link"></i></a></td>
<th><s:message code="~eu.dariah.de.minfba.metamodel.common.source" /></th>
<td><a title="<s:message code="~eu.dariah.de.minfba.search.actions.collections.show_in_cr" />" href="#" target='_blank'>${collection.linkUrl} <i class="fa fa-external-link"></i></a></td>
</tr>
</tbody>
</table>
<div id="endpoint-table-container" class="row">
<div class="table-light-container col-sm-5">
<h4>~Datasources</h4>
<h4><s:message code="~eu.dariah.de.minfba.metamodel.collections" /></h4>
<table id="endpoint-table" class="table-light">
<tbody>
<c:forEach items="${datasources}" var="ds" varStatus="status">
......@@ -63,10 +63,10 @@
<c:forEach items="${datasources}" var="ds" varStatus="status">
<div id="table-details${ds.combinedId}" class="table-light-details<c:if test="${status.index!=0}"> hide</c:if>">
<h4>~Endpoint &amp; Schema Details</h4>
<h4><s:message code="~eu.dariah.de.minfba.search.view.titles.endpoint_schema_details" /></h4>
<table class="details-table">
<tbody>
<tr><th>~Url</th>
<tr><th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.url" /></th>
<td>
<span class="no-break-out">${ds.url}</span>
<c:if test="${ds.method=='OAI-PMH'}">
......@@ -74,12 +74,12 @@
</c:if>
</td>
</tr>
<tr><th>~Type</th><td>${ds.method}</td></tr>
<tr><th>~Schema</th><td class="no-break-out">${ds.schemaName}</td></tr>
<tr><th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.type" /></th><td>${ds.method}</td></tr>
<tr><th><s:message code="~eu.dariah.de.minfba.metamodel.schema" /></th><td class="no-break-out">${ds.schemaName}</td></tr>
<c:if test="${ds.method=='OAI-PMH'}">
<tr><th>~Set</th><td class="no-break-out">${ds.set}</td></tr>
<tr><th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.set" /></th><td class="no-break-out">${ds.set}</td></tr>
<c:if test="${ds.schemaState!='UNAVAILABLE'}">
<tr><th>~Prefix</th>
<tr><th><s:message code="~eu.dariah.de.minfba.search.metamodel_view.schema.oaipmh_prefix" /></th>
<td class="no-break-out">
<span class="oaipmh-metadata-prefix">${ds.metadataPrefix!=null && fn:length(ds.metadataPrefix) > 0 ? ds.metadataPrefix : "?"}</span>
<button onclick="editor.editPrefix('${ds.endpointId}','${ds.schemaId}','${ds.metadataPrefix}', '.oaipmh-metadata-prefix');" class="btn btn-link"><i class="fa fa-pencil-square-o"></i>Set prefix</button>
......@@ -87,42 +87,42 @@
</tr>
</c:if>
</c:if>
<tr><th>~Documents</th>
<tr><th><s:message code="~eu.dariah.de.minfba.search.metamodel_view.endpoint.document_count" /></th>
<td>
${s.docs}
<c:if test="${s.docs > 0}"><button onclick="editor.clearEndpointSchemaIndex('${ds.endpointId}','${ds.schemaId}');" class="btn btn-link"><i class="fa fa-trash"></i>Clear</button><br /></c:if>
<c:if test="${s.docs > 0}"><button onclick="editor.clearEndpointSchemaIndex('${ds.endpointId}','${ds.schemaId}');" class="btn btn-link"><i class="fa fa-trash"></i><s:message code="~eu.dariah.de.minfba.common.actions.clear" /></button><br /></c:if>
</td>
</tr>
<tr><th>~Crawl state</th>
<tr><th><s:message code="~eu.dariah.de.minfba.common.status" /></th>
<td class="crawl-state-container">
~loading...
<s:message code="~eu.dariah.de.minfba.common.status.loading"/>...
</td>
</tr>
</tbody>
</table>
<h4>~Online data</h4>
<h4><s:message code="~eu.dariah.de.minfba.search.view.titles.online_data" /></h4>
<c:choose>
<c:when test="${ds.actionable}">
<table class="details-table">
<tbody>
<tr>
<th>~Actions</th>
<th><s:message code="~eu.dariah.de.minfba.common.link.actions"/></th>
<td>
<button onclick="editor.crawlOnline('${ds.endpointId}','${ds.schemaId}');" class="btn btn-link"><i class="fa fa-refresh"></i>Crawl online data</button><br />
<button onclick="editor.createEmptyCrawl('${ds.endpointId}','${ds.schemaId}');" class="btn btn-link"><i class="fa fa-asterisk"></i>Create empty crawl folder</button>
<button onclick="editor.crawlOnline('${ds.endpointId}','${ds.schemaId}');" class="btn btn-link"><i class="fa fa-refresh"></i><s:message code="~eu.dariah.de.minfba.search.view.crawl.crawl_online" /></button><br />
<button onclick="editor.createEmptyCrawl('${ds.endpointId}','${ds.schemaId}');" class="btn btn-link"><i class="fa fa-asterisk"></i><s:message code="~eu.dariah.de.minfba.search.view.crawl.create_empty" /></button>
</td>
</tr>
</tbody>
</table>
</c:when>
<c:otherwise>
~ No actions due to schema state
<s:message code="~eu.dariah.de.minfba.search.view.crawl.no_actions" />
</c:otherwise>
</c:choose>
<h4>~Existing crawls</h4>
<h4><s:message code="~eu.dariah.de.minfba.search.view.titles.existing_crawls" /></h4>
<div class="previous-crawls-container">
</div>
......
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