edit.jsp 3.04 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>

<ul class="breadcrumb">
	<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>


<div id="main-content">
	<div class="row">
		<div class="col-lg-12">
			<h2>
				${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="~eu.dariah.de.minfba.common.notification.limited_access" />"></span>
					</c:if>
					
				</small>
			</h2>
			
25
			<h3><s:message code="~eu.dariah.de.minfba.metamodel.collection" /></h3>
26
27
28
29
30
31
32
33
			<table class="default-table">
				<tbody>
					<tr>
						<th><s:message code="~eu.dariah.de.minfba.metamodel.common.id" /></th>
						<td>${collection.id}</td>
					</tr>
					<tr>
						<th><s:message code="~eu.dariah.de.minfba.metamodel.common.source" /></th>
34
						<td><a title="<s:message code="~eu.dariah.de.minfba.search.actions.collections.show_in_cr" />" href="${collection.linkUrl}" target='_blank'>${collection.linkUrl} <i class="fa fa-external-link"></i></a></td>
35
36
37
38
					</tr>
				</tbody>
			</table>
			
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
			<div id="endpoint-table-container">

				<h3><s:message code="~eu.dariah.de.minfba.search.view.dataset.available_datasets" /></h3>

				<!-- Nav tabs -->
				<ul class="nav nav-tabs" role="tablist">
					<c:forEach items="${collection.endpoints}" var="ep" varStatus="ep_status">
						<c:forEach items="${ep.datasetPojos}" var="ds" varStatus="ds_status">
							<li id="#tab_${ep.id}-${ds.id}" role="presentation"<c:if test="${ep_status.index==0 && ds_status.index==0}">class="active"</c:if>>
								<a href="#${ep.id}-${ds.id}" aria-controls="${ep.id}-${ds.id}" data-endpoint="${ep.id}" data-dataset="${ds.id}" role="tab" data-toggle="tab">${ds.datamodelPojo.name}</a>
							</li>
						</c:forEach>
					</c:forEach>
				</ul>

				<!-- Tab panes -->
				<div class="tab-content">
56
57
58
					<c:forEach items="${collection.endpoints}" var="ep" varStatus="ep_status2">
						<c:forEach items="${ep.datasetPojos}" var="ds" varStatus="ds_status2">
							<div role="tabpanel" class="tab-pane<c:if test="${ep_status2.index==0 && ds_status2.index==0}"> active</c:if>" id="${ep.id}-${ds.id}">
59
60
61
62
63
64
65
66
67
								<div class="col-sm-12">
									<div id="table-details${ep.id}-${ds.id}" class="table-light-details row">		
										<div class="col-sm-6 dataset-state-container">							
											<%@ include file="incl/state_dataset.jsp" %>
										</div>
										<div class="col-sm-6 previous-crawls-container">
											<%@ include file="incl/crawls.jsp" %>
										</div>	
									</div>
68
69
								</div>
							</div>
70
71
72
73
74
75
						</c:forEach>
					</c:forEach>
				</div>
			</div>
		</div>
	</div>
76
</div>