relaton-iso-bib 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/grammars/biblio.rng +53 -26
- data/grammars/isodoc.rng +6 -3
- data/lib/relaton_iso_bib/iso_bibliographic_item.rb +7 -2
- data/lib/relaton_iso_bib/version.rb +1 -1
- data/lib/relaton_iso_bib/xml_parser.rb +1 -0
- data/relaton_iso_bib.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cb745444f966f6ef9c2b2d393319f1904fd9e639d985ce1723daed9314dc4eaa
|
|
4
|
+
data.tar.gz: 519e52105d3cebe757d9f40c08ddc421d4f00aaca163b7ea3fd601f0239a1b74
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8857658ecca25247a27cd79947332f114c7e1cfc50a5c18e9921db82194ba5ce62c34e84e69ca7823245d0804169271ed7c0d13fa2f7d8313eb20c2ea1bb7c8
|
|
7
|
+
data.tar.gz: f68965904d03379280d67551afbc7cb3f90c871ca919eb0fd0a0ac402e7005ad128781e4aab0f43d2b5a7e8bc427f973484b752245cdfd361e098e17a07ff1cf
|
data/grammars/biblio.rng
CHANGED
|
@@ -767,6 +767,8 @@
|
|
|
767
767
|
<value>unchanged</value>
|
|
768
768
|
<value>circulated</value>
|
|
769
769
|
<value>adapted</value>
|
|
770
|
+
<value>vote-started</value>
|
|
771
|
+
<value>vote-ended</value>
|
|
770
772
|
</choice>
|
|
771
773
|
</define>
|
|
772
774
|
<define name="bdate">
|
|
@@ -1019,38 +1021,63 @@
|
|
|
1019
1021
|
</define>
|
|
1020
1022
|
<define name="DocRelationType">
|
|
1021
1023
|
<choice>
|
|
1022
|
-
<value>obsoletes</value>
|
|
1023
|
-
<value>obsoletedBy</value>
|
|
1024
|
-
<value>supersedes</value>
|
|
1025
|
-
<value>supersededBy</value>
|
|
1026
|
-
<value>updates</value>
|
|
1027
|
-
<value>updatedBy</value>
|
|
1028
|
-
<value>complements</value>
|
|
1029
|
-
<value>derivedFrom</value>
|
|
1030
|
-
<value>translatedFrom</value>
|
|
1031
|
-
<value>hasTranslation</value>
|
|
1032
|
-
<value>adoptedFrom</value>
|
|
1033
|
-
<value>equivalent</value>
|
|
1034
|
-
<value>identical</value>
|
|
1035
|
-
<value>nonequivalent</value>
|
|
1036
|
-
<value>includedIn</value>
|
|
1037
1024
|
<value>includes</value>
|
|
1038
|
-
<value>
|
|
1039
|
-
<value>instanceOf</value>
|
|
1040
|
-
<value>partOf</value>
|
|
1025
|
+
<value>includedIn</value>
|
|
1041
1026
|
<value>hasPart</value>
|
|
1042
|
-
<value>
|
|
1043
|
-
<value>draftOf</value>
|
|
1027
|
+
<value>partOf</value>
|
|
1044
1028
|
<value>merges</value>
|
|
1029
|
+
<value>mergedInto</value>
|
|
1045
1030
|
<value>splits</value>
|
|
1046
|
-
<value>
|
|
1047
|
-
<value>
|
|
1048
|
-
<value>
|
|
1049
|
-
<value>
|
|
1050
|
-
<value>
|
|
1051
|
-
<value>
|
|
1031
|
+
<value>splitInto</value>
|
|
1032
|
+
<value>instance</value>
|
|
1033
|
+
<value>hasInstance</value>
|
|
1034
|
+
<value>exemplarOf</value>
|
|
1035
|
+
<value>hasExemplar</value>
|
|
1036
|
+
<value>manifestationOf</value>
|
|
1037
|
+
<value>hasManifestation</value>
|
|
1038
|
+
<value>reproductionOf</value>
|
|
1039
|
+
<value>hasReproduction</value>
|
|
1040
|
+
<value>reprintOf</value>
|
|
1041
|
+
<value>hasReprint</value>
|
|
1042
|
+
<value>expressionOf</value>
|
|
1043
|
+
<value>hasExpression</value>
|
|
1044
|
+
<value>translatedFrom</value>
|
|
1045
|
+
<value>hasTranslation</value>
|
|
1046
|
+
<value>arrangementOf</value>
|
|
1047
|
+
<value>hasArrangement</value>
|
|
1048
|
+
<value>abridgementOf</value>
|
|
1049
|
+
<value>hasAbridgement</value>
|
|
1050
|
+
<value>annotationOf</value>
|
|
1051
|
+
<value>hasAnnotation</value>
|
|
1052
|
+
<value>draftOf</value>
|
|
1053
|
+
<value>hasDraft</value>
|
|
1054
|
+
<value>editionOf</value>
|
|
1055
|
+
<value>hasEdition</value>
|
|
1056
|
+
<value>updates</value>
|
|
1057
|
+
<value>updatedBy</value>
|
|
1058
|
+
<value>derivedFrom</value>
|
|
1059
|
+
<value>derives</value>
|
|
1052
1060
|
<value>describes</value>
|
|
1053
1061
|
<value>describedBy</value>
|
|
1062
|
+
<value>catalogues</value>
|
|
1063
|
+
<value>cataloguedBy</value>
|
|
1064
|
+
<value>hasSuccessor</value>
|
|
1065
|
+
<value>successorOf</value>
|
|
1066
|
+
<value>adaptedFrom</value>
|
|
1067
|
+
<value>hasAdaptation</value>
|
|
1068
|
+
<value>adoptedFrom</value>
|
|
1069
|
+
<value>adoptedAs</value>
|
|
1070
|
+
<value>reviewOf</value>
|
|
1071
|
+
<value>hasReview</value>
|
|
1072
|
+
<value>commentaryOf</value>
|
|
1073
|
+
<value>hasCommentary</value>
|
|
1074
|
+
<value>related</value>
|
|
1075
|
+
<value>complements</value>
|
|
1076
|
+
<value>complementOf</value>
|
|
1077
|
+
<value>obsoletes</value>
|
|
1078
|
+
<value>obsoletedBy</value>
|
|
1079
|
+
<value>cited</value>
|
|
1080
|
+
<value>isCitedIn</value>
|
|
1054
1081
|
</choice>
|
|
1055
1082
|
</define>
|
|
1056
1083
|
<define name="docrelation">
|
data/grammars/isodoc.rng
CHANGED
|
@@ -129,6 +129,9 @@
|
|
|
129
129
|
</choice>
|
|
130
130
|
</attribute>
|
|
131
131
|
</optional>
|
|
132
|
+
<attribute name="normative">
|
|
133
|
+
<data type="boolean"/>
|
|
134
|
+
</attribute>
|
|
132
135
|
<optional>
|
|
133
136
|
<ref name="section-title"/>
|
|
134
137
|
</optional>
|
|
@@ -303,11 +306,11 @@
|
|
|
303
306
|
<ref name="paragraph"/>
|
|
304
307
|
</element>
|
|
305
308
|
</define>
|
|
306
|
-
<define name="TextElement" combine="choice">
|
|
307
|
-
<ref name="concept"/>
|
|
308
|
-
</define>
|
|
309
309
|
</include>
|
|
310
310
|
<!-- end overrides -->
|
|
311
|
+
<define name="TextElement" combine="choice">
|
|
312
|
+
<ref name="concept"/>
|
|
313
|
+
</define>
|
|
311
314
|
<define name="concept">
|
|
312
315
|
<element name="concept">
|
|
313
316
|
<optional>
|
|
@@ -35,7 +35,7 @@ module RelatonIsoBib
|
|
|
35
35
|
# @return [Array<RelatonIsoBib::TypedTitleString>]
|
|
36
36
|
|
|
37
37
|
# @return [String, NilClass]
|
|
38
|
-
attr_reader :doctype
|
|
38
|
+
attr_reader :doctype, :stagename
|
|
39
39
|
|
|
40
40
|
# @return [RelatonIsoBib::EditorialGroup]
|
|
41
41
|
attr_reader :editorialgroup
|
|
@@ -67,6 +67,7 @@ module RelatonIsoBib
|
|
|
67
67
|
# @param validity [RelatonBib:Validity, NilClass]
|
|
68
68
|
# @param docid [Array<RelatonBib::DocumentIdentifier>]
|
|
69
69
|
# @param structuredidentifier [RelatonIsoBib::StructuredIdentifier]
|
|
70
|
+
# @param stagename [String, NilClass]
|
|
70
71
|
#
|
|
71
72
|
# @param title [Array<Hash>]
|
|
72
73
|
# @option title [String] :title_intro
|
|
@@ -158,6 +159,7 @@ module RelatonIsoBib
|
|
|
158
159
|
@structuredidentifier = args[:structuredidentifier]
|
|
159
160
|
@doctype ||= args[:doctype]
|
|
160
161
|
@ics = args.fetch(:ics, []).map { |i| i.is_a?(Hash) ? Ics.new(i) : i }
|
|
162
|
+
@stagename = args[:stagename]
|
|
161
163
|
@id_attribute = true
|
|
162
164
|
end
|
|
163
165
|
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity
|
|
@@ -243,7 +245,8 @@ module RelatonIsoBib
|
|
|
243
245
|
end
|
|
244
246
|
super builder, **opts do |b|
|
|
245
247
|
if opts[:bibdata] && (doctype || respond_to?(:committee) && committee ||
|
|
246
|
-
editorialgroup || ics.any? || structuredidentifier ||
|
|
248
|
+
editorialgroup || ics.any? || structuredidentifier || stagename ||
|
|
249
|
+
block_given?)
|
|
247
250
|
b.ext do
|
|
248
251
|
b.doctype doctype if doctype
|
|
249
252
|
b.docsubtype docsubtype if respond_to?(:docsubtype) && docsubtype
|
|
@@ -255,6 +258,7 @@ module RelatonIsoBib
|
|
|
255
258
|
end
|
|
256
259
|
ics.each { |i| i.to_xml b }
|
|
257
260
|
structuredidentifier&.to_xml b
|
|
261
|
+
b.stagename stagename if stagename
|
|
258
262
|
yield b if block_given?
|
|
259
263
|
end
|
|
260
264
|
end
|
|
@@ -268,6 +272,7 @@ module RelatonIsoBib
|
|
|
268
272
|
hash["ics"] = single_element_array(ics) if ics&.any?
|
|
269
273
|
hash["structuredidentifier"] = structuredidentifier.to_hash if structuredidentifier
|
|
270
274
|
hash["doctype"] = doctype if doctype
|
|
275
|
+
hash["stagename"] = stagename if stagename
|
|
271
276
|
hash
|
|
272
277
|
end
|
|
273
278
|
|
data/relaton_iso_bib.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-iso-bib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.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: 2020-
|
|
11
|
+
date: 2020-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: debase
|
|
@@ -140,16 +140,16 @@ dependencies:
|
|
|
140
140
|
name: relaton-bib
|
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
|
143
|
-
- - "
|
|
143
|
+
- - ">="
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: 1.0.
|
|
145
|
+
version: 1.0.3
|
|
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.0.
|
|
152
|
+
version: 1.0.3
|
|
153
153
|
description: 'RelatonIsoBib: Ruby ISOXMLDOC impementation.'
|
|
154
154
|
email:
|
|
155
155
|
- open.source@ribose.com
|