Skip to content

Commit c695e94

Browse files
Merge pull request #221 from datacite/ror-v1-transition
Specifies v1 of ROR API
2 parents fc917be + 75ea06a commit c695e94

6 files changed

Lines changed: 239 additions & 28 deletions

File tree

app/models/affiliation_identifier.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def self.push_item(item)
134134
def self.get_ror_metadata(id)
135135
return {} if id.blank?
136136

137-
url = "https://api.ror.org/organizations/#{id[8..]}"
137+
url = "https://api.ror.org/v1/organizations/#{id[8..]}"
138138
response = Maremma.get(url, host: true)
139139
return {} if response.status != 200
140140

app/models/orcid_affiliation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def self.push_item(item)
141141
def self.get_ror_metadata(id)
142142
return {} if id.blank?
143143

144-
url = "https://api.ror.org/organizations/#{id[8..]}"
144+
url = "https://api.ror.org/v1/organizations/#{id[8..]}"
145145
response = Maremma.get(url, host: true)
146146
return {} if response.status != 200
147147

spec/fixtures/vcr_cassettes/AffiliationIdentifier/import_affiliation_identifiers/_get_ror_metadata/returns_ROR_metadata_for_a_given_ROR_ID.yml

Lines changed: 47 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/vcr_cassettes/Base/get_datacite_metadata/fetch_metadata_dataset.yml

Lines changed: 10 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/vcr_cassettes/OrcidAffiliation/import_orcid_affiliations/_get_ror_metadata/returns_an_empty_hash_for_an_invalid_id.yml

Lines changed: 43 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)