relaton-cie 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: b2ab21cc873da1f53d60170e1bb9373b8bac8d0a07ac20dc8870d8909cdb523f
4
- data.tar.gz: afedad5cb00f57370b54fa4bd35810f8fe7ec7b35bde92d856fd656cc2ae5327
3
+ metadata.gz: '09b7564380e0580d981033ac23690f834b7647e95feab31702d7534daa961e7c'
4
+ data.tar.gz: b351710545bf6bd180947bb6aa7e87b016cd9abdb7387e4b63e3e30af1e5b50b
5
5
  SHA512:
6
- metadata.gz: c8ad9d61718f6efb6d2a18392487136a0cce6e24b39d1744485ac0bfbf33ff7178f4f4b11df85ba50186c2ebe220db6ff613513d33a99f2d189dfe2dc9c425e8
7
- data.tar.gz: fe887f40483fddebdfba41333fd391c52ac08eefe20d31703c0eb748e9783caf0869b5a0912814a5d44bb7fa1c058148bc478a994a6961d1f144d9224662fe3d
6
+ metadata.gz: 32583f5b589c57ae8c5644b4631eaeff2e777ec1e668ad1dffc11bdac518046ff14dd9bf4f2452ee1daae4f66fe292eb516a52ad491f0d4597b6c2c5075be932
7
+ data.tar.gz: 77f5c0515b777ea5385d09bc1008579117a3393bb0232800bb6369d209d1fafaede532d88adf3907ee177f7523e96fb25313e6e7334f46571ba3cf2b04a55f24
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>
@@ -21,7 +21,7 @@ module RelatonCie
21
21
  warn "[relaton-cie] (\"#{code}\") found #{result.docidentifier.first.id}"
22
22
  else
23
23
  warn "[relaton-cie] WARNING no match found online for #{code}. "\
24
- "The code must be exactly like it is on the standards website."
24
+ "The code must be exactly like it is on the standards website."
25
25
  end
26
26
  result
27
27
  end
@@ -34,7 +34,7 @@ module RelatonCie
34
34
  .gsub(/,(?=\S)/, " ")
35
35
  c = "CIE #{num}"
36
36
  end
37
- docid = [RelatonBib::DocumentIdentifier.new(type: "CIE", id: c)]
37
+ docid = [RelatonBib::DocumentIdentifier.new(type: "CIE", id: c, primary: true)]
38
38
  isbn = doc.at('//dt[contains(.,"ISBN")]/following-sibling::dd')
39
39
  docid << RelatonBib::DocumentIdentifier.new(type: c2.match(/\w+/).to_s, id: c2.strip) if c2
40
40
  docid << RelatonBib::DocumentIdentifier.new(type: "ISBN", id: isbn.text.strip) if isbn
@@ -74,7 +74,7 @@ module RelatonCie
74
74
  url = "https://www.techstreet.com#{ref[:href]}"
75
75
  title = RelatonBib::TypedTitleString.from_string ref.at('p/span[@class="title"]').text
76
76
  did = ref.at("h3").text
77
- docid = [RelatonBib::DocumentIdentifier.new(type: "CIE", id: did)]
77
+ docid = [RelatonBib::DocumentIdentifier.new(type: "CIE", id: did, primary: true)]
78
78
  on = ref.at("p/time")
79
79
  date = [RelatonBib::BibliographicDate.new(type: "published", on: on[:datetime])]
80
80
  link = [RelatonBib::TypedUri.new(type: "src", content: url)]
@@ -1,3 +1,3 @@
1
1
  module RelatonCie
2
- VERSION = "1.10.0".freeze
2
+ VERSION = "1.10.1".freeze
3
3
  end
data/relaton_cie.gemspec CHANGED
@@ -37,5 +37,5 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency "webmock"
38
38
 
39
39
  spec.add_dependency "mechanize", "~> 2.8.0"
40
- spec.add_dependency "relaton-bib", "~> 1.10.0"
40
+ spec.add_dependency "relaton-bib", "~> 1.10.1"
41
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-cie
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
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.10.0
117
+ version: 1.10.1
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.10.0
124
+ version: 1.10.1
125
125
  description: "RelatonEcma: retrieve CIE Standards for bibliographic use \nusing the
126
126
  BibliographicItem model.\n"
127
127
  email: