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

Added ACCEURL (Accession URL)

parent 7b3c4444
......@@ -177,6 +177,11 @@ public interface Api1Constants {
*/
public static final String OTHERNUMB = "otherNumb";
/**
* Accession URL: direct link to accession in other on-line systems
*/
public static final String ACCEURL = "acceUrl";
}
public static interface Collecting {
......
......@@ -194,7 +194,10 @@ public class GenesysJSON {
columnDef = new JsonField(Api1Constants.Accession.AVAILABLE, RdfMCPD.AVAILABLE).setType(boolean.class);
columns.add(columnDef);
columnDef = new JsonField(Api1Constants.Accession.HISTORIC, RdfMCPD.HISTORIC).setType(boolean.class);
columnDef = new JsonField(Api1Constants.Accession.HISTORIC, RdfMCPD.HISTORIC).setType(String.class);
columns.add(columnDef);
columnDef = new JsonField(Api1Constants.Accession.ACCEURL, RdfMCPD.ACCEURL).setType(String.class);
columns.add(columnDef);
columnDef = new JsonField(Api1Constants.Accession.REMARKS, RdfMCPD.REMARKS).setAllowMultiple(true);
......
......@@ -165,6 +165,9 @@ public class MCPD {
columnDef = new ColumnDef("HISTORIC", "Historic entry", ColumnDataType.BOOLEAN, false, RdfMCPD.HISTORIC);
columns.add(columnDef);
columnDef = new ColumnDef("ACCEURL", "Accession URL", ColumnDataType.TEXT, false, RdfMCPD.ACCEURL);
columns.add(columnDef);
this.columnDefs = Collections.unmodifiableList(columns);
}
......
......@@ -64,5 +64,6 @@ public class RdfMCPD {
public static final String FAOINTRUST = "https://www.genesys-pgr.org/rdf/passport/faoInTrust";
public static final String AVAILABLE = "https://www.genesys-pgr.org/rdf/passport/available";
public static final String HISTORIC = "https://www.genesys-pgr.org/rdf/passport/historic";
public static final String ACCEURL = "https://www.genesys-pgr.org/rdf/passport/acceUrl";
}
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