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
Cedric Legout
osug-doi
Commits
77ac48d0
Commit
77ac48d0
authored
Mar 08, 2019
by
bourgesl
Browse files
minor refactoring to describe keyword attributes
parent
03e43648
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/fr/osug/doi/Const.java
View file @
77ac48d0
...
...
@@ -160,7 +160,7 @@ public interface Const {
//# 19 [funder]
KEY_FUNDER_NAME
};
public
static
final
String
[]
KEY_ATTRS
=
new
String
[]{
public
static
final
String
[]
KEY_ATTRS
_NAMES
=
new
String
[]{
// creator / contributor attributes:
// nameIdentifier variants:
// "nameIdentifier:AUTHORCLAIM",
...
...
@@ -170,11 +170,15 @@ public interface Const {
// "nameIdentifier:VIAF",
// "nameIdentifier:URL",
// affiliation:
"affiliation"
,
"affiliation"
// givenName
// familyName
};
public
static
final
String
[]
KEY_ATTRS_RIGHTS
=
new
String
[]{
// rights attribute:
"rightsURI"
,
"rightsURI"
};
public
static
final
String
[]
KEY_ATTRS_FUNDER
=
new
String
[]{
// funder attributes:
// funderIdentifier
"awardNumber"
,
...
...
src/main/java/fr/osug/doi/DoiCsvData.java
View file @
77ac48d0
...
...
@@ -31,9 +31,9 @@ public final class DoiCsvData extends CsvData {
KEY_ORDER_INDEX
.
put
(
key
,
Integer
.
valueOf
(
i
++));
}
// supported attributes (extra CSV columns):
for
(
String
key
:
Const
.
KEY_ATTRS
)
{
KEY_ATTR_SET
.
add
(
key
);
}
KEY_ATTR_SET
.
addAll
(
Arrays
.
asList
(
Const
.
KEY_ATTRS
_NAMES
));
KEY_ATTR_SET
.
add
All
(
Arrays
.
asList
(
Const
.
KEY_ATTRS_RIGHTS
)
);
KEY_ATTR_SET
.
addAll
(
Arrays
.
asList
(
Const
.
KEY_ATTRS_FUNDER
));
}
DoiCsvData
(
final
List
<
String
[]>
rows
)
{
...
...
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