relaton-3gpp 1.10.3 → 1.11.0
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 +24 -1
- data/grammars/isodoc.rng +73 -3
- data/lib/relaton_3gpp/hash_converter.rb +1 -1
- data/lib/relaton_3gpp/parser.rb +14 -7
- data/lib/relaton_3gpp/version.rb +1 -1
- data/relaton_3gpp.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: efd99624ed1dd3f25d4add9ee68720bfe1ea3d3f11fb801615e7a9ef112581dc
|
4
|
+
data.tar.gz: 11c82eb476e8b1797f792fd756605ce4bd786e6ed99e11322edf52ad96017b36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b2bb54e7074e9448354584f03391e0d7182c51f39fc4fffb7779712d4c062abef226eedf6a19809578ec42ee6e215b45c4acb9908dc901f5a44a6bde56536e1
|
7
|
+
data.tar.gz: 0a4ca6d78d6c222294330ec3e1e3d6b24d2b8ca99516e8940fae604484e0d5bfd69bf77caa751280dd79c6148e22a73d14b81f28e8743adc10543573a3b4b286
|
data/grammars/biblio.rng
CHANGED
@@ -677,6 +677,9 @@
|
|
677
677
|
<zeroOrMore>
|
678
678
|
<ref name="extent"/>
|
679
679
|
</zeroOrMore>
|
680
|
+
<optional>
|
681
|
+
<ref name="bibliographic_size"/>
|
682
|
+
</optional>
|
680
683
|
<zeroOrMore>
|
681
684
|
<ref name="accesslocation"/>
|
682
685
|
</zeroOrMore>
|
@@ -922,9 +925,29 @@
|
|
922
925
|
<text/>
|
923
926
|
</element>
|
924
927
|
</define>
|
928
|
+
<define name="sizevalue">
|
929
|
+
<element name="value">
|
930
|
+
<attribute name="type"/>
|
931
|
+
<text/>
|
932
|
+
</element>
|
933
|
+
</define>
|
934
|
+
<define name="bibliographic_size">
|
935
|
+
<element name="size">
|
936
|
+
<oneOrMore>
|
937
|
+
<ref name="sizevalue"/>
|
938
|
+
</oneOrMore>
|
939
|
+
</element>
|
940
|
+
</define>
|
925
941
|
<define name="extent">
|
926
942
|
<element name="extent">
|
927
|
-
<
|
943
|
+
<choice>
|
944
|
+
<zeroOrMore>
|
945
|
+
<ref name="locality"/>
|
946
|
+
</zeroOrMore>
|
947
|
+
<zeroOrMore>
|
948
|
+
<ref name="localityStack"/>
|
949
|
+
</zeroOrMore>
|
950
|
+
</choice>
|
928
951
|
</element>
|
929
952
|
</define>
|
930
953
|
<define name="series">
|
data/grammars/isodoc.rng
CHANGED
@@ -152,9 +152,7 @@
|
|
152
152
|
<data type="boolean"/>
|
153
153
|
</attribute>
|
154
154
|
</optional>
|
155
|
-
<
|
156
|
-
<ref name="PureTextElement"/>
|
157
|
-
</oneOrMore>
|
155
|
+
<ref name="XrefBody"/>
|
158
156
|
</element>
|
159
157
|
</define>
|
160
158
|
<define name="erefType">
|
@@ -188,6 +186,42 @@
|
|
188
186
|
<ref name="PureTextElement"/>
|
189
187
|
</oneOrMore>
|
190
188
|
</define>
|
189
|
+
<define name="localityStack">
|
190
|
+
<element name="localityStack">
|
191
|
+
<optional>
|
192
|
+
<attribute name="connective">
|
193
|
+
<choice>
|
194
|
+
<value>and</value>
|
195
|
+
<value>or</value>
|
196
|
+
<value>from</value>
|
197
|
+
<value>to</value>
|
198
|
+
<value/>
|
199
|
+
</choice>
|
200
|
+
</attribute>
|
201
|
+
</optional>
|
202
|
+
<zeroOrMore>
|
203
|
+
<ref name="locality"/>
|
204
|
+
</zeroOrMore>
|
205
|
+
</element>
|
206
|
+
</define>
|
207
|
+
<define name="sourceLocalityStack">
|
208
|
+
<element name="sourceLocalityStack">
|
209
|
+
<optional>
|
210
|
+
<attribute name="connective">
|
211
|
+
<choice>
|
212
|
+
<value>and</value>
|
213
|
+
<value>or</value>
|
214
|
+
<value>from</value>
|
215
|
+
<value>to</value>
|
216
|
+
<value/>
|
217
|
+
</choice>
|
218
|
+
</attribute>
|
219
|
+
</optional>
|
220
|
+
<zeroOrMore>
|
221
|
+
<ref name="sourceLocality"/>
|
222
|
+
</zeroOrMore>
|
223
|
+
</element>
|
224
|
+
</define>
|
191
225
|
<define name="ul">
|
192
226
|
<element name="ul">
|
193
227
|
<attribute name="id">
|
@@ -1098,6 +1132,16 @@
|
|
1098
1132
|
</define>
|
1099
1133
|
</include>
|
1100
1134
|
<!-- end overrides -->
|
1135
|
+
<define name="image" combine="choice">
|
1136
|
+
<element name="svg">
|
1137
|
+
<oneOrMore>
|
1138
|
+
<choice>
|
1139
|
+
<text/>
|
1140
|
+
<ref name="AnyElement"/>
|
1141
|
+
</choice>
|
1142
|
+
</oneOrMore>
|
1143
|
+
</element>
|
1144
|
+
</define>
|
1101
1145
|
<define name="MultilingualRenderingType">
|
1102
1146
|
<choice>
|
1103
1147
|
<value>common</value>
|
@@ -2631,4 +2675,30 @@
|
|
2631
2675
|
</zeroOrMore>
|
2632
2676
|
</element>
|
2633
2677
|
</define>
|
2678
|
+
<define name="XrefBody">
|
2679
|
+
<zeroOrMore>
|
2680
|
+
<ref name="XrefTarget"/>
|
2681
|
+
</zeroOrMore>
|
2682
|
+
<oneOrMore>
|
2683
|
+
<ref name="PureTextElement"/>
|
2684
|
+
</oneOrMore>
|
2685
|
+
</define>
|
2686
|
+
<define name="XrefTarget">
|
2687
|
+
<element name="location">
|
2688
|
+
<attribute name="target">
|
2689
|
+
<data type="string">
|
2690
|
+
<param name="pattern">\i\c*|\c+#\c+</param>
|
2691
|
+
</data>
|
2692
|
+
</attribute>
|
2693
|
+
<attribute name="connective">
|
2694
|
+
<choice>
|
2695
|
+
<value>and</value>
|
2696
|
+
<value>or</value>
|
2697
|
+
<value>from</value>
|
2698
|
+
<value>to</value>
|
2699
|
+
<value/>
|
2700
|
+
</choice>
|
2701
|
+
</attribute>
|
2702
|
+
</element>
|
2703
|
+
</define>
|
2634
2704
|
</grammar>
|
data/lib/relaton_3gpp/parser.rb
CHANGED
@@ -64,6 +64,7 @@ module Relaton3gpp
|
|
64
64
|
# internal: @spec[:"For publication"] == "0",
|
65
65
|
release: parse_release,
|
66
66
|
contributor: parse_contributor,
|
67
|
+
place: ["Sophia Antipolis Cedex, France"],
|
67
68
|
)
|
68
69
|
end
|
69
70
|
|
@@ -133,16 +134,18 @@ module Relaton3gpp
|
|
133
134
|
# @return [Array<RelatonBib::BibliographicDate>] date
|
134
135
|
#
|
135
136
|
def parse_date
|
136
|
-
|
137
|
-
if @row[:completed]
|
138
|
-
|
139
|
-
|
137
|
+
dates = { completed: "created", ACHIEVED_DATE: "published" }.each_with_object([]) do |(k, t), d|
|
138
|
+
# if @row[:completed]
|
139
|
+
next unless @row[k]
|
140
|
+
|
141
|
+
cd = Date.parse(@row[k]).to_s
|
142
|
+
d << RelatonBib::BibliographicDate.new(type: t, on: cd)
|
140
143
|
end
|
141
144
|
if @spec[:"title verified"]
|
142
145
|
td = Date.parse(@spec[:"title verified"]).to_s
|
143
|
-
|
146
|
+
dates << RelatonBib::BibliographicDate.new(type: "confirmed", on: td)
|
144
147
|
end
|
145
|
-
|
148
|
+
dates
|
146
149
|
end
|
147
150
|
|
148
151
|
#
|
@@ -240,8 +243,12 @@ module Relaton3gpp
|
|
240
243
|
# @return [Array<RelatonBib::ContributionInfo>] contributor
|
241
244
|
#
|
242
245
|
def parse_contributor # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
246
|
+
address = RelatonBib::Address.new(
|
247
|
+
street: ["c/o ETSI 650, route des Lucioles", "3GPP Mobile Competence Centre"],
|
248
|
+
postcode: "06921", city: "Sophia Antipolis Cedex", country: "France"
|
249
|
+
)
|
243
250
|
org = RelatonBib::Organization.new(
|
244
|
-
name: "3rd Generation Partnership Project", abbreviation: "3GPP",
|
251
|
+
name: "3rd Generation Partnership Project", abbreviation: "3GPP", contact: [address],
|
245
252
|
)
|
246
253
|
contribs = [RelatonBib::ContributionInfo.new(entity: org, role: [type: "author"])]
|
247
254
|
return contribs unless @tstatus && @tstatus[:rapporteur]
|
data/lib/relaton_3gpp/version.rb
CHANGED
data/relaton_3gpp.gemspec
CHANGED
@@ -46,6 +46,6 @@ Gem::Specification.new do |spec|
|
|
46
46
|
|
47
47
|
spec.add_dependency "mdb", "~> 0.5.0"
|
48
48
|
spec.add_dependency "net-ftp", "~> 0.1.0"
|
49
|
-
spec.add_dependency "relaton-bib", "~> 1.
|
49
|
+
spec.add_dependency "relaton-bib", "~> 1.11.0"
|
50
50
|
spec.add_dependency "rubyzip", "~> 2.3.0"
|
51
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-3gpp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
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-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
159
|
+
version: 1.11.0
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.
|
166
|
+
version: 1.11.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: rubyzip
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|