relaton-render 3.0.0.pre.alpha.17 → 3.0.0.pre.alpha.18
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: 366d6cbb3430291c42f1c8b836002276120a5f0f8abfc9d3d7a1591b9818d9b9
|
|
4
|
+
data.tar.gz: 3e785f025a4d72001ba9e496321c78826b8a689b21a71419f76d59c5ae596ec0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 659c808e1247309ee2255bd7932aa55d0b43a95996812af583d454225066a5f0e12829b96765da631c370c6baebb9baf9be067655e87e3c9000a8b737b582859
|
|
7
|
+
data.tar.gz: d920c054fdaf325061155b411a5dc9834f8970c900e658b3d0b5d37d655e1ff8541cc360c3872f8fb8dcac26c6eb2de3428862817eaaba243a118f1ba80ae12a
|
|
@@ -52,7 +52,7 @@ module Relaton
|
|
|
52
52
|
# back to the style-wide form
|
|
53
53
|
def series_form
|
|
54
54
|
variant = @style.per_type
|
|
55
|
-
.find { |t| t.type ==
|
|
55
|
+
.find { |t| t.type == @style.kind_for(@model.type) }
|
|
56
56
|
variant&.series || @style.templates.series
|
|
57
57
|
end
|
|
58
58
|
end
|
|
@@ -15,7 +15,7 @@ module Relaton
|
|
|
15
15
|
text = main_title
|
|
16
16
|
return text if analytic? && @short
|
|
17
17
|
if !@short &&
|
|
18
|
-
(form = @style.title_form_for(
|
|
18
|
+
(form = @style.title_form_for(@style.kind_for(@model.type)))
|
|
19
19
|
# the kind's own form carries the whole emphasis
|
|
20
20
|
return ::Relaton::Render::Iso690::Template.new(form)
|
|
21
21
|
.evaluate("title" => Template::Field[!text.empty?, text])
|
|
@@ -31,7 +31,7 @@ module Relaton
|
|
|
31
31
|
# serial carries the emphasis
|
|
32
32
|
def analytic?
|
|
33
33
|
%w[component_part serial_part]
|
|
34
|
-
.include?(
|
|
34
|
+
.include?(@style.kind_for(@model.type))
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
# A typed main title wins; an untyped title is main by
|