index.jsp 10.3 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
2
<!DOCTYPE html>

3
4
<%@ include file="/WEB-INF/jsp/init.jsp" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
Matija Obreza's avatar
Matija Obreza committed
5
6
7

<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>
11

12
13
14
15
16
17
18
	<form method="post" action="<c:url value="/admin/admin-action" />">
		<input type="submit" class="btn btn-default" name="accenumbnumb" value="ACCENUMB-NUMB" />
		<!-- CSRF protection -->
		<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
	</form>

	<form method="post" action="<c:url value="/admin/assign-uuid" />">
19
20
21
22
    <input type="submit" class="btn btn-default" value="Assign missing UUIDs" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
23
24
25
26
27
28
29
30
31
  
	<form method="post" action="<c:url value="/admin/admin-action" />">
		<input type="text" name="filter" placeholder="{}" value="{}" />
	  	<button name="action" class="btn btn-default" value="tile-index">Update tile index</button>
	  	<!-- CSRF protection -->
		<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
	</form>
  
  <h3>PDCI</h3>
32

33
  <form method="post" action="<c:url value="/admin/pdci" />">
34
35
36
		<input type="text" name="filter" placeholder="{}" value="{}" />
    <button name="action" class="btn btn-default" value="institute-pdci">Update PDCI stats for all institutes</button>
		<button name="action" class="btn btn-default" value="filtered-pdci">Calculate PDCI for filter</button>
Matija Obreza's avatar
Matija Obreza committed
37
38
    <%-- <button name="action" value="missing-pdci" class="btn btn-default">Calculate missing PDCI</button>
    <button name="action" value="full-recalc" class="btn btn-default">Clean and recalculate</button> --%>
39
40
41
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
42
43
44
45
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" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
Matija Obreza's avatar
Matija Obreza committed
49
50
  <form method="post" action="<c:url value="/admin/admin-action" />">
		<input type="submit" class="btn btn-default" name="georegion" value="Refresh geo Regions" />
51
52
53
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
  <form method="post" action="<c:url value="/admin/updateAlternateNames" />">
    <input type="submit" class="btn btn-default" value="Update alternate GEO names" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
  <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" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>



  <h3>WIEWS</h3>
  <form method="post" action="<c:url value="/admin/refreshWiews" />">
    <input type="submit" class="btn btn-default" value="Refresh WIEWS data" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

  <h3>Svalbard Global Seed Vault</h3>
  <form method="post" action="<c:url value="/admin/updateSGSV" />">
    <input type="submit" class="btn btn-default" value="Update SGSV" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

  <h3>Accession</h3>
  <form method="post" action="<c:url value="/admin/updateAccessionCountryRefs" />">
    <input type="submit" class="btn btn-default" class="btn btn-default" value="Update accession country info" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </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" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
  <form method="post" action="<c:url value="/admin/updateAccessionInstituteRefs" />">
    <input type="submit" class="btn btn-default" value="Update accession institute info" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
  <form method="post" action="<c:url value="/admin/convertNames" />">
    <input type="submit" class="btn btn-default" value="Convert old names to aliases" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
102
103
104
105
106
107
108
109

  <h3>Dataset</h3>
  <form method="post" action="<c:url value="/admin/relinkDatasetAccessions" />">
    <input type="submit" class="btn btn-default" class="btn btn-default" value="Relink dataset accessions" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
  <h3>C&amp;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" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

  <h3>Content</h3>
  <form method="post" action="<c:url value="/admin/sanitize" />">
    <input type="submit" class="btn btn-default" value="Sanitize HTML content" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

  <form method="post" action="<c:url value="/admin/reindexEntity" />">
    <select name="entity">
      <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>
      <option value="org.genesys2.server.model.genesys.AccessionAlias">Accession alias</option>
      <option value="org.genesys2.server.model.genesys.Taxonomy2">Taxonomy2</option>
    </select> <input type="submit" class="btn btn-default" value="Reindex search indexes" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
Matija Obreza's avatar
Styling    
Matija Obreza committed
138

139
  <h3>Taxonomy</h3>
Matija Obreza's avatar
Matija Obreza committed
140
141
142
  <form method="post" action="<c:url value="/admin/taxonomy" />">
    <button class="btn btn-default" name="action" value="taxonomy-cleanup">Removed unused Taxonomy2 records</button>
    <button class="btn btn-default" name="action" value="taxonomy-rebuild">Rebuild</button>
143
144
145
146
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

147
148
149
150
151
152
153
  <h3>Crops</h3>
  <form method="post" action="<c:url value="/admin/cropname-crop" />">
    <input type="submit" class="btn btn-default" value="Assign Crop for CROPNAME" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

154
155
156
157
158
159
160
  <h3>DOI</h3>
  <form method="post" action="<c:url value="/admin/clear-dois" />">
    <input type="submit" class="btn btn-default" value="Clear DOIs" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
  <h3>Repository</h3>
  <form method="post" action="<c:url value="/admin/ensureInstituteFolders" />">
    <input type="submit" class="btn btn-default" class="btn btn-default" value="Ensure institute folders" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
  <form method="post" action="<c:url value="/admin/ensureDatasetFolders" />">
    <input type="submit" class="btn btn-default" class="btn btn-default" value="Ensure dataset folders" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
  <form method="post" action="<c:url value="/admin/ensureThumbnails" />">
    <input type="submit" class="btn btn-default" class="btn btn-default" value="Ensure thumbnails" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

  <h3>Elasticsearch</h3>
  <form method="post" action="<c:url value="/admin/reindex-es" />">
    <input type="submit" class="btn btn-default" class="btn btn-default" value="Reindex Elasticsearch" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

  <h3>ACL</h3>
  <form method="post" action="<c:url value="/admin/cleanup-acl" />">
    <input type="submit" class="btn btn-default" class="btn btn-default" value="Cleanup ACL" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

192
193
194
  <form method="post" action="<c:url value="/admin/acl" />">
    <button type="submit" class="btn btn-default" class="btn btn-default" name="institutes" value="fix">Fix FaoInstitutes ACL</button>
    <button type="submit" class="btn btn-default" class="btn btn-default" name="repository" value="Fix">Repository ACL</button>
195
196
197
198
    <button type="submit" class="btn btn-default" class="btn btn-default" name="kpi" value="Fix">KPI Execution ACL</button>
    <button type="submit" class="btn btn-default" class="btn btn-default" name="datasets" value="Fix">Datasets ACL</button>
    <button type="submit" class="btn btn-default" class="btn btn-default" name="subsets" value="Fix">Subsets ACL</button>

199
200
201
202
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

203
204
205
206
207
208
209
210
  <h3>Repository</h3>
  <form method="post" action="<c:url value="/admin/fix-repo" />">
    <button type="submit" class="btn btn-default" class="btn btn-default" name="accession-folders" value="fix">Assign folders to accessions</button>

    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

Matija Obreza's avatar
Matija Obreza committed
211
</body>
212
</html>