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

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

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

Matija Obreza's avatar
Matija Obreza committed
131 132
</body>
</html>