index.jsp 6.06 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 18 19

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

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

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

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