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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc2075169e1f56321c3f81448e13c637de70a298c966d8fa9bebc8d084d275f6
4
- data.tar.gz: aa2b8648ee7782726be9e1f35b7c84c7048178296bda8ef2b7771109bfec71d0
3
+ metadata.gz: c37945561aa3232e2aaa549ebf42110fa45ae257f3975e544456238e04c69718
4
+ data.tar.gz: '085b532d8b2bb5b9441b3eeacf347df4f24944761fc733529c3cb2bf8e38adbd'
5
5
  SHA512:
6
- metadata.gz: cc3e9b8268d4a7f20fd3d8ca3e1f2cef8ca51f16a76fd0997a0c3edd957cda9f201af3e5c2e4de4f2beaf2a740b2cbbf6bf7fb0dd29138a7d3487c5dfc032de8
7
- data.tar.gz: 2bc5c3a0df947808564955c755472aadccf38f525ddc9cce0eceeb9079ee8f5b048baf860050b4e1e33a08b180d6af3ed21706c162bf5b81508598a673857b1a
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
- fr_resolution = args[:fr]["resolutions"].fetch(i, nil)
239
- if fr_resolution
240
- fr_title = fr_resolution["title"]
241
- hash[:title] << title(fr_title, "fr") if fr_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] = [{ type: "src", content: args[:en]["url"] }]
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]
@@ -1,3 +1,3 @@
1
1
  module RelatonBipm
2
- VERSION = "1.13.10".freeze
2
+ VERSION = "1.13.11".freeze
3
3
  end
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.10
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-09-24 00:00:00.000000000 Z
11
+ date: 2022-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug