relaton-render 3.0.0.pre.alpha.12 → 3.0.0.pre.alpha.13
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: 3e80ae8de229852d85ba4eabcd093152e140c9252f07c301fb6091c03694eac8
|
|
4
|
+
data.tar.gz: c378a86333710cabdcd00fd085a43e74a924c47e0b5df3d37eb830b56697ecf8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51b3ee0d7f8486e221ad0ea3fc0a69b8ae43a8f18056aa7357e77a362ea9c414c71ae724f241c8c12cc76ee29d34a906788a0b1abf82e1bf5a740d1c8dd5cada
|
|
7
|
+
data.tar.gz: 5d99388b322ae77613713554f9d6a0a7effb284a31267dda00427fbedf122a1c8d3abc990eceef6de27350b3394b6c710d433311bb025614c7c9db11adfb7e5d
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Relaton
|
|
4
|
+
module Render
|
|
5
|
+
module Iso690
|
|
6
|
+
module Elements
|
|
7
|
+
# The authorizing body of a standard (the IETF RFC Series, the
|
|
8
|
+
# W3C Recommendation process): the organization carrying the
|
|
9
|
+
# authorizer role, cited after the status
|
|
10
|
+
class Authorizer < Element
|
|
11
|
+
def present?
|
|
12
|
+
!authorizer_name.empty?
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def render
|
|
16
|
+
authorizer_name
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
private
|
|
20
|
+
|
|
21
|
+
def authorizer_name
|
|
22
|
+
contributors("authorizer").map do |c|
|
|
23
|
+
Array(c.organization&.name).map { |n| localized(n) }.join(", ")
|
|
24
|
+
end.reject(&:empty?).first.to_s
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -21,6 +21,7 @@ module Relaton
|
|
|
21
21
|
autoload :Access, "relaton/render/iso690/elements/access"
|
|
22
22
|
autoload :Stddoc, "relaton/render/iso690/elements/stddoc"
|
|
23
23
|
autoload :Status, "relaton/render/iso690/elements/status"
|
|
24
|
+
autoload :Authorizer, "relaton/render/iso690/elements/authorizer"
|
|
24
25
|
autoload :Citeid, "relaton/render/iso690/elements/citeid"
|
|
25
26
|
autoload :Updated, "relaton/render/iso690/elements/updated"
|
|
26
27
|
|
|
@@ -41,6 +42,7 @@ module Relaton
|
|
|
41
42
|
access: Access,
|
|
42
43
|
stddoc: Stddoc,
|
|
43
44
|
status: Status,
|
|
45
|
+
authorizer: Authorizer,
|
|
44
46
|
citeid: Citeid,
|
|
45
47
|
updated: Updated,
|
|
46
48
|
}.freeze
|
|
@@ -11,7 +11,7 @@ module Relaton
|
|
|
11
11
|
ELEMENT_SLOTS = %i[
|
|
12
12
|
creator title edition medium series production
|
|
13
13
|
date numeration component_part identifier location size
|
|
14
|
-
extent access stddoc status citeid updated
|
|
14
|
+
extent access stddoc status citeid authorizer updated
|
|
15
15
|
].freeze
|
|
16
16
|
|
|
17
17
|
def initialize(model, style:, i18n:, disambiguator: nil,
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-render
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.0.pre.alpha.
|
|
4
|
+
version: 3.0.0.pre.alpha.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
@@ -121,6 +121,7 @@ files:
|
|
|
121
121
|
- lib/relaton/render/iso690/element.rb
|
|
122
122
|
- lib/relaton/render/iso690/elements.rb
|
|
123
123
|
- lib/relaton/render/iso690/elements/access.rb
|
|
124
|
+
- lib/relaton/render/iso690/elements/authorizer.rb
|
|
124
125
|
- lib/relaton/render/iso690/elements/citeid.rb
|
|
125
126
|
- lib/relaton/render/iso690/elements/component_part.rb
|
|
126
127
|
- lib/relaton/render/iso690/elements/creator.rb
|