uc3-dmp-id 0.0.131 → 0.0.133

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: faf64b4329b7946e25b2ae9a7e65935f9b622dc06be767471a1138953ee05531
4
- data.tar.gz: defcc30a3fe31912cf98c21b836167cd1fc627827a26cc078ef8df768a2433ca
3
+ metadata.gz: 5a828d5f8aa82019a4b8e2c0c211278e2bc0d633c573f3d7e7f67899b2a98e24
4
+ data.tar.gz: 12efe5c5f997cae9f42ab73a76c87e76d9fb5eb992b03582f8896514b9f28418
5
5
  SHA512:
6
- metadata.gz: d1cf66666dd01883ef588aa175cfb608fcb9817d4c24b90cdbee7102eba9eafbc256c4e7d50d89ad348df4b18a805b10f4e78502d9cbdb7758952b5a758be214
7
- data.tar.gz: 8138d7b2d67f365adfbc959b6d46a9390d122a09150fee3f0da69d8e74ed62a97a3f09dd64567121baf77c4febea00b7674c8d05c9135742d4060958ec3106f7
6
+ metadata.gz: 02f99d3228d8fd7e09a8fcc7df135c554eedba8e44d1d596049f5512e9112fceae3d37355a4843679ed12fcd7bb5b93f10846fd5d93698ef6c92a15552b6a11e
7
+ data.tar.gz: 7bd70b6a8d490d24feef047f37575f7d28a07e0a6c0a9a9d32ccb2f2c97b0ad6e19903cb54c1bce445ca70baed391378d22cf0f148e0b587b40ffb048bdb13c3
@@ -101,8 +101,10 @@ module Uc3DmpId
101
101
  citable_identifiers.each do |identifier|
102
102
  citer_detail = {
103
103
  PK: json['PK'],
104
+ SK: json['SK'],
104
105
  dmproadmap_related_identifier: identifier
105
106
  }
107
+ logger.debug(message: "Fetching citation for: #{identifier['identifier']}", details: citer_detail)
106
108
  publisher.publish(source: 'DmpCreator', dmp: json, event_type: 'Citation Fetch', detail: citer_detail, logger: logger)
107
109
  end
108
110
  true
@@ -144,21 +144,16 @@ module Uc3DmpId
144
144
 
145
145
  # Determine if there are any related identifiers that we should try to fetch a citation for
146
146
  citable_identifiers = Helper.citable_related_identifiers(dmp: json)
147
-
148
- puts "CITATION BIT:"
149
- puts citable_identifiers
150
-
151
147
  return true if citable_identifiers.empty?
152
148
 
153
149
  # Process each citation individually because they can be slow to fetch
154
150
  citable_identifiers.each do |identifier|
155
151
  citer_detail = {
156
152
  PK: json['PK'],
153
+ SK: json['SK'],
157
154
  dmproadmap_related_identifier: identifier
158
155
  }
159
-
160
- puts "SENDING MESSAGE To BRIDGE FOR: #{identifier['identifier']}"
161
-
156
+ logger.debug(message: "Fetching citation for: #{identifier['identifier']}", details: citer_detail)
162
157
  publisher.publish(source: 'DmpUpdater', dmp: json, event_type: 'Citation Fetch', detail: citer_detail, logger: logger)
163
158
  end
164
159
  true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpId
4
- VERSION = '0.0.131'
4
+ VERSION = '0.0.133'
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.131
4
+ version: 0.0.133
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley