Commit 8b07645b authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

Implement git capabilities of processing-adapters (#406)

parent 4898eb68
...@@ -53,12 +53,12 @@ ...@@ -53,12 +53,12 @@
<div class="col-sm-6 dataset-state-container"> <div class="col-sm-6 dataset-state-container">
<%@ include file="incl/state_dataset.jsp" %> <%@ include file="incl/state_dataset.jsp" %>
</div> </div>
<c:if test="${ep.method!='OPAC'}"> <c:if test="${ep.accessType!='OPAC'}">
<div class="col-sm-6 previous-crawls-container"> <div class="col-sm-6 previous-crawls-container">
<%@ include file="incl/crawls.jsp" %> <%@ include file="incl/crawls.jsp" %>
</div> </div>
</c:if> </c:if>
<c:if test="${ep.method=='OPAC'}"> <c:if test="${ep.accessType=='OPAC'}">
<div class="col-sm-6 metasearch-container"> <div class="col-sm-6 metasearch-container">
<h3><s:message code="~eu.dariah.de.minfba.search.view.titles.metasearch" /></h3> <h3><s:message code="~eu.dariah.de.minfba.search.view.titles.metasearch" /></h3>
<p><s:message code="~eu.dariah.de.minfba.search.view.metasearch.no_crawl_info" /></p> <p><s:message code="~eu.dariah.de.minfba.search.view.metasearch.no_crawl_info" /></p>
......
...@@ -46,7 +46,8 @@ ...@@ -46,7 +46,8 @@
<th><s:message code="~eu.dariah.de.minfba.common.status" /></th> <!-- Badge column --> <th><s:message code="~eu.dariah.de.minfba.common.status" /></th> <!-- Badge column -->
<th><s:message code="~eu.dariah.de.minfba.search.model.dataset.documents" /></th> <th><s:message code="~eu.dariah.de.minfba.search.model.dataset.documents" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.url" /></th> <th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.url" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.api_type" /></th> <th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.access_type" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.file_type" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.model.name" /></th> <th><s:message code="~eu.dariah.de.minfba.metamodel.model.name" /></th>
</tr> </tr>
</thead> </thead>
......
...@@ -75,19 +75,23 @@ ...@@ -75,19 +75,23 @@
<span class="no-break-out">${ep.url}</span> <span class="no-break-out">${ep.url}</span>
</li> </li>
<li> <li>
<span class="state-heading"><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.type" />:</span> <span class="state-heading"><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.access_type" />:</span>
<span class="no-break-out">${ep.method}</span> <span class="no-break-out">${ep.accessType}</span>
<c:if test="${ep.method=='OAI-PMH'}"> <c:if test="${ep.accessType=='OAI-PMH'}">
<div class="inline-button ${prefix_state}" onclick="editor.clearEndpointSchemaIndex('${ep.id}','${ds.id}');"> <div class="inline-button ${prefix_state}" onclick="editor.clearEndpointSchemaIndex('${ep.id}','${ds.id}');">
<a href="${ep.url}?verb=Identify" target="_blank"><i class="fa fa-globe"></i> <s:message code="~eu.dariah.de.minfba.search.metamodel_view.model.check_availability" /></a> <a href="${ep.url}?verb=Identify" target="_blank"><i class="fa fa-globe"></i> <s:message code="~eu.dariah.de.minfba.search.metamodel_view.model.check_availability" /></a>
</div> </div>
</c:if> </c:if>
</li> </li>
<li>
<span class="state-heading"><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.file_type" />:</span>
<span class="no-break-out">${ep.fileType}</span>
</li>
<li> <li>
<span class="state-heading"><s:message code="~eu.dariah.de.minfba.metamodel.common.id" />:</span> <span class="state-heading"><s:message code="~eu.dariah.de.minfba.metamodel.common.id" />:</span>
<span class="no-break-out">${ep.id}</span> <span class="no-break-out">${ep.id}</span>
</li> </li>
<c:if test="${ep.method=='OAI-PMH'}"> <c:if test="${ep.accessType=='OAI-PMH'}">
<li> <li>
<span class="state-heading"><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.set" />:</span> <span class="state-heading"><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.set" />:</span>
<span class="no-break-out">${ep.set}</span> <span class="no-break-out">${ep.set}</span>
...@@ -115,7 +119,7 @@ ...@@ -115,7 +119,7 @@
<span class="no-break-out">${ds.datamodelPojo.name}</span> <span class="no-break-out">${ds.datamodelPojo.name}</span>
</li> </li>
<li> <li>
<span class="state-heading"><s:message code="~eu.dariah.de.minfba.search.metamodel_view.model.${ep.method=='OAI-PMH' ? 'oaipmh_prefix' : 'alias'}" />:</span> <span class="state-heading"><s:message code="~eu.dariah.de.minfba.search.metamodel_view.model.${ep.accessType=='OAI-PMH' ? 'oaipmh_prefix' : 'alias'}" />:</span>
<c:choose> <c:choose>
<c:when test="${ds.remoteAlias!=null && fn:length(ds.remoteAlias) > 0}"> <c:when test="${ds.remoteAlias!=null && fn:length(ds.remoteAlias) > 0}">
<c:set var="prefix" value="${ds.remoteAlias}" /> <c:set var="prefix" value="${ds.remoteAlias}" />
...@@ -132,7 +136,7 @@ ...@@ -132,7 +136,7 @@
<span class="state-heading"><s:message code="~eu.dariah.de.minfba.metamodel.common.id" />:</span> <span class="state-heading"><s:message code="~eu.dariah.de.minfba.metamodel.common.id" />:</span>
<span class="no-break-out">${ds.id}</span> <span class="no-break-out">${ds.id}</span>
</li> </li>
<c:if test="${ep.method!='OPAC'}"> <c:if test="${ep.accessType!='OPAC'}">
<li> <li>
<span class="state-heading"> <span class="state-heading">
<i class="fa fa-color-info fa-info-circle" aria-hidden="true" data-toggle="tooltip" data-placement="top" title="<s:message code="~eu.dariah.de.minfba.search.view.dataset.label.document_count" />"></i> <i class="fa fa-color-info fa-info-circle" aria-hidden="true" data-toggle="tooltip" data-placement="top" title="<s:message code="~eu.dariah.de.minfba.search.view.dataset.label.document_count" />"></i>
...@@ -169,11 +173,11 @@ ...@@ -169,11 +173,11 @@
<h3><s:message code="~eu.dariah.de.minfba.common.link.available_actions" /></h3> <h3><s:message code="~eu.dariah.de.minfba.common.link.available_actions" /></h3>
<div> <div>
<c:choose> <c:choose>
<c:when test="${currentCrawl!=null && ep.method!='OPAC'}"> <c:when test="${currentCrawl!=null && ep.accessType!='OPAC'}">
<button class="btn-cancel-crawl btn btn-primary" data-crawl-id="${currentCrawl.id}" onclick="editor.cancelCrawl(this);"><i class="fa fa-ban fa-color-danger"></i> <s:message code="~eu.dariah.de.minfba.search.actions.crawls.cancel" /></button> <button class="btn-cancel-crawl btn btn-primary" data-crawl-id="${currentCrawl.id}" onclick="editor.cancelCrawl(this);"><i class="fa fa-ban fa-color-danger"></i> <s:message code="~eu.dariah.de.minfba.search.actions.crawls.cancel" /></button>
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<c:if test="${!ep.error && !ep.unaccessible && !ds.errorLock && ds.datamodelPojo.available && ep.method!='OPAC'}"> <c:if test="${!ep.error && !ep.unaccessible && !ds.errorLock && ds.datamodelPojo.available && ep.accessType!='OPAC'}">
<button class="btn-crawl-online btn btn-primary" onclick="editor.crawlOnline('${ep.id}','${ds.id}');"><i class="fa fa-refresh"></i><s:message code="~eu.dariah.de.minfba.search.view.crawl.crawl_online" /></button> <button class="btn-crawl-online btn btn-primary" onclick="editor.crawlOnline('${ep.id}','${ds.id}');"><i class="fa fa-refresh"></i><s:message code="~eu.dariah.de.minfba.search.view.crawl.crawl_online" /></button>
</c:if> </c:if>
<button class="btn-clear-index btn btn-primary" onclick="editor.clearData('${ep.id}','${ds.id}', ${data.exists && data.fileCount>0});"><i class="fa fa-trash "></i> <s:message code="~eu.dariah.de.minfba.search.actions.dataset.clear" /></button> <button class="btn-clear-index btn btn-primary" onclick="editor.clearData('${ep.id}','${ds.id}', ${data.exists && data.fileCount>0});"><i class="fa fa-trash "></i> <s:message code="~eu.dariah.de.minfba.search.actions.dataset.clear" /></button>
......
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