uc3-dmp-id 0.1.80 → 0.1.81
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-id/finder.rb +3 -1
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3de2c7edd72200592a63d6bad11a19ed289c9f3dfa35272d82ff98ec666b89ab
|
4
|
+
data.tar.gz: 7b887212a1babb8f7928ba8bc3062c4c6a282d29af346c36d5e0f61083e67356
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8685a865bb59f270cced7d0ffab66cd12a87a03a2d078accb2676a4d28ba73f13cf3d728b829e7e207aecddaa4cc10a53257414cb53c8e13f8cd0559b34e1210
|
7
|
+
data.tar.gz: 13886474742a157b539d70b7e77961ab2a5272818ab0bd6df519ea11b7a6d18720b1f4268ec43ee532f3e4493bd92b9a5b31485d0530b38e6450972a821ef429
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -37,7 +37,9 @@ module Uc3DmpId
|
|
37
37
|
funder = args['funder']
|
38
38
|
|
39
39
|
owner_pks = owner.nil? ? [] : _by_owner(owner: owner, client:, logger:)
|
40
|
-
|
40
|
+
# There may be multiple Org ids, so query them all
|
41
|
+
org_pks = org.nil? ? [] : org.split('|').map { |o| _by_org(org: o, client:, logger:) }
|
42
|
+
org_pks = org_pks.flatten.uniq
|
41
43
|
funder_pks = funder.nil? ? [] : _by_funder(funder: funder, client:, logger:)
|
42
44
|
# pks = [owner_pks, org_pks, funder_pks].reject(&:empty?)
|
43
45
|
logger&.debug(
|
data/lib/uc3-dmp-id/version.rb
CHANGED