relaton-bsi 1.10.0 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/biblio.rng +5 -3
- data/lib/relaton_bsi/scrapper.rb +2 -2
- data/lib/relaton_bsi/version.rb +1 -1
- data/relaton_bsi.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79bc18302007dac3a0b41311d87a1449cb05af51b4b15e17bcc8aac8a8d3c6d4
|
4
|
+
data.tar.gz: 479ce659cb6301c9069a7bf777e6f7ff5a260c8c8779611cdc9d8d8c9dcc9994
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bfd6ab367994e59c4546ce167aa45c43c97a92a514fc8e041408002238ffece31a7941384523755181e368e56df16b786272dcffedd44fe02936329ff7c90a0
|
7
|
+
data.tar.gz: 0122bcb6f9a3d7383853529bc7d217100fad9be0577c82960db31df70bfeff660c898b307fbfff76ad436072af35070cb4643a2ef927f2d831df6fded0df3db9
|
data/grammars/biblio.rng
CHANGED
@@ -209,9 +209,6 @@
|
|
209
209
|
<zeroOrMore>
|
210
210
|
<ref name="contact"/>
|
211
211
|
</zeroOrMore>
|
212
|
-
<zeroOrMore>
|
213
|
-
<ref name="uri"/>
|
214
|
-
</zeroOrMore>
|
215
212
|
</element>
|
216
213
|
</define>
|
217
214
|
<define name="fullname">
|
@@ -828,6 +825,11 @@
|
|
828
825
|
<optional>
|
829
826
|
<attribute name="scope"/>
|
830
827
|
</optional>
|
828
|
+
<optional>
|
829
|
+
<attribute name="primary">
|
830
|
+
<data type="boolean"/>
|
831
|
+
</attribute>
|
832
|
+
</optional>
|
831
833
|
<text/>
|
832
834
|
</element>
|
833
835
|
</define>
|
data/lib/relaton_bsi/scrapper.rb
CHANGED
@@ -119,13 +119,13 @@ module RelatonBsi
|
|
119
119
|
# @param data [Hash]
|
120
120
|
# @return [Array<RelatonBib::DocumentIdentifier>]
|
121
121
|
def fetch_docid(docid, data) # rubocop:disable Metrics/AbcSize
|
122
|
-
ids = [{ type: "BSI", id: docid }]
|
122
|
+
ids = [{ type: "BSI", id: docid, primary: true }]
|
123
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
|
127
127
|
ids.map do |did|
|
128
|
-
RelatonBib::DocumentIdentifier.new(
|
128
|
+
RelatonBib::DocumentIdentifier.new(**did)
|
129
129
|
end
|
130
130
|
end
|
131
131
|
|
data/lib/relaton_bsi/version.rb
CHANGED
data/relaton_bsi.gemspec
CHANGED
@@ -40,5 +40,5 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.add_dependency "graphql", "1.13.6"
|
41
41
|
spec.add_dependency "graphql-client", "~> 0.16.0"
|
42
42
|
# spec.add_dependency "mechanize", "~> 2.8.0"
|
43
|
-
spec.add_dependency "relaton-iso-bib", "~> 1.10.
|
43
|
+
spec.add_dependency "relaton-iso-bib", "~> 1.10.1"
|
44
44
|
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.10.
|
4
|
+
version: 1.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.10.
|
145
|
+
version: 1.10.1
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 1.10.
|
152
|
+
version: 1.10.1
|
153
153
|
description: 'RelatonBsi: retrieve BSI Standards for bibliographic use using the BibliographicItem
|
154
154
|
model'
|
155
155
|
email:
|