relaton-bipm 1.13.6 → 1.13.8
Sign up to get free protection for your applications and to get access to all the features.
- 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: a0aef7cda16066af969c5c5fd6d329c603d5f3d023d89c1b5c01e8301e820921
|
4
|
+
data.tar.gz: 884092e2963a67f72902352ba2016aa267397937836dc1ea2275f43a667ca7c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 953db4dc18160ea1a74bfbf9cb90be9171487a96e2f7ca9c438653b979753209d2c52ab278fc5a3c4c81bfcec07fb625b783fb2e04696b305e13ee5ce6628d48
|
7
|
+
data.tar.gz: 5d5d0dd12160d75ceed58fe60a659405827e39944732bc3369385c0d2912be16eae6ae39c0c1e0e8a6e937b46a0fb11f6abcdb4c99f46b581987f266444892cd
|
@@ -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]
|
@@ -245,13 +245,14 @@ module RelatonBipm
|
|
245
245
|
agent.agent.allowed_error_codes = [403]
|
246
246
|
rsp = agent.get path
|
247
247
|
check_response rsp
|
248
|
+
title = rsp.at("//h1[@itemprop='headline']").children.to_xml
|
248
249
|
url = rsp.uri
|
249
250
|
bib = rsp.link_with(text: "BibTeX").href
|
250
251
|
rsp = agent.get bib
|
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.8
|
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'
|