Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Uploader
Commits
ee8118de
Commit
ee8118de
authored
Jan 05, 2020
by
Matija Obreza
Browse files
Support for "newInstituteCode"
parent
860059e6
Changes
5
Hide whitespace changes
Inline
Side-by-side
anno-gui/src/main/java/org/genesys2/anno/gui/SettingsDialog.java
View file @
ee8118de
...
...
@@ -61,7 +61,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.beans.factory.annotation.Value
;
import
swing2swt.layout.BorderLayout
;
import
java.io.IOException
;
import
java.util.Arrays
;
import
java.util.Set
;
...
...
anno-gui/src/main/java/org/genesys2/anno/gui/SpringConfig.java
View file @
ee8118de
...
...
@@ -36,7 +36,6 @@ import org.genesys2.anno.reader.JDBCRowReader;
import
org.genesys2.anno.util.ConnectionUtils
;
import
org.genesys2.client.oauth.GenesysClient
;
import
org.genesys2.client.oauth.GenesysTokens
;
import
org.genesys2.client.oauth.api.GenesysApi
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.config.ConfigurableBeanFactory
;
import
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
;
...
...
anno-gui/src/main/java/org/genesys2/anno/predefined/GenesysJSON.java
View file @
ee8118de
...
...
@@ -93,6 +93,9 @@ public class GenesysJSON {
List
<
JsonField
>
columns
=
new
ArrayList
<
JsonField
>();
JsonField
instCode
=
new
JsonField
(
Api1Constants
.
Accession
.
INSTCODE
,
RdfMCPD
.
INSTCODE
).
setRequired
(
true
);
columns
.
add
(
instCode
);
JsonField
newInstCode
=
new
JsonField
(
Api1Constants
.
Accession
.
INSTCODE_NEW
,
RdfMCPD
.
INSTCODE_NEW
).
setRequired
(
false
);
columns
.
add
(
newInstCode
);
JsonField
doi
=
new
JsonField
(
Api1Constants
.
Accession
.
DOI
,
RdfMCPD
.
DOI
).
setRequired
(
false
);
columns
.
add
(
doi
);
...
...
anno-gui/src/main/java/org/genesys2/anno/predefined/MCPD.java
View file @
ee8118de
...
...
@@ -34,6 +34,10 @@ public class MCPD {
instCode
.
getValidators
().
add
(
new
FaoWiewsInstCodeValidator
());
columns
.
add
(
instCode
);
ColumnDef
newInstCode
=
new
ColumnDef
(
"INSTCODE_NEW"
,
"New institute code"
,
ColumnDataType
.
TEXT
,
false
,
RdfMCPD
.
INSTCODE_NEW
);
newInstCode
.
getValidators
().
add
(
new
FaoWiewsInstCodeValidator
());
columns
.
add
(
newInstCode
);
ColumnDef
doi
=
new
ColumnDef
(
"DOI"
,
"Digital object identifier"
,
ColumnDataType
.
TEXT
,
true
,
RdfMCPD
.
DOI
);
columns
.
add
(
doi
);
...
...
anno-gui/src/main/java/org/genesys2/anno/predefined/RdfMCPD.java
View file @
ee8118de
...
...
@@ -19,6 +19,7 @@ package org.genesys2.anno.predefined;
public
class
RdfMCPD
{
// http://purl.org/germplasm/germplasmTerm#
public
static
final
String
INSTCODE
=
"http://rs.tdwg.org/dwc/terms/institutionCode"
;
public
static
final
String
INSTCODE_NEW
=
"https://www.genesys-pgr.org/rdf/mcpd#newInstituteCode"
;
public
static
final
String
DOI
=
"http://prismstandard.org/namespaces/1.2/basic/doi"
;
public
static
final
String
ACCENUMB
=
"http://purl.org/germplasm/germplasmTerm#germplasmID"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment