mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
change order of name parts: familyName, givenName
(cherry picked from commit 076f1f233e
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
8a997abf6a
commit
f61c45bdc6
@@ -42,8 +42,8 @@ public class CrossRefAuthorMetadataProcessor implements JsonPathMetadataProcesso
|
||||
JsonNode author = authors.next();
|
||||
String givenName = author.at("/given").textValue();
|
||||
String familyName = author.at("/family").textValue();
|
||||
if (StringUtils.isNoneBlank(givenName) && StringUtils.isNoneBlank(familyName)) {
|
||||
values.add(givenName + " " + familyName);
|
||||
if (StringUtils.isNotBlank(givenName) && StringUtils.isNotBlank(familyName)) {
|
||||
values.add(familyName.trim() + ", " + givenName.trim());
|
||||
}
|
||||
}
|
||||
return values;
|
||||
@@ -64,4 +64,4 @@ public class CrossRefAuthorMetadataProcessor implements JsonPathMetadataProcesso
|
||||
this.pathToArray = pathToArray;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user