uc3-dmp-id 0.1.60 → 0.1.61
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 +7 -3
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb07288c4e1b21217a2ca9ed4df6a8c7243968c2cea3dbd0474796b6399d2a09
|
4
|
+
data.tar.gz: 665c7eb28c3fd99e73c50f06b9bd95be7f96bb95b0a0c551634c6b5c941fd9db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f196c1f061e5fcbd9085f5d483936797b3fe97bdb3e74b9bb8e2fc83effdefc4ecffbb28a0f0b478418fff6e8b6edd21b35cb2e103e6d7db1696e33e94d9d2f
|
7
|
+
data.tar.gz: b4adad6f533baff187391f415123134b93ffc0c01a93771f6519d8e935f91966c32c0d2ff2c051a98b09a596a615c86226b1f7ba6eeda72092b34b127edac403
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -25,9 +25,13 @@ module Uc3DmpId
|
|
25
25
|
def search_dmps(args:, logger: nil)
|
26
26
|
# Fetch the DMPs for each of the possible filter options
|
27
27
|
client = Uc3DmpDynamo::Client.new(table: ENV['DYNAMO_INDEX_TABLE'])
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
owner = args['owner']
|
29
|
+
org = args['org']
|
30
|
+
funder = args['funder']
|
31
|
+
|
32
|
+
owner_pks = owner.nil? ? [] : _by_owner(owner: owner, client:, logger:)
|
33
|
+
org_pks = org.nil? ? [] : _by_org(org: org, client:, logger:)
|
34
|
+
funder_pks = funder.nil? ? [] : _by_funder(funder: funder, client:, logger:)
|
31
35
|
return [] if owner_pks.empty? && org_pks.empty? && funder_pks.empty?
|
32
36
|
|
33
37
|
# Only use the DMPs that fit all of the filter criteria
|
data/lib/uc3-dmp-id/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uc3-dmp-id
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.61
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Riley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|