uc3-dmp-id 0.1.63 → 0.1.65
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 +5 -4
- 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: 1f023fcb91e266127f48ad78b82617722f7070650f0a98557b9c3e421cc78fa8
|
4
|
+
data.tar.gz: da5b16df1e563d3a98e6bfb7c0b466abab330fe700f39999a150ed210498059f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b711a007a42257f4f871e3774e2d3aaba17e85f10eff7c4b4ef3b5a62ec655766acb429e0aa2665de113e1946f1c8d121d8baa856d079537d874afe261d8c392
|
7
|
+
data.tar.gz: fd88161a773adb588b85165e47bfc5e8435e32104e78f9013e9f453674d06b6a37593d890c6d59b939fd580607756aacaf288915a7af7398a72d66ad38992aef
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -38,17 +38,18 @@ module Uc3DmpId
|
|
38
38
|
owner_pks = owner.nil? ? [] : _by_owner(owner: owner, client:, logger:)
|
39
39
|
org_pks = org.nil? ? [] : _by_org(org: org, client:, logger:)
|
40
40
|
funder_pks = funder.nil? ? [] : _by_funder(funder: funder, client:, logger:)
|
41
|
-
pks = [owner_pks, org_pks, funder_pks].reject(&:empty?)
|
41
|
+
# pks = [owner_pks, org_pks, funder_pks].reject(&:empty?)
|
42
42
|
logger&.debug(
|
43
43
|
message: 'PKs found',
|
44
44
|
details: { owner: owner_pks, org: org_pks, funder: funder_pks }
|
45
45
|
)
|
46
|
-
return [] if pks.nil? || pks.empty?
|
46
|
+
# return [] if pks.nil? || pks.empty?
|
47
47
|
|
48
48
|
# Only use the DMPs that fit all of the filter criteria
|
49
|
-
dmps = pks.reduce(:&).flatten.uniq
|
50
|
-
return [] if dmps.nil? || dmps.empty?
|
49
|
+
# dmps = pks.reduce(:&).flatten.uniq
|
50
|
+
# return [] if dmps.nil? || dmps.empty?
|
51
51
|
|
52
|
+
dmps = [owner_pks, org_pks, funder_pks].flatten.uniq
|
52
53
|
|
53
54
|
# Fetch full DMP records for the results
|
54
55
|
client = Uc3DmpDynamo::Client.new(table: ENV['DYNAMO_TABLE'])
|
data/lib/uc3-dmp-id/version.rb
CHANGED