Skip to content
Open
5 changes: 3 additions & 2 deletions app/models/concerns/rorable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ module Rorable

def get_ror_from_crossref_funder_id(funder_id)
funder_id_suffix = funder_id.split("10.13039/").last
FUNDER_TO_ROR[funder_id_suffix]
RorReferenceStore.funder_to_ror(funder_id_suffix)
end

def get_ror_parents(ror_id)
normalized_ror = "https://#{ror_from_url(ror_id)}"
ROR_HIERARCHY[normalized_ror]&.fetch("ancestors", []) || []
hierarchy = RorReferenceStore.ror_hierarchy(normalized_ror)
hierarchy&.dig("ancestors") || []
end
end
21,950 changes: 0 additions & 21,950 deletions app/resources/funder_to_ror.json

This file was deleted.

Loading