metanorma-iso 3.5.6 → 3.5.7
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/lib/isodoc/iso/presentation_terms.rb +9 -2
- data/lib/metanorma/iso/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a777848f763e77eabb2bd88a175d42383ab383487a0bc22f73d7430181261590
|
|
4
|
+
data.tar.gz: be3466479bdd0d5b2d6a1f44156f46f37f3cd9bfa6b88fb05ea268fb52aed6ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e514bae4e7c4369d2e360e817f2feebbc1c459b9837edf16e3ca4bfcca3980e7626a1daa7360b7215d57daef36bae5fbafbbafe211e3a5c33069ae4be56782f4
|
|
7
|
+
data.tar.gz: 8c4ac63ba94ffbe9569ed9699d562ef8044f29435e9584faf5585147f1eedd7b001f136532b826bfd8fe272bf541d06e374599b3d043526cefe53e0905153d92
|
|
@@ -11,7 +11,7 @@ module IsoDoc
|
|
|
11
11
|
concept_term(docxml)
|
|
12
12
|
(docxml.xpath(ns("//concept")) - docxml.xpath(ns("//term//concept")))
|
|
13
13
|
.each do |node|
|
|
14
|
-
in_concept_container?(node) and
|
|
14
|
+
!in_concept_container?(node) and
|
|
15
15
|
concept_render(node, ital: "false", ref: "false",
|
|
16
16
|
linkref: "true", linkmention: "false")
|
|
17
17
|
end
|
|
@@ -22,12 +22,19 @@ module IsoDoc
|
|
|
22
22
|
m = {}
|
|
23
23
|
(f.xpath(ns(".//concept")) - f.xpath(ns(".//term//concept")))
|
|
24
24
|
.each do |c|
|
|
25
|
-
in_concept_container?(c) and
|
|
25
|
+
!in_concept_container?(c) and
|
|
26
26
|
concept_term1(c, m)
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
# The concepts the ISO pass renders are the ones OUTSIDE the semantic
|
|
32
|
+
# <definition>/<source>/<related> containers: their display twins under
|
|
33
|
+
# <fmt-definition>, the body text, and the term notes. Concepts inside
|
|
34
|
+
# the semantic containers must be left untouched — their xrefs are not
|
|
35
|
+
# resolved there, and no renderer displays the semantic copy. 81593cc
|
|
36
|
+
# inverted this polarity (metanorma-iso#1692): every visible mention
|
|
37
|
+
# came out empty because the pass rendered only the invisible copy.
|
|
31
38
|
# Node#ancestors(selector) runs an XPath match per ancestor; with
|
|
32
39
|
# this called per concept on deeply nested terms it is quadratic on
|
|
33
40
|
# large vocabularies. Walk parents directly instead.
|