Commit 24c7b8c4 authored by Matija Obreza's avatar Matija Obreza

BREDCODE allows multiple values

parent 96684b21
......@@ -188,7 +188,7 @@ public class GenesysJSON {
columnDef = new JsonField(Api1Constants.Accession.GEO + "." + Api1Constants.Geo.ELEVATION, RdfMCPD.ELEVATION).setType(double.class);
columns.add(columnDef);
columnDef = new JsonField(Api1Constants.Accession.BREDCODE, RdfMCPD.BREDCODE);
columnDef = new JsonField(Api1Constants.Accession.BREDCODE, RdfMCPD.BREDCODE).setAllowMultiple(true);
columns.add(columnDef);
columnDef = new JsonField(Api1Constants.Accession.SAMPSTAT, RdfMCPD.SAMPSTAT).setType(int.class);
......
......@@ -122,7 +122,7 @@ public class MCPD {
columnDef = new ColumnDef("COLLDATE", "Collecting date of sample", ColumnDataType.TEXT, false, RdfMCPD.COLLDATE);
columns.add(columnDef);
columnDef = new ColumnDef("BREDCODE", "Breeding institute code", ColumnDataType.TEXT, false, RdfMCPD.BREDCODE);
columnDef = new ColumnDef("BREDCODE", "Breeding institute code", ColumnDataType.TEXT, false, RdfMCPD.BREDCODE).setAllowMultiple(true);
columnDef.getValidators().add(new FaoWiewsInstCodeValidator());
columns.add(columnDef);
......
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