Commit df356f9b authored by Matija Obreza's avatar Matija Obreza
Browse files

Accession#instCode to varchar(10) for USA1004, removed SGSVImport from admin

parent 58411b58
......@@ -44,7 +44,7 @@ public class Accession extends VersionedAuditedModel {
@Column(length = 36)
private String uuid;
@Column(name = "instCode", length = 6)
@Column(name = "instCode", length = 10)
private String instituteCode;
@ManyToOne(cascade = {}, optional = true)
......
......@@ -38,7 +38,6 @@ import org.genesys2.server.service.MappingService;
import org.genesys2.server.service.impl.ContentSanitizer;
import org.genesys2.server.service.worker.ITPGRFAStatusUpdater;
import org.genesys2.server.service.worker.InstituteUpdater;
import org.genesys2.server.service.worker.SGSVInsertMissing;
import org.genesys2.server.service.worker.SGSVUpdate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.Cache;
......@@ -75,9 +74,6 @@ public class AdminController {
@Autowired
SGSVUpdate sgsvUpdater;
@Autowired
SGSVInsertMissing sgsvImporter;
@Autowired
ContentSanitizer contentSanitizer;
......@@ -163,12 +159,6 @@ public class AdminController {
return "redirect:/admin/";
}
@RequestMapping(method = RequestMethod.POST, value = "/importSGSV")
public String importSGSV() {
sgsvImporter.importMissingSGSV();
return "redirect:/admin/";
}
@RequestMapping(method = RequestMethod.POST, value = "/convertNames")
public String convertNames() {
// Convert {@link AllAccenames} to Aliases
......
......@@ -51,11 +51,6 @@
<!-- CSRF protection -->
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
</form>
<form method="post" action="<c:url value="/admin/importSGSV" />">
<input type="submit" class="btn btn-default" value="Import 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" />">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment