index.jsp 4.94 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
15
16
17
	
	<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
18
19
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
20
21
22
	</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
23
24
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
25
	</form>
26
27
	<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
28
29
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
30
31
32
	</form>

	
33
34
	
	<h3>WIEWS</h3>
35
	<form method="post" action="<c:url value="/admin/refreshWiews" />">
36
		<input type="submit" class="btn btn-default" value="Refresh WIEWS data" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
37
38
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
39
	</form>
40
41
	
	<h3>Svalbard Global Seed Vault</h3>
42
	<form method="post" action="<c:url value="/admin/updateSGSV" />">
43
		<input type="submit" class="btn btn-default" value="Update SGSV" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
44
45
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
46
	</form>
Matija Obreza's avatar
Matija Obreza committed
47
	<form method="post" action="<c:url value="/admin/importSGSV" />">
48
		<input type="submit" class="btn btn-default" value="Import SGSV" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
49
50
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
Matija Obreza's avatar
Matija Obreza committed
51
	</form>
52
53
	
	<h3>Accession</h3>
54
	<form method="post" action="<c:url value="/admin/updateAccessionCountryRefs" />">
55
		<input type="submit" class="btn btn-default" class="btn btn-default" value="Update accession country info" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
56
57
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
58
59
60
	</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
61
62
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
63
64
	</form>
	<form method="post" action="<c:url value="/admin/updateAccessionInstituteRefs" />">
65
		<input type="submit" class="btn btn-default" value="Update accession institute info" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
66
67
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
68
	</form>
69
70
	<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
71
72
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
73
	</form>
74
	
75
76
77
	<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
78
79
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
80
81
	</form>
	
82
	<h3>Content</h3>
83
	<form method="post" action="<c:url value="/admin/sanitize" />">
84
		<input type="submit" class="btn btn-default" value="Sanitize HTML content" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
85
86
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
87
	</form>
88
89
90
91
	
	<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
92
93
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
Matija Obreza's avatar
Matija Obreza committed
94
	</form>
95

96
97
	<form method="post" action="<c:url value="/admin/reindexEntity" />">
		<select name="entity">
98
99
100
101
102
103
			<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>
104
		</select> <input type="submit" class="btn btn-default" value="Reindex search indexes" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
105
106
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
107
	</form>
Matija Obreza's avatar
Styling  
Matija Obreza committed
108

Matija Obreza's avatar
Matija Obreza committed
109
110
</body>
</html>