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 +4 -4
- data/grammars/biblio.rng +5 -3
- data/lib/relaton_cie/cie_bibliography.rb +1 -1
- data/lib/relaton_cie/data_fetcher.rb +2 -2
- data/lib/relaton_cie/version.rb +1 -1
- data/relaton_cie.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: '09b7564380e0580d981033ac23690f834b7647e95feab31702d7534daa961e7c'
|
4
|
+
data.tar.gz: b351710545bf6bd180947bb6aa7e87b016cd9abdb7387e4b63e3e30af1e5b50b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)]
|
data/lib/relaton_cie/version.rb
CHANGED
data/relaton_cie.gemspec
CHANGED
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.
|
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
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.10.
|
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.
|
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:
|