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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd1ba0c493bc7618a485f2cc4e25db0ce6faf11e615afedcc2572562cc3a9794
4
- data.tar.gz: a8d996b7dbc6f6143b8907d4e8b749f8d62cd7ba8290c5ead65d731160449a5e
3
+ metadata.gz: 79bc18302007dac3a0b41311d87a1449cb05af51b4b15e17bcc8aac8a8d3c6d4
4
+ data.tar.gz: 479ce659cb6301c9069a7bf777e6f7ff5a260c8c8779611cdc9d8d8c9dcc9994
5
5
  SHA512:
6
- metadata.gz: c7b742f50ce2f8ba7241ec2bb98ad8b288f8cf06ae0689ed31b7f9eecc8a9829f277c9f41091c1e7f90e39415bf5ad69ba66d291fdbd29fcb3665df17b6ef03d
7
- data.tar.gz: 62e2b8d4bab5542febe748e476ccdad6eb7d215701ef28fdfdbf006ec8a84012831af65eb2ce1f58d73a815bcab5d3ee86ce8d130540637d9c428f7ab90aac88
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>
@@ -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(type: did[:type], id: did[:id])
128
+ RelatonBib::DocumentIdentifier.new(**did)
129
129
  end
130
130
  end
131
131
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonBsi
4
- VERSION = "1.10.0"
4
+ VERSION = "1.10.1"
5
5
  end
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.0"
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.0
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-01-30 00:00:00.000000000 Z
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.0
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.0
152
+ version: 1.10.1
153
153
  description: 'RelatonBsi: retrieve BSI Standards for bibliographic use using the BibliographicItem
154
154
  model'
155
155
  email: