index.jsp 6.62 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
  <form method="post" action="<c:url value="/admin/pdci" />">
25 26
    <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>
27 28 29
    <!-- 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

119
  <h3>Taxonomy</h3>
Matija Obreza's avatar
Matija Obreza committed
120 121 122
  <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>
123 124 125 126
    <!-- CSRF protection -->
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
  </form>

127 128 129 130 131 132 133
  <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>

134 135 136 137 138 139 140
  <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>

Matija Obreza's avatar
Matija Obreza committed
141
</body>
142
</html>