relaton-render 3.0.0.pre.alpha.41 → 3.0.0.pre.alpha.43
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: fc9353e7957ae86c466052968a77f3175a2ed765e6433f7e7d255ef8036614e2
|
|
4
|
+
data.tar.gz: a35cb0ee37e731243be02beadc676de056d3b6e91e9f0dc6e9856c151373dbea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a21521192e248bc508c0256d07c52d59d7cfbc911b82c43073dc99276a62031d4d4f7381eb7e435373850ab665ceee7f93b7c04ad9ee1572e37d9e996a0bc85e
|
|
7
|
+
data.tar.gz: 3edca91d8e0c43c547e3e7d8b8007d47df15278e9d0f4a1baee6e4e7e02be52fdbcb86d9400570d7b41d45a5d99af3c6fccc86d722455d975c3673d46b1e19d1
|
|
@@ -22,11 +22,13 @@ module Relaton
|
|
|
22
22
|
authorizer_name
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
# The kind's declared form for this slot
|
|
25
|
+
# The kind's declared form for this slot: the first entry of
|
|
26
|
+
# the kind carrying one (a home variant may shadow the type)
|
|
26
27
|
def authorizer_form
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
kind = @style.kind_for(@model.type)
|
|
29
|
+
@style.per_type.find do |t|
|
|
30
|
+
t.type == kind && !t.authorizer.to_s.empty?
|
|
31
|
+
end&.authorizer
|
|
30
32
|
end
|
|
31
33
|
|
|
32
34
|
private
|
|
@@ -44,11 +44,13 @@ module Relaton
|
|
|
44
44
|
sep.empty? ? place : place.gsub(", ", sep)
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
# The kind's declared form for this slot
|
|
47
|
+
# The kind's declared form for this slot: the first entry of
|
|
48
|
+
# the kind carrying one (a home variant may shadow the type)
|
|
48
49
|
def production_form
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
kind = @style.kind_for(@model.type)
|
|
51
|
+
@style.per_type.find do |t|
|
|
52
|
+
t.type == kind && !t.production.to_s.empty?
|
|
53
|
+
end&.production
|
|
52
54
|
end
|
|
53
55
|
|
|
54
56
|
def publisher_first?
|