metanorma-ogc 2.6.5 → 2.6.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17f8abe4584052c8638ff63af0cf4f601329a1833105aa4847d70c8746c285ca
4
- data.tar.gz: e9287cf4b36ddf56eb74b927e677ec483f96a934bd891014d1bdada95eb07823
3
+ metadata.gz: f4ab48de717eb69643066a331b7b70b6fc5c4c0cf361e1800ea1fc8aa61cbd74
4
+ data.tar.gz: 5433c82cabbf8262d41602a84013391bf82083c3dddc216b1a0ce04b735950f3
5
5
  SHA512:
6
- metadata.gz: a8e30d2b9bdc650ae6c3c953221ea480761bbc06eb8bc3a09ff8b5b65799896893ca8a4d5d928f240b877990a32f61c4d3cea183bbad3928244eea05d682bc0e
7
- data.tar.gz: 3966ff5a7adbb26710a33606cf97cc622db0d2154a50e07453c5d5b05c2228022408435a63660dd51c54157ba4a8a6e3fee43267c2489217a781f3e2a042f053
6
+ metadata.gz: a4e0e711b1e6636bf0724a93f1ba818ed4d52d4208dd8e2624c8991ed5bd6c279965a931ca051dbc192a29211551aaf99de9fe54fd69070e3c448ff900e25fed
7
+ data.tar.gz: 2aa9c78676a0ad5b2057249c7648b8e025ae8a9d491acc336492485d514a10a9b1333c785249df129ddc309c9f44f72fd6ee184a1668f8170abec480d3596a9a
@@ -36,8 +36,9 @@ module IsoDoc
36
36
  h2 = term.at("./preceding-sibling::*[@class = 'TermNum'][1]")
37
37
  term["class"] = h2["class"]
38
38
  term["id"] = h2["id"]
39
- term.children.first.previous = " "
40
- term.children.first.previous = h2.remove.children
39
+ # TODO to PresentationXML
40
+ term.add_first_child " "
41
+ term.add_first_child h2.remove.children
41
42
  end
42
43
 
43
44
  def term_cleanup_merge_admitted(term)
@@ -50,7 +51,7 @@ module IsoDoc
50
51
  end
51
52
 
52
53
  def example_parse(node, out)
53
- name = node.at(ns("./name"))
54
+ name = node.at(ns("./fmt-name"))
54
55
  example_name_parse(node, out, name) # if name
55
56
  super
56
57
  end
@@ -143,11 +143,10 @@ module IsoDoc
143
143
  def figure_parse1(node, out)
144
144
  out.div **figure_attrs(node) do |div|
145
145
  node.children.each do |n|
146
- figure_key(out) if n.name == "dl"
147
- parse(n, div) unless n.name == "name"
146
+ parse(n, div) unless n.name == "fmt-name"
148
147
  end
149
148
  end
150
- figure_name_parse(node, out, node.at(ns("./name")))
149
+ figure_name_parse(node, out, node.at(ns("./fmt-name")))
151
150
  end
152
151
 
153
152
  def html_cleanup(html)
@@ -170,7 +169,7 @@ module IsoDoc
170
169
  encoding: "UTF-8")
171
170
  "#{a[0]}#{scripts}#{a[1]}"
172
171
  end
173
-
172
+
174
173
  # to pass on to imported _coverpage.scss
175
174
  def scss_fontheader(is_html_css)
176
175
  super + <<~SCSS
@@ -32,15 +32,6 @@ module IsoDoc
32
32
  def submittingorgs_path
33
33
  "//bibdata/contributor[role/@type = 'author']/organization/name"
34
34
  end
35
-
36
- def ogc_draft_ref?(ref)
37
- return unless ref.at(ns("./docidentifier[@type = 'OGC']"))
38
-
39
- status = ref.at(ns("./status/stage"))&.text or return
40
- return if %w(approved published deprecated retired).include? status
41
-
42
- true
43
- end
44
35
  end
45
36
  end
46
37
  end
@@ -81,7 +81,7 @@ module IsoDoc
81
81
  m << n.text
82
82
  end
83
83
  c.empty? and c = ["Open Geospatial Consortium"]
84
- set(:copyright_holder, @i18n.boolean_conj(c, "and"))
84
+ set(:copyright_holder, connectives_strip(@i18n.boolean_conj(c, "and")))
85
85
  end
86
86
 
87
87
  def docid(isoxml, _out)