uc3-dmp-id 0.1.62 → 0.1.63
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 -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: cb6071c17bb39a86e1ad81617b15e838a60a801b5296a7e728bf80e229da27b6
|
4
|
+
data.tar.gz: bf9310ab725d9966d7fbe9a28017ae4a203045f8f1867f6d76651cc32f0e22b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b5fd242a27a5bdaaf588607279f84db5825dfce3ab6e18e4fac30f158540079415a6f443a3cc99954bd095ec7c94e7a354603adf4088a228ce0abbba6369f0c
|
7
|
+
data.tar.gz: 0f2ea8bf4a2886fac01f9e6ccab1ffb792dd63d453ec7e4428bed945083d80f07515d457e728dad83ac49b7aded08933c8e18324378bb342d7189bd29e65ef35
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -39,7 +39,11 @@ module Uc3DmpId
|
|
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
41
|
pks = [owner_pks, org_pks, funder_pks].reject(&:empty?)
|
42
|
-
|
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
49
|
dmps = pks.reduce(:&).flatten.uniq
|
data/lib/uc3-dmp-id/version.rb
CHANGED