index.jsp 1.78 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
3
4
5
6
7
<!DOCTYPE html>

<%@include file="/WEB-INF/jsp/init.jsp"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<html>
<head>
Matija Obreza's avatar
Matija Obreza committed
8
<title><spring:message code="admin.page.title" /></title>
Matija Obreza's avatar
Matija Obreza committed
9
10
</head>
<body>
Matija Obreza's avatar
Styling  
Matija Obreza committed
11
12
13
	<h1>
		<spring:message code="admin.page.title" />
	</h1>
Matija Obreza's avatar
Matija Obreza committed
14

Matija Obreza's avatar
Styling  
Matija Obreza committed
15
	<sec:authorize access="hasRole('ADMINISTRATOR')">
Matija Obreza's avatar
Matija Obreza committed
16
17
18
19
20
21
		<form method="post" action="<c:url value="/admin/refreshWiews" />">
			<input type="submit" value="Refresh WIEWS data" />
		</form>
		<form method="post" action="<c:url value="/admin/refreshCountries" />">
			<input type="submit" value="Refresh country data" />
		</form>
22
23
24
		<form method="post" action="<c:url value="/admin/reindexEverything" />">
			<input type="submit" value="Reindex search indexes" />
		</form>
25
26
27
28
29
30
31
		<form method="post" action="<c:url value="/admin/updateAccessionCountryRefs" />">
			<input type="submit" value="Update accession country info" />
		</form>		
		
		<form method="post" action="<c:url value="/admin/updateAccessionInstituteRefs" />">
			<input type="submit" value="Update accession institute info" />
		</form>
32
33
34
35
		
		
		<form method="post" action="<c:url value="/admin/reindexEntity" />">
			<select name="entity">
36
37
38
39
40
41
				<option value="org.genesys2.rest.common.model.impl.Country">Countries</option>
				<option value="org.genesys2.rest.common.model.impl.FaoInstitute">WIEWS Institutes</option>
				<option value="org.genesys2.rest.common.model.impl.ActivityPost">Posts</option>
				<option value="org.genesys2.rest.common.model.impl.Article">Articles</option>
				<option value="org.genesys2.rest.common.model.impl.Organization">Organizations</option>
				<option value="org.genesys2.rest.common.model.genesys.Accession">Accessions</option>
42
43
44
			</select>
			<input type="submit" value="Reindex search indexes" />
		</form>
Matija Obreza's avatar
Styling  
Matija Obreza committed
45
46
	</sec:authorize>

Matija Obreza's avatar
Matija Obreza committed
47
48
</body>
</html>