index.jsp 5.23 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>
14
	
Matija Obreza's avatar
Matija Obreza committed
15
16
17
18
19
20
21
	<h3>Full-text Search</h3>
	<form method="post" action="<c:url value="/admin/clearTilesCache" />">
		<input type="submit" class="btn btn-default" value="Clear Tiles cache" />
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
	</form>
	
22
23
24
	<h3>Country data</h3>
	<form method="post" action="<c:url value="/admin/refreshCountries" />">
		<input type="submit" class="btn btn-default" value="Refresh country data" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
25
26
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
27
28
29
	</form>
	<form method="post" action="<c:url value="/admin/updateAlternateNames" />">
		<input type="submit" class="btn btn-default" value="Update alternate GEO names" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
30
31
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
32
	</form>
33
34
	<form method="post" action="<c:url value="/admin/updateITPGRFA" />">
		<input type="submit" class="btn btn-default" class="btn btn-default" value="Update country ITPGRFA status" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
35
36
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
37
38
39
	</form>

	
40
41
	
	<h3>WIEWS</h3>
42
	<form method="post" action="<c:url value="/admin/refreshWiews" />">
43
		<input type="submit" class="btn btn-default" value="Refresh WIEWS data" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
44
45
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
46
	</form>
47
48
	
	<h3>Svalbard Global Seed Vault</h3>
49
	<form method="post" action="<c:url value="/admin/updateSGSV" />">
50
		<input type="submit" class="btn btn-default" value="Update SGSV" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
51
52
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
53
	</form>
Matija Obreza's avatar
Matija Obreza committed
54
	<form method="post" action="<c:url value="/admin/importSGSV" />">
55
		<input type="submit" class="btn btn-default" value="Import SGSV" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
56
57
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
Matija Obreza's avatar
Matija Obreza committed
58
	</form>
59
60
	
	<h3>Accession</h3>
61
	<form method="post" action="<c:url value="/admin/updateAccessionCountryRefs" />">
62
		<input type="submit" class="btn btn-default" class="btn btn-default" value="Update accession country info" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
63
64
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
65
66
67
	</form>
	<form method="post" action="<c:url value="/admin/updateInstituteCountryRefs" />">
		<input type="submit" class="btn btn-default" class="btn btn-default" value="Update WIEWS country info" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
68
69
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
70
71
	</form>
	<form method="post" action="<c:url value="/admin/updateAccessionInstituteRefs" />">
72
		<input type="submit" class="btn btn-default" value="Update accession institute info" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
73
74
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
75
	</form>
76
77
	<form method="post" action="<c:url value="/admin/convertNames" />">
		<input type="submit" class="btn btn-default" value="Convert old names to aliases" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
78
79
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
80
	</form>
81
	
82
83
84
	<h3>C&E</h3>
	<form method="post" action="<c:url value="/admin/refreshMetadataMethods" />">
		<input type="submit" class="btn btn-default" class="btn btn-default" value="Recalculate metadata methods" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
85
86
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
87
88
	</form>
	
89
	<h3>Content</h3>
90
	<form method="post" action="<c:url value="/admin/sanitize" />">
91
		<input type="submit" class="btn btn-default" value="Sanitize HTML content" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
92
93
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
94
	</form>
95
96
97
98
	
	<h3>Full-text Search</h3>
	<form method="post" action="<c:url value="/admin/reindexEverything" />">
		<input type="submit" class="btn btn-default" class="btn btn-default" value="Reindex search indexes" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
99
100
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
Matija Obreza's avatar
Matija Obreza committed
101
	</form>
102

103
104
	<form method="post" action="<c:url value="/admin/reindexEntity" />">
		<select name="entity">
105
106
107
108
109
110
			<option value="org.genesys2.server.model.impl.Country">Countries</option>
			<option value="org.genesys2.server.model.impl.FaoInstitute">WIEWS Institutes</option>
			<option value="org.genesys2.server.model.impl.ActivityPost">Posts</option>
			<option value="org.genesys2.server.model.impl.Article">Articles</option>
			<option value="org.genesys2.server.model.impl.Organization">Organizations</option>
			<option value="org.genesys2.server.model.genesys.Accession">Accessions</option>
111
		</select> <input type="submit" class="btn btn-default" value="Reindex search indexes" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
112
113
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
114
	</form>
Matija Obreza's avatar
Styling  
Matija Obreza committed
115

Matija Obreza's avatar
Matija Obreza committed
116
117
</body>
</html>