relaton-bipm 1.13.6 → 1.13.7

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: aeddd651dcb48a277d10ad9351ba46351b7fe43eb8b136a359148d83a23ca7c0
4
- data.tar.gz: 5b25f339d03c0278660b58a7b190e88e5a1c05ab0bcbec007fb8fdd6108efa7d
3
+ metadata.gz: e0515bfe2447d7a6881937d4b4d30d88143c5c15928f0f7698731b5cbd49435d
4
+ data.tar.gz: 48cb0ea748808d446b24147f7e4c1c5882e955800c1f38e4301e327d0f45bc7f
5
5
  SHA512:
6
- metadata.gz: 3b913ce825a85cb4e751bb149422427f6828f009fe6324b08c18c25ab6573c0e365f266d7954940a79e63bacd8fb52ee81d37aa983749d1d0403c3fee0c1dcd1
7
- data.tar.gz: 202619fe86dde21f5bfe8efb221177ab3cd078c4fcd57078b1584baf6609fed489d1c16e0d84b4fe5aa63bd88f59dd53b8b5d36c4d10931c6f57702c0b909ad0
6
+ metadata.gz: b09363f8f4df906223cd9a6cfbf22e39df66ce88979962e026cd209b0150aa882d63a48d3599c88357e1ad3f0ed78b44f763b256fbb123deecbad60d35ecb602
7
+ data.tar.gz: 725f0cacf5b4ab8afb59bf063f1953d7b19267253d4fe6ccf644102f2c31fca3f08cb59bde263956bfe283b09539c9dbd40f93ba8cc9e1c1eb1867afd4e3c066
@@ -133,7 +133,7 @@ module RelatonBipm
133
133
  # @param title [String]
134
134
  # @return [RelatonBib::TypedTitleStringCollection]
135
135
  def titles(title)
136
- RelatonBib::TypedTitleString.from_string title, "en", "Latn"
136
+ RelatonBib::TypedTitleString.from_string title, "en", "Latn", "text/html"
137
137
  end
138
138
 
139
139
  # @param vol [String]
@@ -244,6 +244,7 @@ module RelatonBipm
244
244
  def get_article(path, vol, ish, agent) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
245
245
  agent.agent.allowed_error_codes = [403]
246
246
  rsp = agent.get path
247
+ title = rsp.at("//h1[@itemprop='headline']").children.to_xml
247
248
  check_response rsp
248
249
  url = rsp.uri
249
250
  bib = rsp.link_with(text: "BibTeX").href
@@ -251,7 +252,7 @@ module RelatonBipm
251
252
  check_response rsp
252
253
  bt = BibTeX.parse(rsp.body).first
253
254
  bibitem(
254
- docid: btdocid(bt), title: titles(bt.title.to_s), date: btdate(bt),
255
+ docid: btdocid(bt), title: titles(title), date: btdate(bt),
255
256
  abstract: btabstract(bt), doctype: bt.type.to_s, series: series,
256
257
  link: btlink(bt, url), contributor: btcontrib(bt),
257
258
  extent: btextent(vol, ish, bt.pages.to_s)
@@ -1,3 +1,3 @@
1
1
  module RelatonBipm
2
- VERSION = "1.13.6".freeze
2
+ VERSION = "1.13.7".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.6
4
+ version: 1.13.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-20 00:00:00.000000000 Z
11
+ date: 2022-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -227,7 +227,7 @@ licenses:
227
227
  metadata:
228
228
  homepage_uri: https://github.com/relaton/relaton-bipm
229
229
  source_code_uri: https://github.com/relaton/relaton-bipm
230
- post_install_message:
230
+ post_install_message:
231
231
  rdoc_options: []
232
232
  require_paths:
233
233
  - lib
@@ -242,8 +242,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
242
  - !ruby/object:Gem::Version
243
243
  version: '0'
244
244
  requirements: []
245
- rubygems_version: 3.2.3
246
- signing_key:
245
+ rubygems_version: 3.1.6
246
+ signing_key:
247
247
  specification_version: 4
248
248
  summary: 'RelatonBipm: retrieve BIPM Standards for bibliographic use using the BibliographicItem
249
249
  model'