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 +4 -4
- data/lib/uc3-dmp-id/creator.rb +8 -10
- data/lib/uc3-dmp-id/updater.rb +8 -10
- 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: 7217f5c590b517fa7dca32a2b37f5bb32d4a7b4cc824b70fb8cb8a22ff87f2bd
|
4
|
+
data.tar.gz: de4acb23c133b47846d119f77f9a31a0c2f96052b1be57288e2618d581ec1a93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb3e27b9e9c814d4ee5629da029d4bdf8e385f407054789cd0f485320203e6b369ac9d9f660bf6da21214d39a75da8a459a75a9bb4199fd00bfd6f0c3fd27460
|
7
|
+
data.tar.gz: 868828353494e64200347203317ab31db6bec135a38a460640d8edc66a128c59ce9bf4aa673b3ddf00a0b2a40488d3bd4b8ec846e87b1d1159fb18b615f5dfa6
|
data/lib/uc3-dmp-id/creator.rb
CHANGED
@@ -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
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
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
|
data/lib/uc3-dmp-id/updater.rb
CHANGED
@@ -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
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
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
|
data/lib/uc3-dmp-id/version.rb
CHANGED