index.jsp 5.58 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
  <%@ include file="/WEB-INF/jsp/admin/menu.jsp"%>

13 14 15 16 17 18 19
	<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" />">
20 21 22 23
    <input type="submit" class="btn btn-default" value="Assign missing UUIDs" />
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
24

25 26 27 28 29
  <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>
30 31 32 33 34 35 36

  <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
37 38
  <form method="post" action="<c:url value="/admin/admin-action" />">
		<input type="submit" class="btn btn-default" name="georegion" value="Refresh geo Regions" />
39 40 41
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>
42 43 44 45 46 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
  <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
118

Matija Obreza's avatar
Matija Obreza committed
119 120
</body>
</html>