sul_orcid_client 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1cb74cbce1d27862da0f058974e0ca4233e5e8cbcaa956ce5682be779206bb0
4
- data.tar.gz: 71e80c4c62957681faf99df97cc843e34d83c3c450b1cb7471b2d39ad347adce
3
+ metadata.gz: 6d094f47fb97b02c27e7d2aa4fa309dd70a767db2d612570e664951e7009a52f
4
+ data.tar.gz: ebccfcefd3118ab60e670c88c7bb5f95ffcc61f308b42bbbe59ce391bff10005
5
5
  SHA512:
6
- metadata.gz: '09f5190810198153c3f5a6726113f8d57cfa1942ead9a38aa43c392c5b42ec7f7403a228c35f4e04a79a0e18696916b066900f7faf33429abda23eeeeb8c955e'
7
- data.tar.gz: 016d439926b46f5098a659fed9a90b1fe4f4fb699b8edee598861d4bdf04f3f791d2144785c642d4c4fa657213dcf87da5b49d867c986f451d5e23d7cca2b522
6
+ metadata.gz: cc9df0a46e008a1c801eecf50376c23c2aba54917af0db487954272ba64b86d66ff10e81d8e6fe5bc1c554a682c05b2697260f55e46a4cd1f22dfae7d6c29988
7
+ data.tar.gz: a6eebdfb9f58d6d405a32e8a0e6062eac00ca1a4937bf6b8af3bc9f803df191769f83500b08ec93c8e6faea1316dd11e45b5aaba9a4457911e019415699bbed1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sul_orcid_client (0.4.0)
4
+ sul_orcid_client (0.4.1)
5
5
  activesupport (>= 4.2, < 8)
6
6
  cocina-models (~> 0.90)
7
7
  faraday
@@ -21,7 +21,10 @@ class SulOrcidClient
21
21
  return identifier.uri if identifier.uri
22
22
  return identifier.value if identifier.value.start_with?("https://orcid.org/")
23
23
 
24
- URI.join("https://orcid.org/", identifier.value).to_s
24
+ # some records have just the ORCIDID without the URL prefix, add it if so, e.g. druid:tp865ng1792
25
+ return URI.join("https://orcid.org/", identifier.value).to_s if identifier.source.uri.blank?
26
+
27
+ URI.join(identifier.source.uri, identifier.value).to_s
25
28
  end
26
29
 
27
30
  # @param [Cocina::Models::Description] description containing contributors to check
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class SulOrcidClient
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sul_orcid_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Mangiafico
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-11-17 00:00:00.000000000 Z
12
+ date: 2023-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport