uc3-dmp-id 0.0.132 → 0.0.134

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13e1f0d8f891230656da5e17d827b51fcf6987658ca9a087512b099d93bb0407
4
- data.tar.gz: 00e76554133bd49b7b439767a2b46293f9c572592f2321ac9ebe2976f86a19b7
3
+ metadata.gz: 7217f5c590b517fa7dca32a2b37f5bb32d4a7b4cc824b70fb8cb8a22ff87f2bd
4
+ data.tar.gz: de4acb23c133b47846d119f77f9a31a0c2f96052b1be57288e2618d581ec1a93
5
5
  SHA512:
6
- metadata.gz: 3464eb17042087f154f5c57262d5df7ec70ec5af4ca069ded7359d67560e923d1f36505f6cbe7c600161426620559d24418f88364e7ecc915807e229717628a5
7
- data.tar.gz: 1b4ff143b32d04ab7e3c00efb1006a4feee0706f50d9695fa4c578138d16f62f91599ff8bbf1ea399c73335fb91d3b3cde6afda112e4f0ddae2314be489e2910
6
+ metadata.gz: bb3e27b9e9c814d4ee5629da029d4bdf8e385f407054789cd0f485320203e6b369ac9d9f660bf6da21214d39a75da8a459a75a9bb4199fd00bfd6f0c3fd27460
7
+ data.tar.gz: 868828353494e64200347203317ab31db6bec135a38a460640d8edc66a128c59ce9bf4aa673b3ddf00a0b2a40488d3bd4b8ec846e87b1d1159fb18b615f5dfa6
@@ -97,16 +97,14 @@ module Uc3DmpId
97
97
  citable_identifiers = Helper.citable_related_identifiers(dmp: json)
98
98
  return true if citable_identifiers.empty?
99
99
 
100
- # Process each citation individually because they can be slow to fetch
101
- citable_identifiers.each do |identifier|
102
- citer_detail = {
103
- PK: json['PK'],
104
- SK: json['SK'],
105
- dmproadmap_related_identifier: identifier
106
- }
107
- logger.debug(message: "Fetching citation for: #{identifier['identifier']}", detail: citer_detail)
108
- publisher.publish(source: 'DmpCreator', dmp: json, event_type: 'Citation Fetch', detail: citer_detail, logger: logger)
109
- end
100
+ # Process citations
101
+ citer_detail = {
102
+ PK: json['PK'],
103
+ SK: json['SK'],
104
+ dmproadmap_related_identifiers: citable_identifiers
105
+ }
106
+ logger.debug(message: "Fetching citations", details: citable_identifiers)
107
+ publisher.publish(source: 'DmpUpdater', dmp: json, event_type: 'Citation Fetch', detail: citer_detail, logger: logger)
110
108
  true
111
109
  end
112
110
  end
@@ -146,16 +146,14 @@ module Uc3DmpId
146
146
  citable_identifiers = Helper.citable_related_identifiers(dmp: json)
147
147
  return true if citable_identifiers.empty?
148
148
 
149
- # Process each citation individually because they can be slow to fetch
150
- citable_identifiers.each do |identifier|
151
- citer_detail = {
152
- PK: json['PK'],
153
- SK: json['SK'],
154
- dmproadmap_related_identifier: identifier
155
- }
156
- logger.debug(message: "Fetching citation for: #{identifier['identifier']}", detail: citer_detail)
157
- publisher.publish(source: 'DmpUpdater', dmp: json, event_type: 'Citation Fetch', detail: citer_detail, logger: logger)
158
- end
149
+ # Process citations
150
+ citer_detail = {
151
+ PK: json['PK'],
152
+ SK: json['SK'],
153
+ dmproadmap_related_identifiers: citable_identifiers
154
+ }
155
+ logger.debug(message: "Fetching citations", details: citable_identifiers)
156
+ publisher.publish(source: 'DmpUpdater', dmp: json, event_type: 'Citation Fetch', detail: citer_detail, logger: logger)
159
157
  true
160
158
  end
161
159
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.132'
4
+ VERSION = '0.0.134'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.132
4
+ version: 0.0.134
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley