uc3-dmp-id 0.1.62 → 0.1.64
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 +9 -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: 79ee57cd6eedab3206cfa4c573b44613e26960a2875c8cf22113f64ddceae453
|
4
|
+
data.tar.gz: 31f7541c4f01acec2cc8b095c4f3812fecffc0b6a6b3cdf70f415dad465cf0b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2604758a4eed1f0aba8c2d1f9d48b0eda655177e48d16a9a00bbcaf325ea2ad2ae3ec83af11db560a0f1b955ce5df092d24985740ccdca29780fab5c5b7227b1
|
7
|
+
data.tar.gz: 68146b49847f7bbecfacc681da835f214fedb4602e003f013b7f067a5efa1c583cb795459eb2e00a8bd77bae57974f2b0e7688ffaa706ff407177fb75e10b6dd
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -38,13 +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?)
|
42
|
-
|
41
|
+
# pks = [owner_pks, org_pks, funder_pks].reject(&:empty?)
|
42
|
+
logger&.debug(
|
43
|
+
message: 'PKs found',
|
44
|
+
details: { owner: owner_pks, org: org_pks, funder: funder_pks }
|
45
|
+
)
|
46
|
+
# return [] if pks.nil? || pks.empty?
|
43
47
|
|
44
48
|
# Only use the DMPs that fit all of the filter criteria
|
45
|
-
dmps = pks.reduce(:&).flatten.uniq
|
46
|
-
return [] if dmps.nil? || dmps.empty?
|
49
|
+
# dmps = pks.reduce(:&).flatten.uniq
|
50
|
+
# return [] if dmps.nil? || dmps.empty?
|
47
51
|
|
52
|
+
dmps = pks
|
48
53
|
|
49
54
|
# Fetch full DMP records for the results
|
50
55
|
client = Uc3DmpDynamo::Client.new(table: ENV['DYNAMO_TABLE'])
|
data/lib/uc3-dmp-id/version.rb
CHANGED