relaton-bipm 1.13.6 → 1.13.7
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/bipm_bibliography.rb +3 -2
- data/lib/relaton_bipm/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0515bfe2447d7a6881937d4b4d30d88143c5c15928f0f7698731b5cbd49435d
|
|
4
|
+
data.tar.gz: 48cb0ea748808d446b24147f7e4c1c5882e955800c1f38e4301e327d0f45bc7f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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(
|
|
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)
|
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.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-
|
|
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.
|
|
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'
|