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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 762ff6b45033ac0a1d992a71e317857a198bebf26078a5018eb7f66932a3b13a
4
- data.tar.gz: f57772a8f6a38508d52275df9371f734a62aa6ab2e937f4f1796ee91654a86cc
3
+ metadata.gz: 0e35dcda4191d7eeb80cff93c299c6d7b629af7fa7534d8c08edf740573d98bd
4
+ data.tar.gz: 7a1b3a52177f1ef5ad36d530c1c2cc2a71f69c5dfe3232d5619b3429a86849b4
5
5
  SHA512:
6
- metadata.gz: fcc4a7e94e32c77c4e5ac26811797db97a57616af9c2867a299c1b155a7209c302f24e372e5bae5dee7287e59ac5e5a8bf08ffafd068d2fbc88b74784ac1d14d
7
- data.tar.gz: a688c0ef854eaa91003b9728ed46e54498b17a75f877a84418862fa1d960cfec5e501bb56661ea545fcdf6877f465d77c2fccc985ed0968a29cb96a7f0413910
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, and year
127
+ === Get standard by code and year
128
128
  [source,ruby]
129
129
  ----
130
- RelatonBsi::BsiBibliographicItem RelatonBsi::BsiBibliography
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonBsi
4
- VERSION = "1.9.1"
4
+ VERSION = "1.9.2"
5
5
  end
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.1
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-03 00:00:00.000000000 Z
11
+ date: 2021-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml