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

665: Remodel wikipedia de schema

Task-Url: https://mantisbt.tgradl.de/view.php?id=665
parent 1add77b9
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<c:choose>
<c:when test="${crawlState.state=='ACTIVE'}">
<strong>~ crawl pipeline in progress</strong>
<table>
<c:forEach begin="0" end="${crawlState.pipelineLength-1}" var="i">
<tr>
<c:choose>
<c:when test="${i<crawlState.pipelineIndex}">
<td><i class="fa fa-check fa-2x"></i></td>
<td>~completed</td>
</c:when>
<c:when test="${i==crawlState.pipelineIndex}">
<td><i class="fa fa-refresh fa-spin fa-2x"></i></td>
<td>
<c:choose>
<c:when test="${crawlState.currentSize>0 && crawlState.currentProgress>0}">
<fmt:formatNumber var="percentage"
value="${crawlState.currentProgress/crawlState.currentSize*100}"
maxFractionDigits="2" />
<fmt:formatNumber var="current" value="${crawlState.currentProgress}" />
<fmt:formatNumber var="total" value="${crawlState.currentSize}" />
<c:set var="counts" value="${percentage}% (${current} / ${total} ${crawlState.serviceUnitMessageCode[i]})" />
</c:when>
<c:when test="${crawlState.currentProgress>0}">
<fmt:formatNumber var="current" value="${crawlState.currentProgress}" />
<c:set var="counts" value="${current} / ${total} ${crawlState.serviceUnitMessageCode[i]}" />
</c:when>
</c:choose>
${crawlState.serviceTitleMessageCode[i]}: ${counts}
</td>
</c:when>
<c:otherwise>
<td><i class="fa fa-clock-o fa-2x"></i></td>
<td>~waiting</td>
</c:otherwise>
</c:choose>
</tr>
</c:forEach>
</table>
<strong><s:message code="~eu.dariah.de.minfba.search.crawling.pipeline.in_progress" /></strong>
<table>
<c:forEach begin="0" end="${crawlState.pipelineLength-1}" var="i">
<tr>
<c:choose>
<c:when test="${i<crawlState.pipelineIndex}">
<td><i class="fa fa-check fa-2x"></i></td>
<td><s:message code="~eu.dariah.de.minfba.common.status.ok" /></td>
</c:when>
<c:when test="${i==crawlState.pipelineIndex}">
<td><i class="fa fa-refresh fa-spin fa-2x"></i></td>
<td>
<s:message code="~eu.dariah.de.minfba.common.status.busy" var="counts" />
<c:choose>
<c:when test="${crawlState.currentSize>0 && crawlState.currentProgress>0}">
<fmt:formatNumber var="percentage"
value="${crawlState.currentProgress/crawlState.currentSize*100}"
maxFractionDigits="2" />
<fmt:formatNumber var="current" value="${crawlState.currentProgress}" />
<fmt:formatNumber var="total" value="${crawlState.currentSize}" />
<c:set var="counts">${percentage}% (${current} / ${total} <s:message code="${crawlState.serviceUnitMessageCode[i]}" />)</c:set>
</c:when>
<c:when test="${crawlState.currentProgress>0}">
<fmt:formatNumber var="current" value="${crawlState.currentProgress}" />
<c:set var="counts">${current} <c:if test="${total!=null}">/ ${total}</c:if>&nbsp;<s:message code="${crawlState.serviceUnitMessageCode[i]}" /></c:set>
</c:when>
</c:choose>
<s:message code="${crawlState.serviceTitleMessageCode[i]}" />... ${counts}
</td>
</c:when>
<c:otherwise>
<td><i class="fa fa-clock-o fa-2x"></i></td>
<td><s:message code="${crawlState.serviceTitleMessageCode[i]}" />... <s:message code="~eu.dariah.de.minfba.common.status.waiting" /></td>
</c:otherwise>
</c:choose>
</tr>
</c:forEach>
</table>
</c:when>
<c:when test="${crawlState.state=='ERROR'}">
~error
<s:message code="~eu.dariah.de.minfba.common.status.error" />
</c:when>
<c:otherwise> <!-- NONE, WAITING, COMPLETE -->
~idle
<s:message code="~eu.dariah.de.minfba.common.status.idle" />
</c:otherwise>
</c:choose>
\ No newline at end of file
Supports Markdown
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