index.jsp 6.01 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
	<h3>Full-text Search</h3>
16
	<form method="post" action="<c:url value="/admin/cache/clearTilesCache" />">
Matija Obreza's avatar
Matija Obreza committed
17
18
19
20
21
		<input type="submit" class="btn btn-default" value="Clear Tiles cache" />
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
	</form>
	
Matija Obreza's avatar
Matija Obreza committed
22
	<form method="post" action="<c:url value="/admin/reindex-elastic" />">
23
		<input type="text" name="startAt" disabled="true" />
Matija Obreza's avatar
Matija Obreza committed
24
		<input type="text" name="filter" />
Matija Obreza's avatar
Matija Obreza committed
25
26
27
28
29
30
31
32
		<label>
			<input type="checkbox" name="slow" value="false" /> No sleep
		</label>
		<input type="submit" class="btn btn-default" value="ES reindex" />
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
	</form>
	
33
34
35
36
37
38
	<form method="post" action="<c:url value="/admin/clear-queues" />">
		<input type="submit" class="btn btn-default" value="Clear ES update queues" />
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
	</form>
	
39
40
41
	<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
42
43
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
44
45
46
	</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
47
48
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
49
	</form>
50
51
	<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
52
53
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
54
55
56
	</form>

	
57
58
	
	<h3>WIEWS</h3>
59
	<form method="post" action="<c:url value="/admin/refreshWiews" />">
60
		<input type="submit" class="btn btn-default" value="Refresh WIEWS data" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
61
62
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
63
	</form>
64
65
	
	<h3>Svalbard Global Seed Vault</h3>
66
	<form method="post" action="<c:url value="/admin/updateSGSV" />">
67
		<input type="submit" class="btn btn-default" value="Update SGSV" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
68
69
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
70
	</form>
71
72
	
	<h3>Accession</h3>
73
	<form method="post" action="<c:url value="/admin/updateAccessionCountryRefs" />">
74
		<input type="submit" class="btn btn-default" class="btn btn-default" value="Update accession country info" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
75
76
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
77
78
79
	</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
80
81
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
82
83
	</form>
	<form method="post" action="<c:url value="/admin/updateAccessionInstituteRefs" />">
84
		<input type="submit" class="btn btn-default" value="Update accession institute info" />
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
	<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
90
        <!-- CSRF protection -->
91
92
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
	</form>
93
94
95
	<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
96
97
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
98
99
	</form>
	
100
	<h3>Content</h3>
101
	<form method="post" action="<c:url value="/admin/sanitize" />">
102
		<input type="submit" class="btn btn-default" value="Sanitize HTML content" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
103
104
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
105
	</form>
106
107
108
109
	
	<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
110
111
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
Matija Obreza's avatar
Matija Obreza committed
112
	</form>
113

114
115
	<form method="post" action="<c:url value="/admin/reindexEntity" />">
		<select name="entity">
116
117
118
119
120
121
			<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>
122
123
			<option value="org.genesys2.server.model.genesys.AccessionAlias">Accession alias</option>
			<option value="org.genesys2.server.model.genesys.Taxonomy2">Taxonomy2</option>
124
		</select> <input type="submit" class="btn btn-default" value="Reindex search indexes" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
125
126
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
127
	</form>
Matija Obreza's avatar
Styling  
Matija Obreza committed
128

129
    <div class="adjust-logger-block">
130
        <a class="btn btn-default" href="<c:url value="/admin/logger/adjustLogger" />">Adjust logger</a>
131
132
    </div>

Matija Obreza's avatar
Matija Obreza committed
133
134
</body>
</html>