metanorma-iso 2.4.6 → 2.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/iso/iso.amendment.xsl +299 -182
- data/lib/isodoc/iso/iso.international-standard.xsl +299 -182
- data/lib/metanorma/iso/front.rb +6 -3
- data/lib/metanorma/iso/version.rb +1 -1
- metadata +2 -2
data/lib/metanorma/iso/front.rb
CHANGED
@@ -13,13 +13,16 @@ module Metanorma
|
|
13
13
|
super
|
14
14
|
structured_id(node, xml)
|
15
15
|
id = iso_id_default(iso_id_params(node))
|
16
|
-
id.stage and
|
17
|
-
xml.stagename metadata_stagename(id)&.strip,
|
18
|
-
**attr_code(abbreviation: id.typed_stage_abbrev&.strip)
|
16
|
+
id.stage and metadata_stage(id, xml)
|
19
17
|
@amd && a = node.attr("updates-document-type") and
|
20
18
|
xml.updates_document_type a
|
21
19
|
end
|
22
20
|
|
21
|
+
def metadata_stage(id, xml)
|
22
|
+
xml.stagename metadata_stagename(id)&.strip,
|
23
|
+
**attr_code(abbreviation: id.typed_stage_abbrev&.strip)
|
24
|
+
end
|
25
|
+
|
23
26
|
def metadata_stagename(id)
|
24
27
|
if @amd
|
25
28
|
id.amendments&.first&.stage&.name ||
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06
|
11
|
+
date: 2023-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-standoc
|