relaton-ogc 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: e799bd4fcdccd9eff861bfa1681dc1c3cffb5722bd6e4857911fa31ab135a75a
4
- data.tar.gz: cd3cc2d1b72a10ed0d13095a65f6b2ccd585f68794c3a3a2e4498f6a17d0fc82
3
+ metadata.gz: e0971dd92d1bf002f5a785a9fe4387020bf359f903097c39095c4f1546d19adc
4
+ data.tar.gz: 90bfffeaf964a740981517482b17101cb1217d4fa1f9978675dd6bab6a4fbce4
5
5
  SHA512:
6
- metadata.gz: ae581db75d46459cba905dc4e22709f27d880130467ff9572cbd87d3bbc92a48d37c8a7c47c949e99e18496888068f82c16a5574caec1d0f1b3a4c8f5123d253
7
- data.tar.gz: d26863aa5daef59cce7b2d6b1ae2993415805f99db62ce8f3c935155f5831e3ec494b9f4c079d338ce441f17bd997e06bdc48797924894d7820cc8f129a00db9
6
+ metadata.gz: 8bc329ea61761ca7c36c893b699d19a8dc6bfcc6a8d5ff00f96cb575821a4a1fa81c49fed946e6812db29b4f3630d08dab2cda6ba214d99f632e48856b4943f4
7
+ data.tar.gz: 97a9fd195f3a0afd5cab59489c264bdc93cb30011d719b39207d2c43db6ee51ebf6450f7d0be49d97c5a95c6142c83075a9b1626479532eb6c151fdd26c07e4d
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>
@@ -17,7 +17,7 @@ module RelatonOgc
17
17
  # @param code [Strig]
18
18
  # @param year [String]
19
19
  # @param opts [Hash]
20
- def initialize(code, year = nil)
20
+ def initialize(code, year = nil) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
21
21
  super
22
22
  # @etagfile = File.expand_path "etag.txt", DATADIR
23
23
  # @array = from_json(ref).sort_by do |hit|
@@ -70,7 +70,7 @@ module RelatonOgc
70
70
  # @param identifier [String]
71
71
  # @return [Array<RelatonBib::DocumentIdentifier>]
72
72
  def fetch_docid(identifier)
73
- [RelatonBib::DocumentIdentifier.new(id: identifier, type: "OGC")]
73
+ [RelatonBib::DocumentIdentifier.new(id: identifier, type: "OGC", primary: true)]
74
74
  end
75
75
 
76
76
  # @param url [String]
@@ -1,3 +1,3 @@
1
1
  module RelatonOgc
2
- VERSION = "1.10.0".freeze
2
+ VERSION = "1.10.1".freeze
3
3
  end
data/relaton_ogc.gemspec CHANGED
@@ -35,5 +35,5 @@ Gem::Specification.new do |spec|
35
35
  spec.add_development_dependency "webmock"
36
36
 
37
37
  spec.add_dependency "faraday", "~> 1.1"
38
- spec.add_dependency "relaton-iso-bib", "~> 1.10.0"
38
+ spec.add_dependency "relaton-iso-bib", "~> 1.10.1"
39
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ogc
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: 'RelatonOgc: retrieve OGC Standards for bibliographic use using the OgcBibliographicItem
154
154
  model'
155
155
  email: