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

OPAC/SRU support

parent 6b68c5c6
...@@ -50,12 +50,20 @@ ...@@ -50,12 +50,20 @@
<div role="tabpanel" class="tab-pane fade<c:if test="${ep.id==selectedEpId && ds.id==selectedDsId}"> show active</c:if>" id="s${ep.id}-${ds.id}-panel" aria-labelledby="${ep.id}-${ds.id}-tab"> <div role="tabpanel" class="tab-pane fade<c:if test="${ep.id==selectedEpId && ds.id==selectedDsId}"> show active</c:if>" id="s${ep.id}-${ds.id}-panel" aria-labelledby="${ep.id}-${ds.id}-tab">
<div class="col-12"> <div class="col-12">
<div id="table-details${ep.id}-${ds.id}" class="table-light-details row"> <div id="table-details${ep.id}-${ds.id}" class="table-light-details row">
<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>
<div class="col-sm-6 previous-crawls-container"> <c:if test="${ep.method!='OPAC'}">
<%@ include file="incl/crawls.jsp" %> <div class="col-sm-6 previous-crawls-container">
</div> <%@ 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> </div>
</div> </div>
......
...@@ -139,13 +139,15 @@ ...@@ -139,13 +139,15 @@
<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>
<li> <c:if test="${ep.method!='OPAC'}">
<span class="state-heading"> <li>
<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> <span class="state-heading">
<s:message code="~eu.dariah.de.minfba.search.metamodel_view.endpoint.document_count" />: <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>
</span> <s:message code="~eu.dariah.de.minfba.search.metamodel_view.endpoint.document_count" />:
<span class="no-break-out"><fmt:formatNumber value="${ds.docs}" /></span> </span>
</li> <span class="no-break-out"><fmt:formatNumber value="${ds.docs}" /></span>
</li>
</c:if>
<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.additional_data" />"></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.additional_data" />"></i>
...@@ -174,11 +176,11 @@ ...@@ -174,11 +176,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}"> <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> <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}"> <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> <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