metanorma-standoc 2.9.4 → 2.9.5
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 81a040f93adb31ed93c820fafd3fd6e6a52f4495dfc718133c92625c09a7c454
|
|
4
|
+
data.tar.gz: fe0dfb411b0f884c433a7788c739d9507269ebfc8374c5892a2a2d34e3a4039c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e27143dc3445a8d74a4fa9a7f8b42d98789e434a05c590b9ecf03169b71a8b51892d80b9bf7a7b75a7f5806794a647ea7d50b64c5e87d461de1e501216b91d5f
|
|
7
|
+
data.tar.gz: 877f0be683c2f5829f2f6a19156e0cbb5e1b30fe84f1a50a63626f148da0745648a4a08904acfe9ab574842b973a607aa791ab3176a86567667ce6b3161e3400
|
|
@@ -74,7 +74,7 @@ module Metanorma
|
|
|
74
74
|
|
|
75
75
|
def metadata_date1(node, xml, type)
|
|
76
76
|
date = node.attr("#{type}-date")
|
|
77
|
-
date and xml.date
|
|
77
|
+
date and xml.date(type:) do |d|
|
|
78
78
|
d.on date
|
|
79
79
|
end
|
|
80
80
|
end
|
|
@@ -91,7 +91,7 @@ module Metanorma
|
|
|
91
91
|
a == "date" || /^date_\d+$/.match(a) or next
|
|
92
92
|
type, date = node.attr(a).split(/ /, 2)
|
|
93
93
|
type or next
|
|
94
|
-
xml.date
|
|
94
|
+
xml.date(type:) do |d|
|
|
95
95
|
d.on date
|
|
96
96
|
end
|
|
97
97
|
end
|
|
@@ -139,7 +139,7 @@ module Metanorma
|
|
|
139
139
|
def metadata_getrelation1(doc, xml, type, desc)
|
|
140
140
|
id = doc.split(/,\s*/)
|
|
141
141
|
xml.relation type: relation_normalise(type) do |r|
|
|
142
|
-
desc.nil? or r.description desc.
|
|
142
|
+
desc.nil? or r.description desc.tr("-", " ")
|
|
143
143
|
fetch_ref(r, doc, nil, **{}) or r.bibitem do |b|
|
|
144
144
|
b.title id[1] || "--"
|
|
145
145
|
b.docidentifier id[0]
|