uc3-dmp-id 0.1.54 → 0.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-id/finder.rb +5 -15
- 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: 303302842851603259f0981187aa9e2df87db1214541f8716686ee0f68c3d565
|
4
|
+
data.tar.gz: de9174608180b81de434d1f5d87abfa1f339c14495d49f93f0c7446cdaaea608
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 654b37d44b2b871a385dd72f3104ba857e01b2fff58690708aea9beb3f2e2480eb6550bb18dc3b21cd67ea1362c805dd456bbea4da89598a50493499d934719a
|
7
|
+
data.tar.gz: bff8736d8b88b890497c13f4604dd67749bf6409045de1532debd4875f7edb7baedb4ca427d5d9a02c2baea452a603ebcc6c98652e9a33f7a9d8217a8190cb4d
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -155,10 +155,8 @@ module Uc3DmpId
|
|
155
155
|
}
|
156
156
|
end
|
157
157
|
logger&.debug(message: 'Fetch relevant DMPs _by_owner - scan args', details: args)
|
158
|
-
resp = client.scan(args:)
|
159
|
-
|
160
158
|
client = Uc3DmpDynamo::Client.new if client.nil?
|
161
|
-
_process_search_response(response: client.
|
159
|
+
_process_search_response(response: client.scan(args:))
|
162
160
|
end
|
163
161
|
|
164
162
|
# Fetch the DMP IDs for the specified organization/institution
|
@@ -177,10 +175,8 @@ module Uc3DmpId
|
|
177
175
|
}
|
178
176
|
}
|
179
177
|
logger&.debug(message: 'Fetch relevant DMPs _by_org - scan args', details: args)
|
180
|
-
resp = client.scan(args:)
|
181
|
-
|
182
178
|
client = Uc3DmpDynamo::Client.new if client.nil?
|
183
|
-
_process_search_response(response: client.
|
179
|
+
_process_search_response(response: client.scan(args:))
|
184
180
|
end
|
185
181
|
|
186
182
|
# Fetch the DMP IDs for the specified funder
|
@@ -199,10 +195,8 @@ module Uc3DmpId
|
|
199
195
|
}
|
200
196
|
}
|
201
197
|
logger&.debug(message: 'Fetch relevant DMPs _by_funder - scan args', details: args)
|
202
|
-
resp = client.scan(args:)
|
203
|
-
|
204
198
|
client = Uc3DmpDynamo::Client.new if client.nil?
|
205
|
-
_process_search_response(response: client.
|
199
|
+
_process_search_response(response: client.scan(args:))
|
206
200
|
end
|
207
201
|
|
208
202
|
# Fetch the DMP IDs that are marked as featured
|
@@ -212,10 +206,8 @@ module Uc3DmpId
|
|
212
206
|
expression_attribute_values: { ':sk': 'METADATA', ':featured': 1 }
|
213
207
|
}
|
214
208
|
logger&.debug(message: 'Fetch relevant DMPs _by_featured - scan args', details: args)
|
215
|
-
resp = client.scan(args:)
|
216
|
-
|
217
209
|
client = Uc3DmpDynamo::Client.new if client.nil?
|
218
|
-
_process_search_response(response: client.
|
210
|
+
_process_search_response(response: client.scan(args:))
|
219
211
|
end
|
220
212
|
|
221
213
|
# Return all of the publicly visible DMPs
|
@@ -225,10 +217,8 @@ module Uc3DmpId
|
|
225
217
|
expression_attribute_values: { ':sk': 'METADATA', ':visibility': 'public' }
|
226
218
|
}
|
227
219
|
logger&.debug(message: 'Fetch relevant DMPs _publicly_visible - scan args', details: args)
|
228
|
-
resp = client.scan(args:)
|
229
|
-
|
230
220
|
client = Uc3DmpDynamo::Client.new if client.nil?
|
231
|
-
_process_search_response(response: client.
|
221
|
+
_process_search_response(response: client.scan(args:))
|
232
222
|
end
|
233
223
|
|
234
224
|
# Transform the search results so that we do not include any of the DMPHub specific metadata
|
data/lib/uc3-dmp-id/version.rb
CHANGED