index.jsp 6.29 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>
11
12
13
14
15
16
  <h1>
    <spring:message code="admin.page.title" />
  </h1>

  <%@ include file="/WEB-INF/jsp/admin/menu.jsp"%>

17
18
19
20
21
22
23
24
	<form method="post" action="<c:url value="/admin/admin-action" />">
		<input type="submit" class="btn btn-default" name="accenumbnumb" value="ACCENUMB-NUMB" />
		<input type="submit" class="btn btn-default" name="georegion" value="GeoRegion" />
		<!-- CSRF protection -->
		<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
	</form>

	<form method="post" action="<c:url value="/admin/assign-uuid" />">
25
26
27
28
    <input type="submit" class="btn btn-default" value="Assign missing UUIDs" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
29

30
31
32
33
34
  <form method="post" action="<c:url value="/admin/pdci" />">
    <input type="submit" class="btn btn-default" value="Calculate missing PDCI" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
35
36
37
38
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" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
42
43
44
45
46
  <form method="post" action="<c:url value="/admin/georegion" />">
    <input type="submit" class="btn btn-default" value="Refresh geo Regions" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
47
48
49
50
51
52
53
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
  <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>
  <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
123

124
125
126
127
128
129
130
  <h3>Taxonomy</h3>
  <form method="post" action="<c:url value="/admin/cleanup-taxonomies" />">
    <input type="submit" class="btn btn-default" value="Cleanup taxonomies" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

131
132
133
134
135
136
137
  <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>

Matija Obreza's avatar
Matija Obreza committed
138
139
</body>
</html>