relaton-bsi 1.9.1 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +2 -3
- data/lib/relaton_bsi/scrapper.rb +1 -1
- data/lib/relaton_bsi/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: 0e35dcda4191d7eeb80cff93c299c6d7b629af7fa7534d8c08edf740573d98bd
|
4
|
+
data.tar.gz: 7a1b3a52177f1ef5ad36d530c1c2cc2a71f69c5dfe3232d5619b3429a86849b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 915df61335547d25559ddf97c92b0c7029cf679eb3f09131de86698797912c687be3af9dea159fdb46c43a73915bc1976338925116636b02d2832abe30f06f21
|
7
|
+
data.tar.gz: 70b54bc05430c5a983fca9d4b894eaa770d212a662f0741fd08275fcbf2005cb971c883523a590b261c7bda697e7a40d7e30dc59e5c87482bc4a8d488fce5cab
|
data/README.adoc
CHANGED
@@ -124,11 +124,10 @@ item.to_xml bibdata: true
|
|
124
124
|
</bibdata>"
|
125
125
|
----
|
126
126
|
|
127
|
-
=== Get code
|
127
|
+
=== Get standard by code and year
|
128
128
|
[source,ruby]
|
129
129
|
----
|
130
|
-
RelatonBsi::
|
131
|
-
[7] pry(main)> RelatonBsi::BsiBibliography.get "BS EN ISO 8848:2021"
|
130
|
+
RelatonBsi::BsiBibliography.get "BS EN ISO 8848:2021"
|
132
131
|
[relaton-bsi] ("BS EN ISO 8848:2021") fetching...
|
133
132
|
[relaton-bsi] ("BS EN ISO 8848:2021") found BS EN ISO 8848:2021
|
134
133
|
=> #<RelatonBsi::BsiBibliographicItem:0x007feb14814ca8
|
data/lib/relaton_bsi/scrapper.rb
CHANGED
@@ -120,7 +120,7 @@ module RelatonBsi
|
|
120
120
|
# @return [Array<RelatonBib::DocumentIdentifier>]
|
121
121
|
def fetch_docid(docid, data)
|
122
122
|
ids = [{ type: "BSI", id: docid }]
|
123
|
-
if data.any?
|
123
|
+
if data.any? && data["variants"]["edges"][0]["node"]["isbn"]
|
124
124
|
isbn = data["variants"]["edges"][0]["node"]["isbn"]["value"]
|
125
125
|
ids << { type: "ISBN", id: isbn }
|
126
126
|
end
|
data/lib/relaton_bsi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-bsi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|