Commit a9ac31ab authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

OPAC/SRU support

parent 6b68c5c6
......@@ -53,9 +53,17 @@
<div class="col-sm-6 dataset-state-container">
<%@ include file="incl/state_dataset.jsp" %>
</div>
<c:if test="${ep.method!='OPAC'}">
<div class="col-sm-6 previous-crawls-container">
<%@ include file="incl/crawls.jsp" %>
</div>
</c:if>
<c:if test="${ep.method=='OPAC'}">
<div class="col-sm-6 metasearch-container">
<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>
</div>
</c:if>
</div>
</div>
</div>
......
......@@ -139,6 +139,7 @@
<span class="state-heading"><s:message code="~eu.dariah.de.minfba.metamodel.common.id" />:</span>
<span class="no-break-out">${ds.id}</span>
</li>
<c:if test="${ep.method!='OPAC'}">
<li>
<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>
......@@ -146,6 +147,7 @@
</span>
<span class="no-break-out"><fmt:formatNumber value="${ds.docs}" /></span>
</li>
</c:if>
<li>
<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.additional_data" />"></i>
......@@ -174,11 +176,11 @@
<h3><s:message code="~eu.dariah.de.minfba.common.link.available_actions" /></h3>
<div>
<c:choose>
<c:when test="${currentCrawl!=null}">
<c:when test="${currentCrawl!=null && ep.method!='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>
</c:when>
<c:otherwise>
<c:if test="${!ep.error && !ep.unaccessible && !ds.errorLock && ds.datamodelPojo.available}">
<c:if test="${!ep.error && !ep.unaccessible && !ds.errorLock && ds.datamodelPojo.available && ep.method!='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>
</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>
......
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