sts 0.6.11 → 0.6.12
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/.github/workflows/rake.yml +5 -3
- data/.github/workflows/release.yml +6 -10
- data/Gemfile +1 -0
- data/README.adoc +42 -0
- data/TODO.sts-refactor/00-overview.md +11 -19
- data/TODO.sts-refactor/03-namespace-coupling.md +40 -39
- data/TODO.sts-refactor/08-isoiec-profile.md +4 -4
- data/TODO.sts-refactor/10-test-coverage.md +2 -1
- data/lib/sts/iso_sts/addr_line.rb +77 -0
- data/lib/sts/iso_sts/address.rb +40 -0
- data/lib/sts/iso_sts/aff.rb +87 -0
- data/lib/sts/iso_sts/aff_alternatives.rb +18 -0
- data/lib/sts/iso_sts/alternatives.rb +45 -0
- data/lib/sts/iso_sts/anonymous.rb +19 -0
- data/lib/sts/iso_sts/article_title.rb +92 -0
- data/lib/sts/iso_sts/attrib.rb +30 -1
- data/lib/sts/iso_sts/author_comment.rb +32 -0
- data/lib/sts/iso_sts/award_id.rb +69 -0
- data/lib/sts/iso_sts/back.rb +0 -2
- data/lib/sts/iso_sts/bio.rb +111 -0
- data/lib/sts/iso_sts/body.rb +0 -2
- data/lib/sts/iso_sts/boxed_text.rb +51 -13
- data/lib/sts/iso_sts/chapter_title.rb +56 -0
- data/lib/sts/iso_sts/chem_struct.rb +102 -0
- data/lib/sts/iso_sts/chem_struct_wrap.rb +60 -0
- data/lib/sts/iso_sts/collab.rb +118 -0
- data/lib/sts/iso_sts/comment.rb +94 -0
- data/lib/sts/iso_sts/conf_date.rb +24 -0
- data/lib/sts/iso_sts/conf_loc.rb +24 -0
- data/lib/sts/iso_sts/conf_name.rb +24 -0
- data/lib/sts/iso_sts/conf_sponsor.rb +24 -0
- data/lib/sts/iso_sts/content_language.rb +0 -4
- data/lib/sts/iso_sts/contrib.rb +74 -0
- data/lib/sts/iso_sts/contrib_group.rb +45 -0
- data/lib/sts/iso_sts/custom_meta.rb +0 -1
- data/lib/sts/iso_sts/custom_meta_group.rb +2 -0
- data/lib/sts/iso_sts/date.rb +28 -0
- data/lib/sts/iso_sts/date_in_citation.rb +32 -0
- data/lib/sts/iso_sts/degrees.rb +24 -0
- data/lib/sts/iso_sts/disp_formula_group.rb +43 -0
- data/lib/sts/iso_sts/disp_quote.rb +50 -12
- data/lib/sts/iso_sts/element_citation.rb +203 -0
- data/lib/sts/iso_sts/elocation_id.rb +24 -0
- data/lib/sts/iso_sts/fig_group.rb +50 -0
- data/lib/sts/iso_sts/funding_source.rb +85 -0
- data/lib/sts/iso_sts/given_names.rb +20 -0
- data/lib/sts/iso_sts/glossary.rb +91 -0
- data/lib/sts/iso_sts/glyph_data.rb +32 -0
- data/lib/sts/iso_sts/glyph_ref.rb +17 -0
- data/lib/sts/iso_sts/gov.rb +52 -0
- data/lib/sts/iso_sts/graphic.rb +0 -2
- data/lib/sts/iso_sts/inline_supplementary_material.rb +78 -0
- data/lib/sts/iso_sts/isbn.rb +22 -0
- data/lib/sts/iso_sts/issn.rb +22 -0
- data/lib/sts/iso_sts/issue_id.rb +26 -0
- data/lib/sts/iso_sts/issue_part.rb +24 -0
- data/lib/sts/iso_sts/issue_title.rb +24 -0
- data/lib/sts/iso_sts/journal_id.rb +24 -0
- data/lib/sts/iso_sts/language.rb +0 -4
- data/lib/sts/iso_sts/license.rb +2 -1
- data/lib/sts/iso_sts/license_p.rb +90 -29
- data/lib/sts/iso_sts/media.rb +64 -0
- data/lib/sts/iso_sts/meta_name.rb +3 -0
- data/lib/sts/iso_sts/meta_value.rb +53 -6
- data/lib/sts/iso_sts/mixed_citation.rb +9 -9
- data/lib/sts/iso_sts/monospace.rb +2 -0
- data/lib/sts/iso_sts/name.rb +32 -0
- data/lib/sts/iso_sts/name_alternatives.rb +20 -0
- data/lib/sts/iso_sts/on_behalf_of.rb +50 -0
- data/lib/sts/iso_sts/open_access.rb +28 -0
- data/lib/sts/iso_sts/overline.rb +99 -0
- data/lib/sts/iso_sts/part_title.rb +56 -0
- data/lib/sts/iso_sts/patent.rb +26 -0
- data/lib/sts/iso_sts/person_group.rb +44 -0
- data/lib/sts/iso_sts/prefix.rb +24 -0
- data/lib/sts/iso_sts/price.rb +46 -0
- data/lib/sts/iso_sts/private_char.rb +28 -0
- data/lib/sts/iso_sts/ref.rb +8 -5
- data/lib/sts/iso_sts/related_article.rb +191 -0
- data/lib/sts/iso_sts/related_object.rb +182 -0
- data/lib/sts/iso_sts/role.rb +52 -0
- data/lib/sts/iso_sts/roman.rb +99 -0
- data/lib/sts/iso_sts/sans_serif.rb +99 -0
- data/lib/sts/iso_sts/sc.rb +2 -0
- data/lib/sts/iso_sts/series.rb +52 -0
- data/lib/sts/iso_sts/size.rb +24 -0
- data/lib/sts/iso_sts/source.rb +58 -0
- data/lib/sts/iso_sts/speaker.rb +42 -0
- data/lib/sts/iso_sts/speech.rb +34 -0
- data/lib/sts/iso_sts/standard_ref.rb +2 -0
- data/lib/sts/iso_sts/statement.rb +40 -0
- data/lib/sts/iso_sts/strike.rb +2 -0
- data/lib/sts/iso_sts/string_name.rb +36 -0
- data/lib/sts/iso_sts/subtitle.rb +96 -0
- data/lib/sts/iso_sts/suffix.rb +24 -0
- data/lib/sts/iso_sts/supplement.rb +73 -0
- data/lib/sts/iso_sts/supplementary_material.rb +108 -0
- data/lib/sts/iso_sts/surname.rb +20 -0
- data/lib/sts/iso_sts/table_wrap_group.rb +44 -0
- data/lib/sts/iso_sts/target.rb +52 -0
- data/lib/sts/iso_sts/term_display.rb +81 -0
- data/lib/sts/iso_sts/term_head.rb +27 -13
- data/lib/sts/iso_sts/term_sec.rb +1 -1
- data/lib/sts/iso_sts/textual_form.rb +56 -0
- data/lib/sts/iso_sts/trans_source.rb +58 -0
- data/lib/sts/iso_sts/trans_title.rb +96 -0
- data/lib/sts/iso_sts/underline.rb +2 -0
- data/lib/sts/iso_sts/uri.rb +2 -0
- data/lib/sts/iso_sts/verse_group.rb +38 -0
- data/lib/sts/iso_sts/verse_line.rb +69 -0
- data/lib/sts/iso_sts/volume_id.rb +26 -0
- data/lib/sts/iso_sts/volume_series.rb +24 -0
- data/lib/sts/iso_sts.rb +94 -9
- data/lib/sts/niso_sts/element_citation.rb +1 -2
- data/lib/sts/niso_sts/mixed_citation.rb +1 -2
- data/lib/sts/niso_sts/nlm_citation.rb +1 -2
- data/lib/sts/niso_sts/preformat.rb +16 -0
- data/lib/sts/niso_sts/section.rb +1 -2
- data/lib/sts/niso_sts/sup.rb +14 -0
- data/lib/sts/niso_sts/term.rb +15 -2
- data/lib/sts/niso_sts/title.rb +2 -0
- data/lib/sts/profiles/iso_iec/constraints.rb +14 -11
- data/lib/sts/profiles/iso_iec/id_scheme.rb +64 -0
- data/lib/sts/profiles/iso_iec/validator.rb +25 -0
- data/lib/sts/profiles/iso_iec.rb +1 -0
- data/lib/sts/profiles.rb +26 -0
- data/lib/sts/tbx_iso_tml/bold.rb +6 -0
- data/lib/sts/tbx_iso_tml/definition.rb +4 -0
- data/lib/sts/tbx_iso_tml/example.rb +14 -0
- data/lib/sts/tbx_iso_tml/italic.rb +6 -0
- data/lib/sts/tbx_iso_tml/note.rb +10 -0
- data/lib/sts/version.rb +1 -1
- data/lib/sts.rb +4 -0
- metadata +83 -2
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class ChemStruct < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :content_type, :string
|
|
8
|
+
attribute :specific_use, :string
|
|
9
|
+
attribute :xml_lang, :string
|
|
10
|
+
attribute :xlink_type, :string
|
|
11
|
+
attribute :xlink_href, :string
|
|
12
|
+
attribute :xlink_role, :string
|
|
13
|
+
attribute :xlink_title, :string
|
|
14
|
+
attribute :xlink_show, :string
|
|
15
|
+
attribute :xlink_actuate, :string
|
|
16
|
+
attribute :content, :string, collection: true
|
|
17
|
+
attribute :alt_text, ::Sts::IsoSts::AltText, collection: true
|
|
18
|
+
attribute :long_desc, ::Sts::IsoSts::LongDesc, collection: true
|
|
19
|
+
attribute :email, ::Sts::IsoSts::Email, collection: true
|
|
20
|
+
attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
|
|
21
|
+
attribute :uri, ::Sts::IsoSts::Uri, collection: true
|
|
22
|
+
attribute :break, ::Sts::IsoSts::Break, collection: true
|
|
23
|
+
attribute :bold, ::Sts::IsoSts::Bold, collection: true
|
|
24
|
+
attribute :italic, ::Sts::IsoSts::Italic, collection: true
|
|
25
|
+
attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
|
|
26
|
+
attribute :num, ::Sts::IsoSts::Num, collection: true
|
|
27
|
+
attribute :overline, ::Sts::IsoSts::Overline, collection: true
|
|
28
|
+
attribute :roman, ::Sts::IsoSts::Roman, collection: true
|
|
29
|
+
attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
|
|
30
|
+
attribute :sc, ::Sts::IsoSts::Sc, collection: true
|
|
31
|
+
attribute :strike, ::Sts::IsoSts::Strike, collection: true
|
|
32
|
+
attribute :underline, ::Sts::IsoSts::Underline, collection: true
|
|
33
|
+
attribute :label, ::Sts::IsoSts::Label, collection: true
|
|
34
|
+
attribute :def_list, ::Sts::IsoSts::DefList, collection: true
|
|
35
|
+
attribute :list, ::Sts::IsoSts::List, collection: true
|
|
36
|
+
attribute :math, ::Mml::V2::Math, collection: true
|
|
37
|
+
attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
|
|
38
|
+
attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
|
|
39
|
+
attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
|
|
40
|
+
attribute :array, ::Sts::IsoSts::Array, collection: true
|
|
41
|
+
attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
|
|
42
|
+
attribute :media, ::Sts::IsoSts::Media, collection: true
|
|
43
|
+
attribute :preformat, ::Sts::IsoSts::Preformat, collection: true
|
|
44
|
+
attribute :fn, ::Sts::IsoSts::Fn, collection: true
|
|
45
|
+
attribute :target, ::Sts::IsoSts::Target, collection: true
|
|
46
|
+
attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
|
|
47
|
+
attribute :xref, ::Sts::IsoSts::Xref, collection: true
|
|
48
|
+
attribute :sub, ::Sts::IsoSts::Sub, collection: true
|
|
49
|
+
attribute :sup, ::Sts::IsoSts::Sup, collection: true
|
|
50
|
+
|
|
51
|
+
xml do # rubocop:disable Metrics/BlockLength
|
|
52
|
+
element "chem-struct"
|
|
53
|
+
mixed_content
|
|
54
|
+
|
|
55
|
+
map_attribute "id", to: :id
|
|
56
|
+
map_attribute "content-type", to: :content_type
|
|
57
|
+
map_attribute "specific-use", to: :specific_use
|
|
58
|
+
map_attribute "xml:lang", to: :xml_lang
|
|
59
|
+
map_attribute "xlink:type", to: :xlink_type
|
|
60
|
+
map_attribute "xlink:href", to: :xlink_href
|
|
61
|
+
map_attribute "xlink:role", to: :xlink_role
|
|
62
|
+
map_attribute "xlink:title", to: :xlink_title
|
|
63
|
+
map_attribute "xlink:show", to: :xlink_show
|
|
64
|
+
map_attribute "xlink:actuate", to: :xlink_actuate
|
|
65
|
+
map_content to: :content
|
|
66
|
+
map_element "alt-text", to: :alt_text
|
|
67
|
+
map_element "long-desc", to: :long_desc
|
|
68
|
+
map_element "email", to: :email
|
|
69
|
+
map_element "ext-link", to: :ext_link
|
|
70
|
+
map_element "uri", to: :uri
|
|
71
|
+
map_element "break", to: :break
|
|
72
|
+
map_element "bold", to: :bold
|
|
73
|
+
map_element "italic", to: :italic
|
|
74
|
+
map_element "monospace", to: :monospace
|
|
75
|
+
map_element "num", to: :num
|
|
76
|
+
map_element "overline", to: :overline
|
|
77
|
+
map_element "roman", to: :roman
|
|
78
|
+
map_element "sans-serif", to: :sans_serif
|
|
79
|
+
map_element "sc", to: :sc
|
|
80
|
+
map_element "strike", to: :strike
|
|
81
|
+
map_element "underline", to: :underline
|
|
82
|
+
map_element "label", to: :label
|
|
83
|
+
map_element "def-list", to: :def_list
|
|
84
|
+
map_element "list", to: :list
|
|
85
|
+
map_element "math", to: :math
|
|
86
|
+
map_element "named-content", to: :named_content
|
|
87
|
+
map_element "styled-content", to: :styled_content
|
|
88
|
+
map_element "alternatives", to: :alternatives
|
|
89
|
+
map_element "array", to: :array
|
|
90
|
+
map_element "graphic", to: :graphic
|
|
91
|
+
map_element "media", to: :media
|
|
92
|
+
map_element "preformat", to: :preformat
|
|
93
|
+
map_element "fn", to: :fn
|
|
94
|
+
map_element "target", to: :target
|
|
95
|
+
map_element "entailedTerm", to: :entailed_term
|
|
96
|
+
map_element "xref", to: :xref
|
|
97
|
+
map_element "sub", to: :sub
|
|
98
|
+
map_element "sup", to: :sup
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class ChemStructWrap < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :position, :string
|
|
8
|
+
attribute :orientation, :string
|
|
9
|
+
attribute :specific_use, :string
|
|
10
|
+
attribute :xml_lang, :string
|
|
11
|
+
attribute :content_type, :string
|
|
12
|
+
attribute :originator, :string
|
|
13
|
+
attribute :sts_object_id, ::Sts::IsoSts::ObjectId, collection: true
|
|
14
|
+
attribute :label, ::Sts::IsoSts::Label
|
|
15
|
+
attribute :caption, ::Sts::IsoSts::Caption
|
|
16
|
+
attribute :alt_text, ::Sts::IsoSts::AltText, collection: true
|
|
17
|
+
attribute :long_desc, ::Sts::IsoSts::LongDesc, collection: true
|
|
18
|
+
attribute :email, ::Sts::IsoSts::Email, collection: true
|
|
19
|
+
attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
|
|
20
|
+
attribute :uri, ::Sts::IsoSts::Uri, collection: true
|
|
21
|
+
attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
|
|
22
|
+
attribute :chem_struct, ::Sts::IsoSts::ChemStruct, collection: true
|
|
23
|
+
attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
|
|
24
|
+
attribute :media, ::Sts::IsoSts::Media, collection: true
|
|
25
|
+
attribute :preformat, ::Sts::IsoSts::Preformat, collection: true
|
|
26
|
+
attribute :textual_form, ::Sts::IsoSts::TextualForm, collection: true
|
|
27
|
+
attribute :attrib, ::Sts::IsoSts::Attrib, collection: true
|
|
28
|
+
attribute :permissions, ::Sts::IsoSts::Permissions, collection: true
|
|
29
|
+
|
|
30
|
+
xml do
|
|
31
|
+
element "chem-struct-wrap"
|
|
32
|
+
ordered
|
|
33
|
+
|
|
34
|
+
map_attribute "id", to: :id
|
|
35
|
+
map_attribute "position", to: :position
|
|
36
|
+
map_attribute "orientation", to: :orientation
|
|
37
|
+
map_attribute "specific-use", to: :specific_use
|
|
38
|
+
map_attribute "xml:lang", to: :xml_lang
|
|
39
|
+
map_attribute "content-type", to: :content_type
|
|
40
|
+
map_attribute "originator", to: :originator
|
|
41
|
+
map_element "object-id", to: :sts_object_id
|
|
42
|
+
map_element "label", to: :label
|
|
43
|
+
map_element "caption", to: :caption
|
|
44
|
+
map_element "alt-text", to: :alt_text
|
|
45
|
+
map_element "long-desc", to: :long_desc
|
|
46
|
+
map_element "email", to: :email
|
|
47
|
+
map_element "ext-link", to: :ext_link
|
|
48
|
+
map_element "uri", to: :uri
|
|
49
|
+
map_element "alternatives", to: :alternatives
|
|
50
|
+
map_element "chem-struct", to: :chem_struct
|
|
51
|
+
map_element "graphic", to: :graphic
|
|
52
|
+
map_element "media", to: :media
|
|
53
|
+
map_element "preformat", to: :preformat
|
|
54
|
+
map_element "textual-form", to: :textual_form
|
|
55
|
+
map_element "attrib", to: :attrib
|
|
56
|
+
map_element "permissions", to: :permissions
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class Collab < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :collab_type, :string
|
|
8
|
+
attribute :specific_use, :string
|
|
9
|
+
attribute :xml_lang, :string
|
|
10
|
+
attribute :xlink_type, :string
|
|
11
|
+
attribute :xlink_href, :string
|
|
12
|
+
attribute :xlink_role, :string
|
|
13
|
+
attribute :xlink_title, :string
|
|
14
|
+
attribute :xlink_show, :string
|
|
15
|
+
attribute :xlink_actuate, :string
|
|
16
|
+
attribute :content, :string, collection: true
|
|
17
|
+
attribute :bold, ::Sts::IsoSts::Bold, collection: true
|
|
18
|
+
attribute :italic, ::Sts::IsoSts::Italic, collection: true
|
|
19
|
+
attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
|
|
20
|
+
attribute :num, ::Sts::IsoSts::Num, collection: true
|
|
21
|
+
attribute :overline, ::Sts::IsoSts::Overline, collection: true
|
|
22
|
+
attribute :roman, ::Sts::IsoSts::Roman, collection: true
|
|
23
|
+
attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
|
|
24
|
+
attribute :sc, ::Sts::IsoSts::Sc, collection: true
|
|
25
|
+
attribute :strike, ::Sts::IsoSts::Strike, collection: true
|
|
26
|
+
attribute :underline, ::Sts::IsoSts::Underline, collection: true
|
|
27
|
+
attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
|
|
28
|
+
attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
|
|
29
|
+
attribute :private_char, ::Sts::IsoSts::PrivateChar, collection: true
|
|
30
|
+
attribute :chem_struct, ::Sts::IsoSts::ChemStruct, collection: true
|
|
31
|
+
attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
|
|
32
|
+
attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
|
|
33
|
+
attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
|
|
34
|
+
attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
|
|
35
|
+
collection: true
|
|
36
|
+
attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
|
|
37
|
+
attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
|
|
38
|
+
attribute :sub, ::Sts::IsoSts::Sub, collection: true
|
|
39
|
+
attribute :sup, ::Sts::IsoSts::Sup, collection: true
|
|
40
|
+
attribute :addr_line, ::Sts::IsoSts::AddrLine, collection: true
|
|
41
|
+
attribute :country, ::Sts::IsoSts::Country, collection: true
|
|
42
|
+
attribute :fax, ::Sts::IsoSts::Fax, collection: true
|
|
43
|
+
attribute :institution, ::Sts::IsoSts::Institution, collection: true
|
|
44
|
+
attribute :phone, ::Sts::IsoSts::Phone, collection: true
|
|
45
|
+
attribute :contrib_group, ::Sts::IsoSts::ContribGroup, collection: true
|
|
46
|
+
attribute :address, ::Sts::IsoSts::Address, collection: true
|
|
47
|
+
attribute :aff, ::Sts::IsoSts::Aff, collection: true
|
|
48
|
+
attribute :aff_alternatives, ::Sts::IsoSts::AffAlternatives,
|
|
49
|
+
collection: true
|
|
50
|
+
attribute :author_comment, ::Sts::IsoSts::AuthorComment, collection: true
|
|
51
|
+
attribute :bio, ::Sts::IsoSts::Bio, collection: true
|
|
52
|
+
attribute :email, ::Sts::IsoSts::Email, collection: true
|
|
53
|
+
attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
|
|
54
|
+
attribute :on_behalf_of, ::Sts::IsoSts::OnBehalfOf, collection: true
|
|
55
|
+
attribute :role, ::Sts::IsoSts::Role, collection: true
|
|
56
|
+
attribute :uri, ::Sts::IsoSts::Uri, collection: true
|
|
57
|
+
attribute :xref, ::Sts::IsoSts::Xref, collection: true
|
|
58
|
+
attribute :fn, ::Sts::IsoSts::Fn, collection: true
|
|
59
|
+
|
|
60
|
+
xml do # rubocop:disable Metrics/BlockLength
|
|
61
|
+
element "collab"
|
|
62
|
+
mixed_content
|
|
63
|
+
|
|
64
|
+
map_attribute "id", to: :id
|
|
65
|
+
map_attribute "collab-type", to: :collab_type
|
|
66
|
+
map_attribute "specific-use", to: :specific_use
|
|
67
|
+
map_attribute "xml:lang", to: :xml_lang
|
|
68
|
+
map_attribute "xlink:type", to: :xlink_type
|
|
69
|
+
map_attribute "xlink:href", to: :xlink_href
|
|
70
|
+
map_attribute "xlink:role", to: :xlink_role
|
|
71
|
+
map_attribute "xlink:title", to: :xlink_title
|
|
72
|
+
map_attribute "xlink:show", to: :xlink_show
|
|
73
|
+
map_attribute "xlink:actuate", to: :xlink_actuate
|
|
74
|
+
map_content to: :content
|
|
75
|
+
map_element "bold", to: :bold
|
|
76
|
+
map_element "italic", to: :italic
|
|
77
|
+
map_element "monospace", to: :monospace
|
|
78
|
+
map_element "num", to: :num
|
|
79
|
+
map_element "overline", to: :overline
|
|
80
|
+
map_element "roman", to: :roman
|
|
81
|
+
map_element "sans-serif", to: :sans_serif
|
|
82
|
+
map_element "sc", to: :sc
|
|
83
|
+
map_element "strike", to: :strike
|
|
84
|
+
map_element "underline", to: :underline
|
|
85
|
+
map_element "alternatives", to: :alternatives
|
|
86
|
+
map_element "inline-graphic", to: :inline_graphic
|
|
87
|
+
map_element "private-char", to: :private_char
|
|
88
|
+
map_element "chem-struct", to: :chem_struct
|
|
89
|
+
map_element "inline-formula", to: :inline_formula
|
|
90
|
+
map_element "abbrev", to: :abbrev
|
|
91
|
+
map_element "milestone-end", to: :milestone_end
|
|
92
|
+
map_element "milestone-start", to: :milestone_start
|
|
93
|
+
map_element "named-content", to: :named_content
|
|
94
|
+
map_element "styled-content", to: :styled_content
|
|
95
|
+
map_element "sub", to: :sub
|
|
96
|
+
map_element "sup", to: :sup
|
|
97
|
+
map_element "addr-line", to: :addr_line
|
|
98
|
+
map_element "country", to: :country
|
|
99
|
+
map_element "fax", to: :fax
|
|
100
|
+
map_element "institution", to: :institution
|
|
101
|
+
map_element "phone", to: :phone
|
|
102
|
+
map_element "contrib-group", to: :contrib_group
|
|
103
|
+
map_element "address", to: :address
|
|
104
|
+
map_element "aff", to: :aff
|
|
105
|
+
map_element "aff-alternatives", to: :aff_alternatives
|
|
106
|
+
map_element "author-comment", to: :author_comment
|
|
107
|
+
map_element "bio", to: :bio
|
|
108
|
+
map_element "email", to: :email
|
|
109
|
+
map_element "ext-link", to: :ext_link
|
|
110
|
+
map_element "on-behalf-of", to: :on_behalf_of
|
|
111
|
+
map_element "role", to: :role
|
|
112
|
+
map_element "uri", to: :uri
|
|
113
|
+
map_element "xref", to: :xref
|
|
114
|
+
map_element "fn", to: :fn
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class Comment < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :content_type, :string
|
|
8
|
+
attribute :specific_use, :string
|
|
9
|
+
attribute :xml_lang, :string
|
|
10
|
+
attribute :content, :string, collection: true
|
|
11
|
+
attribute :email, ::Sts::IsoSts::Email, collection: true
|
|
12
|
+
attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
|
|
13
|
+
attribute :uri, ::Sts::IsoSts::Uri, collection: true
|
|
14
|
+
attribute :inline_supplementary_material, ::Sts::IsoSts::InlineSupplementaryMaterial,
|
|
15
|
+
collection: true
|
|
16
|
+
attribute :related_article, ::Sts::IsoSts::RelatedArticle,
|
|
17
|
+
collection: true
|
|
18
|
+
attribute :related_object, ::Sts::IsoSts::RelatedObject, collection: true
|
|
19
|
+
attribute :bold, ::Sts::IsoSts::Bold, collection: true
|
|
20
|
+
attribute :italic, ::Sts::IsoSts::Italic, collection: true
|
|
21
|
+
attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
|
|
22
|
+
attribute :num, ::Sts::IsoSts::Num, collection: true
|
|
23
|
+
attribute :overline, ::Sts::IsoSts::Overline, collection: true
|
|
24
|
+
attribute :roman, ::Sts::IsoSts::Roman, collection: true
|
|
25
|
+
attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
|
|
26
|
+
attribute :sc, ::Sts::IsoSts::Sc, collection: true
|
|
27
|
+
attribute :strike, ::Sts::IsoSts::Strike, collection: true
|
|
28
|
+
attribute :underline, ::Sts::IsoSts::Underline, collection: true
|
|
29
|
+
attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
|
|
30
|
+
attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
|
|
31
|
+
attribute :private_char, ::Sts::IsoSts::PrivateChar, collection: true
|
|
32
|
+
attribute :chem_struct, ::Sts::IsoSts::ChemStruct, collection: true
|
|
33
|
+
attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
|
|
34
|
+
attribute :math, ::Mml::V2::Math, collection: true
|
|
35
|
+
attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
|
|
36
|
+
attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
|
|
37
|
+
attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
|
|
38
|
+
collection: true
|
|
39
|
+
attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
|
|
40
|
+
attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
|
|
41
|
+
attribute :fn, ::Sts::IsoSts::Fn, collection: true
|
|
42
|
+
attribute :target, ::Sts::IsoSts::Target, collection: true
|
|
43
|
+
attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
|
|
44
|
+
attribute :xref, ::Sts::IsoSts::Xref, collection: true
|
|
45
|
+
attribute :sub, ::Sts::IsoSts::Sub, collection: true
|
|
46
|
+
attribute :sup, ::Sts::IsoSts::Sup, collection: true
|
|
47
|
+
|
|
48
|
+
xml do # rubocop:disable Metrics/BlockLength
|
|
49
|
+
element "comment"
|
|
50
|
+
mixed_content
|
|
51
|
+
|
|
52
|
+
map_attribute "id", to: :id
|
|
53
|
+
map_attribute "content-type", to: :content_type
|
|
54
|
+
map_attribute "specific-use", to: :specific_use
|
|
55
|
+
map_attribute "xml:lang", to: :xml_lang
|
|
56
|
+
map_content to: :content
|
|
57
|
+
map_element "email", to: :email
|
|
58
|
+
map_element "ext-link", to: :ext_link
|
|
59
|
+
map_element "uri", to: :uri
|
|
60
|
+
map_element "inline-supplementary-material",
|
|
61
|
+
to: :inline_supplementary_material
|
|
62
|
+
map_element "related-article", to: :related_article
|
|
63
|
+
map_element "related-object", to: :related_object
|
|
64
|
+
map_element "bold", to: :bold
|
|
65
|
+
map_element "italic", to: :italic
|
|
66
|
+
map_element "monospace", to: :monospace
|
|
67
|
+
map_element "num", to: :num
|
|
68
|
+
map_element "overline", to: :overline
|
|
69
|
+
map_element "roman", to: :roman
|
|
70
|
+
map_element "sans-serif", to: :sans_serif
|
|
71
|
+
map_element "sc", to: :sc
|
|
72
|
+
map_element "strike", to: :strike
|
|
73
|
+
map_element "underline", to: :underline
|
|
74
|
+
map_element "alternatives", to: :alternatives
|
|
75
|
+
map_element "inline-graphic", to: :inline_graphic
|
|
76
|
+
map_element "private-char", to: :private_char
|
|
77
|
+
map_element "chem-struct", to: :chem_struct
|
|
78
|
+
map_element "inline-formula", to: :inline_formula
|
|
79
|
+
map_element "math", to: :math
|
|
80
|
+
map_element "abbrev", to: :abbrev
|
|
81
|
+
map_element "milestone-end", to: :milestone_end
|
|
82
|
+
map_element "milestone-start", to: :milestone_start
|
|
83
|
+
map_element "named-content", to: :named_content
|
|
84
|
+
map_element "styled-content", to: :styled_content
|
|
85
|
+
map_element "fn", to: :fn
|
|
86
|
+
map_element "target", to: :target
|
|
87
|
+
map_element "entailedTerm", to: :entailed_term
|
|
88
|
+
map_element "xref", to: :xref
|
|
89
|
+
map_element "sub", to: :sub
|
|
90
|
+
map_element "sup", to: :sup
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class ConfDate < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :content_type, :string
|
|
8
|
+
attribute :specific_use, :string
|
|
9
|
+
attribute :xml_lang, :string
|
|
10
|
+
attribute :content, :string, collection: true
|
|
11
|
+
|
|
12
|
+
xml do
|
|
13
|
+
element "conf-date"
|
|
14
|
+
mixed_content
|
|
15
|
+
|
|
16
|
+
map_attribute "id", to: :id
|
|
17
|
+
map_attribute "content-type", to: :content_type
|
|
18
|
+
map_attribute "specific-use", to: :specific_use
|
|
19
|
+
map_attribute "xml:lang", to: :xml_lang
|
|
20
|
+
map_content to: :content
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class ConfLoc < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :content_type, :string
|
|
8
|
+
attribute :specific_use, :string
|
|
9
|
+
attribute :xml_lang, :string
|
|
10
|
+
attribute :content, :string, collection: true
|
|
11
|
+
|
|
12
|
+
xml do
|
|
13
|
+
element "conf-loc"
|
|
14
|
+
mixed_content
|
|
15
|
+
|
|
16
|
+
map_attribute "id", to: :id
|
|
17
|
+
map_attribute "content-type", to: :content_type
|
|
18
|
+
map_attribute "specific-use", to: :specific_use
|
|
19
|
+
map_attribute "xml:lang", to: :xml_lang
|
|
20
|
+
map_content to: :content
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class ConfName < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :content_type, :string
|
|
8
|
+
attribute :specific_use, :string
|
|
9
|
+
attribute :xml_lang, :string
|
|
10
|
+
attribute :content, :string, collection: true
|
|
11
|
+
|
|
12
|
+
xml do
|
|
13
|
+
element "conf-name"
|
|
14
|
+
mixed_content
|
|
15
|
+
|
|
16
|
+
map_attribute "id", to: :id
|
|
17
|
+
map_attribute "content-type", to: :content_type
|
|
18
|
+
map_attribute "specific-use", to: :specific_use
|
|
19
|
+
map_attribute "xml:lang", to: :xml_lang
|
|
20
|
+
map_content to: :content
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class ConfSponsor < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :content_type, :string
|
|
8
|
+
attribute :specific_use, :string
|
|
9
|
+
attribute :xml_lang, :string
|
|
10
|
+
attribute :content, :string, collection: true
|
|
11
|
+
|
|
12
|
+
xml do
|
|
13
|
+
element "conf-sponsor"
|
|
14
|
+
mixed_content
|
|
15
|
+
|
|
16
|
+
map_attribute "id", to: :id
|
|
17
|
+
map_attribute "content-type", to: :content_type
|
|
18
|
+
map_attribute "specific-use", to: :specific_use
|
|
19
|
+
map_attribute "xml:lang", to: :xml_lang
|
|
20
|
+
map_content to: :content
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -5,8 +5,6 @@ module Sts
|
|
|
5
5
|
class ContentLanguage < Lutaml::Model::Serializable
|
|
6
6
|
attribute :id, :string
|
|
7
7
|
attribute :content, :string, collection: true
|
|
8
|
-
attribute :lang, :string
|
|
9
|
-
attribute :specific_use, :string
|
|
10
8
|
|
|
11
9
|
xml do
|
|
12
10
|
element "content-language"
|
|
@@ -14,8 +12,6 @@ module Sts
|
|
|
14
12
|
mixed_content
|
|
15
13
|
|
|
16
14
|
map_content to: :content
|
|
17
|
-
map_attribute "lang", to: :lang
|
|
18
|
-
map_attribute "specific-use", to: :specific_use
|
|
19
15
|
end
|
|
20
16
|
end
|
|
21
17
|
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class Contrib < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :contrib_type, :string
|
|
8
|
+
attribute :corresp, :string
|
|
9
|
+
attribute :equal_contrib, :string
|
|
10
|
+
attribute :deceased, :string
|
|
11
|
+
attribute :rid, :string
|
|
12
|
+
attribute :specific_use, :string
|
|
13
|
+
attribute :xlink_type, :string
|
|
14
|
+
attribute :xlink_href, :string
|
|
15
|
+
attribute :xlink_role, :string
|
|
16
|
+
attribute :xlink_title, :string
|
|
17
|
+
attribute :xlink_show, :string
|
|
18
|
+
attribute :xlink_actuate, :string
|
|
19
|
+
attribute :anonymous, ::Sts::IsoSts::Anonymous, collection: true
|
|
20
|
+
attribute :collab, ::Sts::IsoSts::Collab, collection: true
|
|
21
|
+
attribute :name, ::Sts::IsoSts::Name, collection: true
|
|
22
|
+
attribute :name_alternatives, ::Sts::IsoSts::NameAlternatives,
|
|
23
|
+
collection: true
|
|
24
|
+
attribute :degrees, ::Sts::IsoSts::Degrees, collection: true
|
|
25
|
+
attribute :address, ::Sts::IsoSts::Address, collection: true
|
|
26
|
+
attribute :aff, ::Sts::IsoSts::Aff, collection: true
|
|
27
|
+
attribute :aff_alternatives, ::Sts::IsoSts::AffAlternatives,
|
|
28
|
+
collection: true
|
|
29
|
+
attribute :author_comment, ::Sts::IsoSts::AuthorComment, collection: true
|
|
30
|
+
attribute :bio, ::Sts::IsoSts::Bio, collection: true
|
|
31
|
+
attribute :email, ::Sts::IsoSts::Email, collection: true
|
|
32
|
+
attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
|
|
33
|
+
attribute :on_behalf_of, ::Sts::IsoSts::OnBehalfOf, collection: true
|
|
34
|
+
attribute :role, ::Sts::IsoSts::Role, collection: true
|
|
35
|
+
attribute :uri, ::Sts::IsoSts::Uri, collection: true
|
|
36
|
+
attribute :xref, ::Sts::IsoSts::Xref, collection: true
|
|
37
|
+
|
|
38
|
+
xml do # rubocop:disable Metrics/BlockLength
|
|
39
|
+
element "contrib"
|
|
40
|
+
ordered
|
|
41
|
+
|
|
42
|
+
map_attribute "id", to: :id
|
|
43
|
+
map_attribute "contrib-type", to: :contrib_type
|
|
44
|
+
map_attribute "corresp", to: :corresp
|
|
45
|
+
map_attribute "equal-contrib", to: :equal_contrib
|
|
46
|
+
map_attribute "deceased", to: :deceased
|
|
47
|
+
map_attribute "rid", to: :rid
|
|
48
|
+
map_attribute "specific-use", to: :specific_use
|
|
49
|
+
map_attribute "xlink:type", to: :xlink_type
|
|
50
|
+
map_attribute "xlink:href", to: :xlink_href
|
|
51
|
+
map_attribute "xlink:role", to: :xlink_role
|
|
52
|
+
map_attribute "xlink:title", to: :xlink_title
|
|
53
|
+
map_attribute "xlink:show", to: :xlink_show
|
|
54
|
+
map_attribute "xlink:actuate", to: :xlink_actuate
|
|
55
|
+
map_element "anonymous", to: :anonymous
|
|
56
|
+
map_element "collab", to: :collab
|
|
57
|
+
map_element "name", to: :name
|
|
58
|
+
map_element "name-alternatives", to: :name_alternatives
|
|
59
|
+
map_element "degrees", to: :degrees
|
|
60
|
+
map_element "address", to: :address
|
|
61
|
+
map_element "aff", to: :aff
|
|
62
|
+
map_element "aff-alternatives", to: :aff_alternatives
|
|
63
|
+
map_element "author-comment", to: :author_comment
|
|
64
|
+
map_element "bio", to: :bio
|
|
65
|
+
map_element "email", to: :email
|
|
66
|
+
map_element "ext-link", to: :ext_link
|
|
67
|
+
map_element "on-behalf-of", to: :on_behalf_of
|
|
68
|
+
map_element "role", to: :role
|
|
69
|
+
map_element "uri", to: :uri
|
|
70
|
+
map_element "xref", to: :xref
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class ContribGroup < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :content_type, :string
|
|
8
|
+
attribute :specific_use, :string
|
|
9
|
+
attribute :contrib, ::Sts::IsoSts::Contrib, collection: true
|
|
10
|
+
attribute :address, ::Sts::IsoSts::Address, collection: true
|
|
11
|
+
attribute :aff, ::Sts::IsoSts::Aff, collection: true
|
|
12
|
+
attribute :aff_alternatives, ::Sts::IsoSts::AffAlternatives,
|
|
13
|
+
collection: true
|
|
14
|
+
attribute :author_comment, ::Sts::IsoSts::AuthorComment, collection: true
|
|
15
|
+
attribute :bio, ::Sts::IsoSts::Bio, collection: true
|
|
16
|
+
attribute :email, ::Sts::IsoSts::Email, collection: true
|
|
17
|
+
attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
|
|
18
|
+
attribute :on_behalf_of, ::Sts::IsoSts::OnBehalfOf, collection: true
|
|
19
|
+
attribute :role, ::Sts::IsoSts::Role, collection: true
|
|
20
|
+
attribute :uri, ::Sts::IsoSts::Uri, collection: true
|
|
21
|
+
attribute :xref, ::Sts::IsoSts::Xref, collection: true
|
|
22
|
+
|
|
23
|
+
xml do
|
|
24
|
+
element "contrib-group"
|
|
25
|
+
ordered
|
|
26
|
+
|
|
27
|
+
map_attribute "id", to: :id
|
|
28
|
+
map_attribute "content-type", to: :content_type
|
|
29
|
+
map_attribute "specific-use", to: :specific_use
|
|
30
|
+
map_element "contrib", to: :contrib
|
|
31
|
+
map_element "address", to: :address
|
|
32
|
+
map_element "aff", to: :aff
|
|
33
|
+
map_element "aff-alternatives", to: :aff_alternatives
|
|
34
|
+
map_element "author-comment", to: :author_comment
|
|
35
|
+
map_element "bio", to: :bio
|
|
36
|
+
map_element "email", to: :email
|
|
37
|
+
map_element "ext-link", to: :ext_link
|
|
38
|
+
map_element "on-behalf-of", to: :on_behalf_of
|
|
39
|
+
map_element "role", to: :role
|
|
40
|
+
map_element "uri", to: :uri
|
|
41
|
+
map_element "xref", to: :xref
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module IsoSts
|
|
5
5
|
class CustomMetaGroup < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :custom_meta, ::Sts::IsoSts::CustomMeta, collection: true
|
|
7
8
|
|
|
8
9
|
xml do
|
|
9
10
|
element "custom-meta-group"
|
|
10
11
|
ordered
|
|
11
12
|
|
|
13
|
+
map_attribute "id", to: :id
|
|
12
14
|
map_element "custom-meta", to: :custom_meta
|
|
13
15
|
end
|
|
14
16
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class Date < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :date_type, :string
|
|
8
|
+
attribute :specific_use, :string
|
|
9
|
+
attribute :day, ::Sts::IsoSts::Day
|
|
10
|
+
attribute :month, ::Sts::IsoSts::Month
|
|
11
|
+
attribute :season, ::Sts::IsoSts::Season
|
|
12
|
+
attribute :year, ::Sts::IsoSts::Year
|
|
13
|
+
|
|
14
|
+
xml do
|
|
15
|
+
element "date"
|
|
16
|
+
ordered
|
|
17
|
+
|
|
18
|
+
map_attribute "id", to: :id
|
|
19
|
+
map_attribute "date-type", to: :date_type
|
|
20
|
+
map_attribute "specific-use", to: :specific_use
|
|
21
|
+
map_element "day", to: :day
|
|
22
|
+
map_element "month", to: :month
|
|
23
|
+
map_element "season", to: :season
|
|
24
|
+
map_element "year", to: :year
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|