Skip to content
This repository was archived by the owner on May 28, 2024. It is now read-only.

Commit baf31f3

Browse files
committed
just assume all ORCIDs that with https://orcid.org
1 parent ab63f21 commit baf31f3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/services/orcid_builder.rb

+1-4
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ def orcidid(contributor)
4848
return identifier.uri if identifier.uri
4949
return identifier.value if identifier.value.start_with?('https://orcid.org/')
5050

51-
# some records have just the ORCIDID without the URL prefix, add it if so, e.g. druid:tp865ng1792
52-
return URI.join('https://orcid.org/', identifier.value).to_s if identifier.source.uri.blank?
53-
54-
URI.join(identifier.source.uri, identifier.value).to_s
51+
URI.join('https://orcid.org/', identifier.value).to_s
5552
end
5653
end

0 commit comments

Comments
 (0)