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

Set Availability

parent aef8f404
......@@ -116,6 +116,15 @@ public class BatchRESTServiceImpl implements BatchRESTService {
updated = true;
}
}
value = accnJson.get("available");
if (value != null) {
Boolean availability = value.isNull() ? null : value.asBoolean();
if (availability != accession.getMlsStatus()) {
accession.setAvailability(availability);
updated = true;
}
}
value = accnJson.get("species");
if (value != null) {
String species = value.isNull() ? null : value.textValue();
......
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