metanorma-iso 2.8.5 → 2.8.6

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.
@@ -32,8 +32,8 @@ module Metanorma
32
32
  node.attr("#{v}-number") or next
33
33
  node.attr(v) or node.set_attr(v, "")
34
34
  o = { source: [v], role: approval ? "authorizer" : "author",
35
- default_org: false, committee: true, agency: agency,
36
- desc: v.sub(/^approval-/, "").gsub("-", " ").capitalize }
35
+ default_org: false, committee: true, agency:,
36
+ desc: v.sub(/^approval-/, "").tr("-", " ").capitalize }
37
37
  org_contributor(node, xml, o)
38
38
  end
39
39
  approval or committee_contributors_approval(node, xml, agency)
@@ -52,11 +52,15 @@ module Metanorma
52
52
  end
53
53
 
54
54
  def contrib_committee_build(xml, agency, committee)
55
- n = org_abbrev.invert[agency] and agency = n
55
+ name = org_abbrev.invert[agency] and agency = name
56
56
  xml.name agency
57
- xml.subdivision committee[:name]
58
- committee[:abbr] and xml.abbreviation committee[:abbr]
59
- committee[:ident] and xml.identifier committee[:ident]
57
+ xml.subdivision do |s|
58
+ s.organization do |o|
59
+ o.name committee[:name]
60
+ committee[:abbr] and o.abbreviation committee[:abbr]
61
+ committee[:ident] and o.identifier committee[:ident]
62
+ end
63
+ end
60
64
  end
61
65
 
62
66
  COMMITTEE_ABBREVS =