metanorma-iho 1.4.6 → 1.4.8
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/iho/metadata.rb +8 -3
- data/lib/isodoc/iho/xref.rb +13 -0
- data/lib/metanorma/iho/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d50fe95ace4c8311cdad3d9087f4d5349cf4c127110be79e7b8c59d8b421928f
|
|
4
|
+
data.tar.gz: 5a78fd2fd551c049d16e2410239101481c24ee0d9d1bd1018db03348acee88f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e3f06dad6e1cea3bbb13de4343a4744cd6980b0a19dde21db3e46d7bddb6210f9d49d2085f7e752fdee27098c48a792f5fcc0098e19c58ffc89321e7bc53548
|
|
7
|
+
data.tar.gz: 8251f478a30c4d9832bf4d0c8aaac0ebbef273d4f7168c4884391a3a248d128af039f21b37a3862a6da5c89d0ad8b53c02996a6f0df0320c01259fe116c3a0d3
|
data/lib/isodoc/iho/metadata.rb
CHANGED
|
@@ -46,9 +46,14 @@ module IsoDoc
|
|
|
46
46
|
abbr = org&.at(ns("./abbreviation"))&.text || "IHO"
|
|
47
47
|
set(:publisher_name, name)
|
|
48
48
|
set(:publisher_abbr, abbr)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
#
|
|
49
|
+
return unless org
|
|
50
|
+
|
|
51
|
+
# The cover templates read org_name / org_abbrev labels. Only a
|
|
52
|
+
# publisher NAMED in document bibdata (WMO on S-1XX product
|
|
53
|
+
# specifications) replaces them: when bibdata names no publisher,
|
|
54
|
+
# the flavor's own localized labels stand, as they are the IHO
|
|
55
|
+
# identity in the document language (metanorma-iho#566: S-4 is
|
|
56
|
+
# published in English, French and Spanish editions).
|
|
52
57
|
labels["org_name"] = name
|
|
53
58
|
labels["org_abbrev"] = abbr
|
|
54
59
|
end
|
data/lib/isodoc/iho/xref.rb
CHANGED
|
@@ -61,6 +61,17 @@ module IsoDoc
|
|
|
61
61
|
# super
|
|
62
62
|
# end
|
|
63
63
|
|
|
64
|
+
# Resolution-style documents (IALA general-assembly resolutions and
|
|
65
|
+
# their kin) transcribe their content as bare blocks directly under
|
|
66
|
+
# <sections>, with no clause wrappers. Give those blocks their
|
|
67
|
+
# displayorder after the modelled sections: the top-level render
|
|
68
|
+
# walk in HTML, Word and PDF presupposes @displayorder on every
|
|
69
|
+
# element, and blocks left unordered are silently dropped from the
|
|
70
|
+
# output.
|
|
71
|
+
UNMODELLED_SECTIONS_XPATH =
|
|
72
|
+
"//sections/*[not(self::clause or self::terms or " \
|
|
73
|
+
"self::definitions or self::references or self::floating-title)]"
|
|
74
|
+
|
|
64
75
|
def clause_order_main(docxml)
|
|
65
76
|
if docxml.at(ns("//bibliography//references[@normative = 'true']")) ||
|
|
66
77
|
docxml.at(ns("//sections/references[@normative = 'true']"))
|
|
@@ -69,6 +80,7 @@ module IsoDoc
|
|
|
69
80
|
{ path: "#{@klass.norm_ref_xpath} | //sections/references" },
|
|
70
81
|
{ path: "//sections/terms | //sections/definitions | " \
|
|
71
82
|
"//sections/clause[not(@type = 'scope')]", multi: true },
|
|
83
|
+
{ path: UNMODELLED_SECTIONS_XPATH, multi: true },
|
|
72
84
|
]
|
|
73
85
|
else
|
|
74
86
|
[
|
|
@@ -77,6 +89,7 @@ module IsoDoc
|
|
|
77
89
|
"//bibliography/references[@normative = 'true'] | " \
|
|
78
90
|
"//bibliography/clause[.//references[@normative = 'true']] | " \
|
|
79
91
|
"//sections/clause", multi: true },
|
|
92
|
+
{ path: UNMODELLED_SECTIONS_XPATH, multi: true },
|
|
80
93
|
]
|
|
81
94
|
end
|
|
82
95
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-iho
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pubid
|