Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/models/concerns/events/event_index_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ def doi
# then followed by a slash and finally followed by at least 1 character.
# i.e. 10.1234/a, 10.12345/zenodo.100
subj_proxy_identifier_dois = Array.wrap(subj_hash["proxyIdentifiers"])
.map { |s| s[%r{\A(10\.\d{4,5}/.+)\z}, 1] }
.map { |s| s && s[%r{\A(10\.\d{4,5}/.+)\z}, 1] }
.compact

# Extract all obj proxy identifiers that match 10.()dot followed by 4 or 5 digits
# then followed by a slash and finally followed by at least 1 character.
# i.e. 10.1234/a, 10.12345/zenodo.100
obj_proxy_identifier_dois = Array.wrap(obj_hash["proxyIdentifiers"])
.map { |s| s[%r{\A(10\.\d{4,5}/.+)\z}, 1] }
.map { |s| s && s[%r{\A(10\.\d{4,5}/.+)\z}, 1] }
.compact

subj_funder_dois = Array.wrap(subj_hash["funder"])
Expand Down