uc3-dmp-id 0.0.133 → 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: 5a828d5f8aa82019a4b8e2c0c211278e2bc0d633c573f3d7e7f67899b2a98e24
4
- data.tar.gz: 12efe5c5f997cae9f42ab73a76c87e76d9fb5eb992b03582f8896514b9f28418
3
+ metadata.gz: 7217f5c590b517fa7dca32a2b37f5bb32d4a7b4cc824b70fb8cb8a22ff87f2bd
4
+ data.tar.gz: de4acb23c133b47846d119f77f9a31a0c2f96052b1be57288e2618d581ec1a93
5
5
  SHA512:
6
- metadata.gz: 02f99d3228d8fd7e09a8fcc7df135c554eedba8e44d1d596049f5512e9112fceae3d37355a4843679ed12fcd7bb5b93f10846fd5d93698ef6c92a15552b6a11e
7
- data.tar.gz: 7bd70b6a8d490d24feef047f37575f7d28a07e0a6c0a9a9d32ccb2f2c97b0ad6e19903cb54c1bce445ca70baed391378d22cf0f148e0b587b40ffb048bdb13c3
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']}", details: 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']}", details: 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.133'
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.133
4
+ version: 0.0.134
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley