Skip to content

Commit

Permalink
Export: correct identifier types in a comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
andresTabiTuwien authored and rekt-hard committed Oct 11, 2024
1 parent 29d48db commit 8447259
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private String getContributorPersonIdentifier(Contributor contributor) {

if (personIdentifier != null) {
String contactIdentifierId = personIdentifier.getIdentifier();
if (personIdentifier.getIdentifierType().toString().equals("orcid")) {
if (personIdentifier.getIdentifierType().equals(EIdentifierType.ORCID)) {
identifier = "ORCID iD: " + contactIdentifierId;
}
}
Expand All @@ -141,7 +141,7 @@ private String getContributorAffiliationIdentifier(Contributor contributor) {

if (affiliationIdentifier != null) {
String contactAffiliationIdentifierId = affiliationIdentifier.getIdentifier();
if (affiliationIdentifier.getIdentifierType().toString().equals("ror")) {
if (affiliationIdentifier.getIdentifierType().equals(EIdentifierType.ROR)) {
identifier = "ROR: " + contactAffiliationIdentifierId;
}
}
Expand Down

0 comments on commit 8447259

Please sign in to comment.