index.jsp 6.17 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

	<div class="main-col-header clearfix">
    	<div class="nav-header pull-left">
Matija Obreza's avatar
Matija Obreza committed
17
	        <a class="" href="<c:url value="/admin/cache/" />"><spring:message code="menu.admin.caches" /></a>
18 19 20
	        <a class="" href="<c:url value="/admin/logger/" />"><spring:message code="menu.admin.loggers" /></a>
		</div>
	</div>
21
	
Matija Obreza's avatar
Matija Obreza committed
22
	<h3>Full-text Search</h3>
23
	<form method="post" action="<c:url value="/admin/cache/clearTilesCache" />">
Matija Obreza's avatar
Matija Obreza committed
24 25 26 27 28
		<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
29
	<form method="post" action="<c:url value="/admin/reindex-elastic" />">
30
		<input type="text" name="startAt" disabled="true" />
Matija Obreza's avatar
Matija Obreza committed
31
		<input type="text" name="filter" />
Matija Obreza's avatar
Matija Obreza committed
32 33 34 35 36 37 38 39
		<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>
	
40 41 42 43 44 45
	<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>
	
46 47 48
	<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
49 50
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
51 52 53
	</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
54 55
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
56
	</form>
57 58
	<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
59 60
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
61 62 63
	</form>

	
64 65
	
	<h3>WIEWS</h3>
66
	<form method="post" action="<c:url value="/admin/refreshWiews" />">
67
		<input type="submit" class="btn btn-default" value="Refresh WIEWS data" />
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>Svalbard Global Seed Vault</h3>
73
	<form method="post" action="<c:url value="/admin/updateSGSV" />">
74
		<input type="submit" class="btn btn-default" value="Update SGSV" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
75 76
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
77
	</form>
78 79
	
	<h3>Accession</h3>
80
	<form method="post" action="<c:url value="/admin/updateAccessionCountryRefs" />">
81
		<input type="submit" class="btn btn-default" class="btn btn-default" value="Update accession country info" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
82 83
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
84 85 86
	</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
87 88
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
89 90
	</form>
	<form method="post" action="<c:url value="/admin/updateAccessionInstituteRefs" />">
91
		<input type="submit" class="btn btn-default" value="Update accession institute info" />
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
	<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
97
        <!-- CSRF protection -->
98 99
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
	</form>
100 101 102
	<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
103 104
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
105 106
	</form>
	
107
	<h3>Content</h3>
108
	<form method="post" action="<c:url value="/admin/sanitize" />">
109
		<input type="submit" class="btn btn-default" value="Sanitize HTML content" />
Nick Martynenko's avatar
CSRF  
Nick Martynenko committed
110 111
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
112
	</form>
113 114 115 116
	
	<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
117 118
        <!-- CSRF protection -->
        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
Matija Obreza's avatar
Matija Obreza committed
119
	</form>
120

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

Matija Obreza's avatar
Matija Obreza committed
136 137
</body>
</html>