minor fix: Resource changed to Marine_Resource

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@144083 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2017-02-22 10:56:17 +00:00
parent f8e19fc73c
commit 14b1f1b984
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
public enum Stock_Type {
Assessment_Unit("Assessment Unit"),
Resource("Marine Resource");
Marine_Resource("Marine Resource");
private String subGroupNameOrig;
@ -45,7 +45,7 @@ public enum Stock_Type {
public static Stock_Type onDeserialize(String typeString) {
if(typeString != null) {
for(Stock_Type type : Stock_Type.values()) {
if(type.getOrigName().equalsIgnoreCase(typeString.trim()))
if(type.getOrigName().equalsIgnoreCase(typeString.trim().toLowerCase()) || type.getOrigName().toLowerCase().contains(typeString.trim().toLowerCase()))
return type;
}
}