relaton-bipm 1.13.10 → 1.13.11
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/relaton_bipm/data_fetcher.rb +12 -8
- data/lib/relaton_bipm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c37945561aa3232e2aaa549ebf42110fa45ae257f3975e544456238e04c69718
|
|
4
|
+
data.tar.gz: '085b532d8b2bb5b9441b3eeacf347df4f24944761fc733529c3cb2bf8e38adbd'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d0874150215333a8e2e645cc241e392fedcf03d91200d746b1d7e96c79f21341260ccad7d89565bc115fae7fc237bfd0d621de21ac15e53e32ca79a5e2b0ded
|
|
7
|
+
data.tar.gz: 5aa816a5e59bc6d1d67ba45477dfd50523dbff2222cda0b8131c11903ebcbde74db17ce69687848fc2d6eb6f1323a30ab4c6519b3607e0f6566f6f3d436bd675
|
|
@@ -201,7 +201,7 @@ module RelatonBipm
|
|
|
201
201
|
path = File.join dir, "#{num}-#{part}.yaml"
|
|
202
202
|
elsif part
|
|
203
203
|
hash[:title].each { |t| t[:content] = t[:content].sub(/\s\(.+\)$/, "") }
|
|
204
|
-
hash[:link] = [{ type: "src", content: link }]
|
|
204
|
+
# hash[:link] = [{ type: "src", content: link }]
|
|
205
205
|
h = bibitem body: body, type: type, en: en_md, fr: fr_md, id: id, num: num, src: src, pdf: en["pdf"]
|
|
206
206
|
add_part h, part
|
|
207
207
|
part_item = RelatonBipm::BipmBibliographicItem.new(**h)
|
|
@@ -235,11 +235,14 @@ module RelatonBipm
|
|
|
235
235
|
doctype: r["type"], place: [RelatonBib::Place.new(city: "Paris")]
|
|
236
236
|
}
|
|
237
237
|
hash[:title] << title(r["title"], "en") if r["title"]
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
hash[:title] << title(
|
|
238
|
+
fr_r = args[:fr]["resolutions"].fetch(i, nil)
|
|
239
|
+
hash[:link] = [{ type: "citation", content: r["url"], language: "en", script: "Latn" }]
|
|
240
|
+
if fr_r
|
|
241
|
+
hash[:title] << title(fr_r["title"], "fr") if fr_r["title"]
|
|
242
|
+
hash[:link] << { type: "citation", content: fr_r["url"], language: "fr", script: "Latn" }
|
|
242
243
|
end
|
|
244
|
+
hash[:link] += args[:src]
|
|
245
|
+
hash[:link] << { type: "pdf", content: r["reference"] } if r["reference"]
|
|
243
246
|
date = r["dates"].first.to_s
|
|
244
247
|
hash[:date] = [{ type: "published", on: date }]
|
|
245
248
|
num = r["identifier"].to_s.split("-").last
|
|
@@ -260,8 +263,6 @@ module RelatonBipm
|
|
|
260
263
|
id_fr(id),
|
|
261
264
|
]
|
|
262
265
|
hash[:docnumber] = id
|
|
263
|
-
hash[:link] = [{ type: "src", content: r["url"] }] + args[:src]
|
|
264
|
-
hash[:link] << { type: "pdf", content: r["reference"] } if r["reference"]
|
|
265
266
|
hash[:language] = %w[en fr]
|
|
266
267
|
hash[:script] = ["Latn"]
|
|
267
268
|
hash[:contributor] = contributors date, args[:body]
|
|
@@ -418,7 +419,10 @@ module RelatonBipm
|
|
|
418
419
|
]
|
|
419
420
|
hash[:id] = args[:id].gsub " ", "-"
|
|
420
421
|
hash[:docnumber] = args[:id]
|
|
421
|
-
hash[:link] = [
|
|
422
|
+
hash[:link] = [
|
|
423
|
+
{ type: "citation", content: args[:en]["url"], language: "en", script: "Latn" },
|
|
424
|
+
{ type: "citation", content: args[:fr]["url"], language: "fr", script: "Latn" },
|
|
425
|
+
]
|
|
422
426
|
RelatonBib.array(args[:pdf]).each { |pdf| hash[:link] << { type: "pdf", content: pdf } }
|
|
423
427
|
hash[:link] += args[:src] if args[:src]&.any?
|
|
424
428
|
hash[:language] = %w[en fr]
|
data/lib/relaton_bipm/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-bipm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.13.
|
|
4
|
+
version: 1.13.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-10-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: byebug
|