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.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +5 -3
  3. data/.github/workflows/release.yml +6 -10
  4. data/Gemfile +1 -0
  5. data/README.adoc +42 -0
  6. data/TODO.sts-refactor/00-overview.md +11 -19
  7. data/TODO.sts-refactor/03-namespace-coupling.md +40 -39
  8. data/TODO.sts-refactor/08-isoiec-profile.md +4 -4
  9. data/TODO.sts-refactor/10-test-coverage.md +2 -1
  10. data/lib/sts/iso_sts/addr_line.rb +77 -0
  11. data/lib/sts/iso_sts/address.rb +40 -0
  12. data/lib/sts/iso_sts/aff.rb +87 -0
  13. data/lib/sts/iso_sts/aff_alternatives.rb +18 -0
  14. data/lib/sts/iso_sts/alternatives.rb +45 -0
  15. data/lib/sts/iso_sts/anonymous.rb +19 -0
  16. data/lib/sts/iso_sts/article_title.rb +92 -0
  17. data/lib/sts/iso_sts/attrib.rb +30 -1
  18. data/lib/sts/iso_sts/author_comment.rb +32 -0
  19. data/lib/sts/iso_sts/award_id.rb +69 -0
  20. data/lib/sts/iso_sts/back.rb +0 -2
  21. data/lib/sts/iso_sts/bio.rb +111 -0
  22. data/lib/sts/iso_sts/body.rb +0 -2
  23. data/lib/sts/iso_sts/boxed_text.rb +51 -13
  24. data/lib/sts/iso_sts/chapter_title.rb +56 -0
  25. data/lib/sts/iso_sts/chem_struct.rb +102 -0
  26. data/lib/sts/iso_sts/chem_struct_wrap.rb +60 -0
  27. data/lib/sts/iso_sts/collab.rb +118 -0
  28. data/lib/sts/iso_sts/comment.rb +94 -0
  29. data/lib/sts/iso_sts/conf_date.rb +24 -0
  30. data/lib/sts/iso_sts/conf_loc.rb +24 -0
  31. data/lib/sts/iso_sts/conf_name.rb +24 -0
  32. data/lib/sts/iso_sts/conf_sponsor.rb +24 -0
  33. data/lib/sts/iso_sts/content_language.rb +0 -4
  34. data/lib/sts/iso_sts/contrib.rb +74 -0
  35. data/lib/sts/iso_sts/contrib_group.rb +45 -0
  36. data/lib/sts/iso_sts/custom_meta.rb +0 -1
  37. data/lib/sts/iso_sts/custom_meta_group.rb +2 -0
  38. data/lib/sts/iso_sts/date.rb +28 -0
  39. data/lib/sts/iso_sts/date_in_citation.rb +32 -0
  40. data/lib/sts/iso_sts/degrees.rb +24 -0
  41. data/lib/sts/iso_sts/disp_formula_group.rb +43 -0
  42. data/lib/sts/iso_sts/disp_quote.rb +50 -12
  43. data/lib/sts/iso_sts/element_citation.rb +203 -0
  44. data/lib/sts/iso_sts/elocation_id.rb +24 -0
  45. data/lib/sts/iso_sts/fig_group.rb +50 -0
  46. data/lib/sts/iso_sts/funding_source.rb +85 -0
  47. data/lib/sts/iso_sts/given_names.rb +20 -0
  48. data/lib/sts/iso_sts/glossary.rb +91 -0
  49. data/lib/sts/iso_sts/glyph_data.rb +32 -0
  50. data/lib/sts/iso_sts/glyph_ref.rb +17 -0
  51. data/lib/sts/iso_sts/gov.rb +52 -0
  52. data/lib/sts/iso_sts/graphic.rb +0 -2
  53. data/lib/sts/iso_sts/inline_supplementary_material.rb +78 -0
  54. data/lib/sts/iso_sts/isbn.rb +22 -0
  55. data/lib/sts/iso_sts/issn.rb +22 -0
  56. data/lib/sts/iso_sts/issue_id.rb +26 -0
  57. data/lib/sts/iso_sts/issue_part.rb +24 -0
  58. data/lib/sts/iso_sts/issue_title.rb +24 -0
  59. data/lib/sts/iso_sts/journal_id.rb +24 -0
  60. data/lib/sts/iso_sts/language.rb +0 -4
  61. data/lib/sts/iso_sts/license.rb +2 -1
  62. data/lib/sts/iso_sts/license_p.rb +90 -29
  63. data/lib/sts/iso_sts/media.rb +64 -0
  64. data/lib/sts/iso_sts/meta_name.rb +3 -0
  65. data/lib/sts/iso_sts/meta_value.rb +53 -6
  66. data/lib/sts/iso_sts/mixed_citation.rb +9 -9
  67. data/lib/sts/iso_sts/monospace.rb +2 -0
  68. data/lib/sts/iso_sts/name.rb +32 -0
  69. data/lib/sts/iso_sts/name_alternatives.rb +20 -0
  70. data/lib/sts/iso_sts/on_behalf_of.rb +50 -0
  71. data/lib/sts/iso_sts/open_access.rb +28 -0
  72. data/lib/sts/iso_sts/overline.rb +99 -0
  73. data/lib/sts/iso_sts/part_title.rb +56 -0
  74. data/lib/sts/iso_sts/patent.rb +26 -0
  75. data/lib/sts/iso_sts/person_group.rb +44 -0
  76. data/lib/sts/iso_sts/prefix.rb +24 -0
  77. data/lib/sts/iso_sts/price.rb +46 -0
  78. data/lib/sts/iso_sts/private_char.rb +28 -0
  79. data/lib/sts/iso_sts/ref.rb +8 -5
  80. data/lib/sts/iso_sts/related_article.rb +191 -0
  81. data/lib/sts/iso_sts/related_object.rb +182 -0
  82. data/lib/sts/iso_sts/role.rb +52 -0
  83. data/lib/sts/iso_sts/roman.rb +99 -0
  84. data/lib/sts/iso_sts/sans_serif.rb +99 -0
  85. data/lib/sts/iso_sts/sc.rb +2 -0
  86. data/lib/sts/iso_sts/series.rb +52 -0
  87. data/lib/sts/iso_sts/size.rb +24 -0
  88. data/lib/sts/iso_sts/source.rb +58 -0
  89. data/lib/sts/iso_sts/speaker.rb +42 -0
  90. data/lib/sts/iso_sts/speech.rb +34 -0
  91. data/lib/sts/iso_sts/standard_ref.rb +2 -0
  92. data/lib/sts/iso_sts/statement.rb +40 -0
  93. data/lib/sts/iso_sts/strike.rb +2 -0
  94. data/lib/sts/iso_sts/string_name.rb +36 -0
  95. data/lib/sts/iso_sts/subtitle.rb +96 -0
  96. data/lib/sts/iso_sts/suffix.rb +24 -0
  97. data/lib/sts/iso_sts/supplement.rb +73 -0
  98. data/lib/sts/iso_sts/supplementary_material.rb +108 -0
  99. data/lib/sts/iso_sts/surname.rb +20 -0
  100. data/lib/sts/iso_sts/table_wrap_group.rb +44 -0
  101. data/lib/sts/iso_sts/target.rb +52 -0
  102. data/lib/sts/iso_sts/term_display.rb +81 -0
  103. data/lib/sts/iso_sts/term_head.rb +27 -13
  104. data/lib/sts/iso_sts/term_sec.rb +1 -1
  105. data/lib/sts/iso_sts/textual_form.rb +56 -0
  106. data/lib/sts/iso_sts/trans_source.rb +58 -0
  107. data/lib/sts/iso_sts/trans_title.rb +96 -0
  108. data/lib/sts/iso_sts/underline.rb +2 -0
  109. data/lib/sts/iso_sts/uri.rb +2 -0
  110. data/lib/sts/iso_sts/verse_group.rb +38 -0
  111. data/lib/sts/iso_sts/verse_line.rb +69 -0
  112. data/lib/sts/iso_sts/volume_id.rb +26 -0
  113. data/lib/sts/iso_sts/volume_series.rb +24 -0
  114. data/lib/sts/iso_sts.rb +94 -9
  115. data/lib/sts/niso_sts/element_citation.rb +1 -2
  116. data/lib/sts/niso_sts/mixed_citation.rb +1 -2
  117. data/lib/sts/niso_sts/nlm_citation.rb +1 -2
  118. data/lib/sts/niso_sts/preformat.rb +16 -0
  119. data/lib/sts/niso_sts/section.rb +1 -2
  120. data/lib/sts/niso_sts/sup.rb +14 -0
  121. data/lib/sts/niso_sts/term.rb +15 -2
  122. data/lib/sts/niso_sts/title.rb +2 -0
  123. data/lib/sts/profiles/iso_iec/constraints.rb +14 -11
  124. data/lib/sts/profiles/iso_iec/id_scheme.rb +64 -0
  125. data/lib/sts/profiles/iso_iec/validator.rb +25 -0
  126. data/lib/sts/profiles/iso_iec.rb +1 -0
  127. data/lib/sts/profiles.rb +26 -0
  128. data/lib/sts/tbx_iso_tml/bold.rb +6 -0
  129. data/lib/sts/tbx_iso_tml/definition.rb +4 -0
  130. data/lib/sts/tbx_iso_tml/example.rb +14 -0
  131. data/lib/sts/tbx_iso_tml/italic.rb +6 -0
  132. data/lib/sts/tbx_iso_tml/note.rb +10 -0
  133. data/lib/sts/version.rb +1 -1
  134. data/lib/sts.rb +4 -0
  135. metadata +83 -2
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class DateInCitation < 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 :day, ::Sts::IsoSts::Day, collection: true
12
+ attribute :month, ::Sts::IsoSts::Month, collection: true
13
+ attribute :season, ::Sts::IsoSts::Season, collection: true
14
+ attribute :year, ::Sts::IsoSts::Year, collection: true
15
+
16
+ xml do
17
+ element "date-in-citation"
18
+ mixed_content
19
+
20
+ map_attribute "id", to: :id
21
+ map_attribute "content-type", to: :content_type
22
+ map_attribute "specific-use", to: :specific_use
23
+ map_attribute "xml:lang", to: :xml_lang
24
+ map_content to: :content
25
+ map_element "day", to: :day
26
+ map_element "month", to: :month
27
+ map_element "season", to: :season
28
+ map_element "year", to: :year
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Degrees < 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 "degrees"
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,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class DispFormulaGroup < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :content_type, :string
8
+ attribute :specific_use, :string
9
+ attribute :xml_lang, :string
10
+ attribute :originator, :string
11
+ attribute :label, ::Sts::IsoSts::Label
12
+ attribute :caption, ::Sts::IsoSts::Caption
13
+ attribute :alt_text, ::Sts::IsoSts::AltText, collection: true
14
+ attribute :long_desc, ::Sts::IsoSts::LongDesc, collection: true
15
+ attribute :email, ::Sts::IsoSts::Email, collection: true
16
+ attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
17
+ attribute :uri, ::Sts::IsoSts::Uri, collection: true
18
+ attribute :disp_formula, ::Sts::IsoSts::DispFormula, collection: true
19
+ attribute :disp_formula_group, ::Sts::IsoSts::DispFormulaGroup,
20
+ collection: true
21
+
22
+ xml do
23
+ element "disp-formula-group"
24
+ ordered
25
+
26
+ map_attribute "id", to: :id
27
+ map_attribute "content-type", to: :content_type
28
+ map_attribute "specific-use", to: :specific_use
29
+ map_attribute "xml:lang", to: :xml_lang
30
+ map_attribute "originator", to: :originator
31
+ map_element "label", to: :label
32
+ map_element "caption", to: :caption
33
+ map_element "alt-text", to: :alt_text
34
+ map_element "long-desc", to: :long_desc
35
+ map_element "email", to: :email
36
+ map_element "ext-link", to: :ext_link
37
+ map_element "uri", to: :uri
38
+ map_element "disp-formula", to: :disp_formula
39
+ map_element "disp-formula-group", to: :disp_formula_group
40
+ end
41
+ end
42
+ end
43
+ end
@@ -10,22 +10,44 @@ module Sts
10
10
  attribute :originator, :string
11
11
  attribute :label, ::Sts::IsoSts::Label
12
12
  attribute :title, ::Sts::IsoSts::Title
13
- attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
14
- attribute :list, ::Sts::IsoSts::List, collection: true
15
- attribute :def_list, ::Sts::IsoSts::DefList, collection: true
13
+ attribute :address, ::Sts::IsoSts::Address, collection: true
14
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
15
+ attribute :array, ::Sts::IsoSts::Array, collection: true
16
+ attribute :boxed_text, ::Sts::IsoSts::BoxedText, collection: true
17
+ attribute :chem_struct_wrap, ::Sts::IsoSts::ChemStructWrap,
18
+ collection: true
19
+ attribute :fig, ::Sts::IsoSts::Fig, collection: true
20
+ attribute :fig_group, ::Sts::IsoSts::FigGroup, collection: true
21
+ attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
22
+ attribute :media, ::Sts::IsoSts::Media, collection: true
16
23
  attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
17
24
  collection: true
18
25
  attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
19
26
  collection: true
20
27
  attribute :preformat, ::Sts::IsoSts::Preformat, collection: true
21
- attribute :fig, ::Sts::IsoSts::Fig, collection: true
22
- attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
28
+ attribute :supplementary_material, ::Sts::IsoSts::SupplementaryMaterial,
29
+ collection: true
30
+ attribute :table_wrap, ::Sts::IsoSts::TableWrap, collection: true
31
+ attribute :table_wrap_group, ::Sts::IsoSts::TableWrapGroup,
32
+ collection: true
23
33
  attribute :disp_formula, ::Sts::IsoSts::DispFormula, collection: true
34
+ attribute :disp_formula_group, ::Sts::IsoSts::DispFormulaGroup,
35
+ collection: true
36
+ attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
37
+ attribute :def_list, ::Sts::IsoSts::DefList, collection: true
38
+ attribute :list, ::Sts::IsoSts::List, collection: true
39
+ attribute :math, ::Mml::V2::Math, collection: true
40
+ attribute :related_article, ::Sts::IsoSts::RelatedArticle,
41
+ collection: true
42
+ attribute :related_object, ::Sts::IsoSts::RelatedObject, collection: true
24
43
  attribute :disp_quote, ::Sts::IsoSts::DispQuote, collection: true
44
+ attribute :speech, ::Sts::IsoSts::Speech, collection: true
45
+ attribute :statement, ::Sts::IsoSts::Statement, collection: true
46
+ attribute :verse_group, ::Sts::IsoSts::VerseGroup, collection: true
25
47
  attribute :attrib, ::Sts::IsoSts::Attrib, collection: true
26
48
  attribute :permissions, ::Sts::IsoSts::Permissions, collection: true
27
49
 
28
- xml do
50
+ xml do # rubocop:disable Metrics/BlockLength
29
51
  element "disp-quote"
30
52
  ordered
31
53
 
@@ -34,19 +56,35 @@ module Sts
34
56
  map_attribute "specific-use", to: :specific_use
35
57
  map_attribute "xml:lang", to: :xml_lang
36
58
  map_attribute "originator", to: :originator
37
-
38
59
  map_element "label", to: :label
39
60
  map_element "title", to: :title
40
- map_element "p", to: :paragraph
41
- map_element "list", to: :list
42
- map_element "def-list", to: :def_list
61
+ map_element "address", to: :address
62
+ map_element "alternatives", to: :alternatives
63
+ map_element "array", to: :array
64
+ map_element "boxed-text", to: :boxed_text
65
+ map_element "chem-struct-wrap", to: :chem_struct_wrap
66
+ map_element "fig", to: :fig
67
+ map_element "fig-group", to: :fig_group
68
+ map_element "graphic", to: :graphic
69
+ map_element "media", to: :media
43
70
  map_element "non-normative-note", to: :non_normative_note
44
71
  map_element "non-normative-example", to: :non_normative_example
45
72
  map_element "preformat", to: :preformat
46
- map_element "fig", to: :fig
47
- map_element "graphic", to: :graphic
73
+ map_element "supplementary-material", to: :supplementary_material
74
+ map_element "table-wrap", to: :table_wrap
75
+ map_element "table-wrap-group", to: :table_wrap_group
48
76
  map_element "disp-formula", to: :disp_formula
77
+ map_element "disp-formula-group", to: :disp_formula_group
78
+ map_element "p", to: :paragraph
79
+ map_element "def-list", to: :def_list
80
+ map_element "list", to: :list
81
+ map_element "math", to: :math
82
+ map_element "related-article", to: :related_article
83
+ map_element "related-object", to: :related_object
49
84
  map_element "disp-quote", to: :disp_quote
85
+ map_element "speech", to: :speech
86
+ map_element "statement", to: :statement
87
+ map_element "verse-group", to: :verse_group
50
88
  map_element "attrib", to: :attrib
51
89
  map_element "permissions", to: :permissions
52
90
  end
@@ -0,0 +1,203 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class ElementCitation < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :publication_type, :string
8
+ attribute :publisher_type, :string
9
+ attribute :publication_format, :string
10
+ attribute :specific_use, :string
11
+ attribute :xml_lang, :string
12
+ attribute :xlink_type, :string
13
+ attribute :xlink_href, :string
14
+ attribute :xlink_role, :string
15
+ attribute :xlink_title, :string
16
+ attribute :xlink_show, :string
17
+ attribute :xlink_actuate, :string
18
+ attribute :break, ::Sts::IsoSts::Break, 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 :label, ::Sts::IsoSts::Label, 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 :annotation, ::Sts::IsoSts::Annotation, collection: true
42
+ attribute :article_title, ::Sts::IsoSts::ArticleTitle, collection: true
43
+ attribute :chapter_title, ::Sts::IsoSts::ChapterTitle, collection: true
44
+ attribute :collab, ::Sts::IsoSts::Collab, collection: true
45
+ attribute :comment, ::Sts::IsoSts::Comment, collection: true
46
+ attribute :conf_date, ::Sts::IsoSts::ConfDate, collection: true
47
+ attribute :conf_loc, ::Sts::IsoSts::ConfLoc, collection: true
48
+ attribute :conf_name, ::Sts::IsoSts::ConfName, collection: true
49
+ attribute :conf_sponsor, ::Sts::IsoSts::ConfSponsor, collection: true
50
+ attribute :date, ::Sts::IsoSts::Date, collection: true
51
+ attribute :date_in_citation, ::Sts::IsoSts::DateInCitation,
52
+ collection: true
53
+ attribute :day, ::Sts::IsoSts::Day, collection: true
54
+ attribute :edition, ::Sts::IsoSts::Edition, collection: true
55
+ attribute :email, ::Sts::IsoSts::Email, collection: true
56
+ attribute :elocation_id, ::Sts::IsoSts::ElocationId, collection: true
57
+ attribute :etal, ::Sts::IsoSts::Etal, collection: true
58
+ attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
59
+ attribute :fpage, ::Sts::IsoSts::Fpage, collection: true
60
+ attribute :gov, ::Sts::IsoSts::Gov, collection: true
61
+ attribute :institution, ::Sts::IsoSts::Institution, collection: true
62
+ attribute :isbn, ::Sts::IsoSts::Isbn, collection: true
63
+ attribute :issn, ::Sts::IsoSts::Issn, collection: true
64
+ attribute :issue, ::Sts::IsoSts::Issue, collection: true
65
+ attribute :issue_id, ::Sts::IsoSts::IssueId, collection: true
66
+ attribute :issue_part, ::Sts::IsoSts::IssuePart, collection: true
67
+ attribute :issue_title, ::Sts::IsoSts::IssueTitle, collection: true
68
+ attribute :lpage, ::Sts::IsoSts::Lpage, collection: true
69
+ attribute :month, ::Sts::IsoSts::Month, collection: true
70
+ attribute :name, ::Sts::IsoSts::Name, collection: true
71
+ attribute :name_alternatives, ::Sts::IsoSts::NameAlternatives,
72
+ collection: true
73
+ attribute :sts_object_id, ::Sts::IsoSts::ObjectId, collection: true
74
+ attribute :page_range, ::Sts::IsoSts::PageRange, collection: true
75
+ attribute :part_title, ::Sts::IsoSts::PartTitle, collection: true
76
+ attribute :patent, ::Sts::IsoSts::Patent, collection: true
77
+ attribute :person_group, ::Sts::IsoSts::PersonGroup, collection: true
78
+ attribute :pub_id, ::Sts::IsoSts::PubId, collection: true
79
+ attribute :publisher_loc, ::Sts::IsoSts::PublisherLoc, collection: true
80
+ attribute :publisher_name, ::Sts::IsoSts::PublisherName, collection: true
81
+ attribute :role, ::Sts::IsoSts::Role, collection: true
82
+ attribute :season, ::Sts::IsoSts::Season, collection: true
83
+ attribute :series, ::Sts::IsoSts::Series, collection: true
84
+ attribute :size, ::Sts::IsoSts::Size, collection: true
85
+ attribute :source, ::Sts::IsoSts::Source, collection: true
86
+ attribute :std, ::Sts::IsoSts::Std, collection: true
87
+ attribute :string_name, ::Sts::IsoSts::StringName, collection: true
88
+ attribute :supplement, ::Sts::IsoSts::Supplement, collection: true
89
+ attribute :trans_source, ::Sts::IsoSts::TransSource, collection: true
90
+ attribute :trans_title, ::Sts::IsoSts::TransTitle, collection: true
91
+ attribute :uri, ::Sts::IsoSts::Uri, collection: true
92
+ attribute :volume, ::Sts::IsoSts::Volume, collection: true
93
+ attribute :volume_id, ::Sts::IsoSts::VolumeId, collection: true
94
+ attribute :volume_series, ::Sts::IsoSts::VolumeSeries, collection: true
95
+ attribute :year, ::Sts::IsoSts::Year, collection: true
96
+ attribute :fn, ::Sts::IsoSts::Fn, collection: true
97
+ attribute :target, ::Sts::IsoSts::Target, collection: true
98
+ attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
99
+ attribute :xref, ::Sts::IsoSts::Xref, collection: true
100
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
101
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
102
+
103
+ xml do # rubocop:disable Metrics/BlockLength
104
+ element "element-citation"
105
+ ordered
106
+
107
+ map_attribute "id", to: :id
108
+ map_attribute "publication-type", to: :publication_type
109
+ map_attribute "publisher-type", to: :publisher_type
110
+ map_attribute "publication-format", to: :publication_format
111
+ map_attribute "specific-use", to: :specific_use
112
+ map_attribute "xml:lang", to: :xml_lang
113
+ map_attribute "xlink:type", to: :xlink_type
114
+ map_attribute "xlink:href", to: :xlink_href
115
+ map_attribute "xlink:role", to: :xlink_role
116
+ map_attribute "xlink:title", to: :xlink_title
117
+ map_attribute "xlink:show", to: :xlink_show
118
+ map_attribute "xlink:actuate", to: :xlink_actuate
119
+ map_element "break", to: :break
120
+ map_element "bold", to: :bold
121
+ map_element "italic", to: :italic
122
+ map_element "monospace", to: :monospace
123
+ map_element "num", to: :num
124
+ map_element "overline", to: :overline
125
+ map_element "roman", to: :roman
126
+ map_element "sans-serif", to: :sans_serif
127
+ map_element "sc", to: :sc
128
+ map_element "strike", to: :strike
129
+ map_element "underline", to: :underline
130
+ map_element "alternatives", to: :alternatives
131
+ map_element "inline-graphic", to: :inline_graphic
132
+ map_element "private-char", to: :private_char
133
+ map_element "chem-struct", to: :chem_struct
134
+ map_element "inline-formula", to: :inline_formula
135
+ map_element "label", to: :label
136
+ map_element "abbrev", to: :abbrev
137
+ map_element "milestone-end", to: :milestone_end
138
+ map_element "milestone-start", to: :milestone_start
139
+ map_element "named-content", to: :named_content
140
+ map_element "styled-content", to: :styled_content
141
+ map_element "annotation", to: :annotation
142
+ map_element "article-title", to: :article_title
143
+ map_element "chapter-title", to: :chapter_title
144
+ map_element "collab", to: :collab
145
+ map_element "comment", to: :comment
146
+ map_element "conf-date", to: :conf_date
147
+ map_element "conf-loc", to: :conf_loc
148
+ map_element "conf-name", to: :conf_name
149
+ map_element "conf-sponsor", to: :conf_sponsor
150
+ map_element "date", to: :date
151
+ map_element "date-in-citation", to: :date_in_citation
152
+ map_element "day", to: :day
153
+ map_element "edition", to: :edition
154
+ map_element "email", to: :email
155
+ map_element "elocation-id", to: :elocation_id
156
+ map_element "etal", to: :etal
157
+ map_element "ext-link", to: :ext_link
158
+ map_element "fpage", to: :fpage
159
+ map_element "gov", to: :gov
160
+ map_element "institution", to: :institution
161
+ map_element "isbn", to: :isbn
162
+ map_element "issn", to: :issn
163
+ map_element "issue", to: :issue
164
+ map_element "issue-id", to: :issue_id
165
+ map_element "issue-part", to: :issue_part
166
+ map_element "issue-title", to: :issue_title
167
+ map_element "lpage", to: :lpage
168
+ map_element "month", to: :month
169
+ map_element "name", to: :name
170
+ map_element "name-alternatives", to: :name_alternatives
171
+ map_element "object-id", to: :sts_object_id
172
+ map_element "page-range", to: :page_range
173
+ map_element "part-title", to: :part_title
174
+ map_element "patent", to: :patent
175
+ map_element "person-group", to: :person_group
176
+ map_element "pub-id", to: :pub_id
177
+ map_element "publisher-loc", to: :publisher_loc
178
+ map_element "publisher-name", to: :publisher_name
179
+ map_element "role", to: :role
180
+ map_element "season", to: :season
181
+ map_element "series", to: :series
182
+ map_element "size", to: :size
183
+ map_element "source", to: :source
184
+ map_element "std", to: :std
185
+ map_element "string-name", to: :string_name
186
+ map_element "supplement", to: :supplement
187
+ map_element "trans-source", to: :trans_source
188
+ map_element "trans-title", to: :trans_title
189
+ map_element "uri", to: :uri
190
+ map_element "volume", to: :volume
191
+ map_element "volume-id", to: :volume_id
192
+ map_element "volume-series", to: :volume_series
193
+ map_element "year", to: :year
194
+ map_element "fn", to: :fn
195
+ map_element "target", to: :target
196
+ map_element "entailedTerm", to: :entailed_term
197
+ map_element "xref", to: :xref
198
+ map_element "sub", to: :sub
199
+ map_element "sup", to: :sup
200
+ end
201
+ end
202
+ end
203
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class ElocationId < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :content_type, :string
8
+ attribute :seq, :string
9
+ attribute :specific_use, :string
10
+ attribute :content, :string, collection: true
11
+
12
+ xml do
13
+ element "elocation-id"
14
+ mixed_content
15
+
16
+ map_attribute "id", to: :id
17
+ map_attribute "content-type", to: :content_type
18
+ map_attribute "seq", to: :seq
19
+ map_attribute "specific-use", to: :specific_use
20
+ map_content to: :content
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class FigGroup < 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 :label, ::Sts::IsoSts::Label
14
+ attribute :caption, ::Sts::IsoSts::Caption
15
+ attribute :alt_text, ::Sts::IsoSts::AltText, collection: true
16
+ attribute :long_desc, ::Sts::IsoSts::LongDesc, collection: true
17
+ attribute :email, ::Sts::IsoSts::Email, collection: true
18
+ attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
19
+ attribute :uri, ::Sts::IsoSts::Uri, collection: true
20
+ attribute :fig, ::Sts::IsoSts::Fig, collection: true
21
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
22
+ attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
23
+ attribute :media, ::Sts::IsoSts::Media, collection: true
24
+
25
+ xml do
26
+ element "fig-group"
27
+ ordered
28
+
29
+ map_attribute "id", to: :id
30
+ map_attribute "position", to: :position
31
+ map_attribute "orientation", to: :orientation
32
+ map_attribute "specific-use", to: :specific_use
33
+ map_attribute "xml:lang", to: :xml_lang
34
+ map_attribute "content-type", to: :content_type
35
+ map_attribute "originator", to: :originator
36
+ map_element "label", to: :label
37
+ map_element "caption", to: :caption
38
+ map_element "alt-text", to: :alt_text
39
+ map_element "long-desc", to: :long_desc
40
+ map_element "email", to: :email
41
+ map_element "ext-link", to: :ext_link
42
+ map_element "uri", to: :uri
43
+ map_element "fig", to: :fig
44
+ map_element "alternatives", to: :alternatives
45
+ map_element "graphic", to: :graphic
46
+ map_element "media", to: :media
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,85 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class FundingSource < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :rid, :string
8
+ attribute :source_type, :string
9
+ attribute :country, :string
10
+ attribute :specific_use, :string
11
+ attribute :xml_lang, :string
12
+ attribute :xlink_type, :string
13
+ attribute :xlink_href, :string
14
+ attribute :xlink_role, :string
15
+ attribute :xlink_title, :string
16
+ attribute :xlink_show, :string
17
+ attribute :xlink_actuate, :string
18
+ attribute :content, :string, 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 :abbrev, ::Sts::IsoSts::Abbrev, collection: true
35
+ attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
36
+ attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
37
+ collection: true
38
+ attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
39
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
40
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
41
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
42
+
43
+ xml do # rubocop:disable Metrics/BlockLength
44
+ element "funding-source"
45
+ mixed_content
46
+
47
+ map_attribute "id", to: :id
48
+ map_attribute "rid", to: :rid
49
+ map_attribute "source-type", to: :source_type
50
+ map_attribute "country", to: :country
51
+ map_attribute "specific-use", to: :specific_use
52
+ map_attribute "xml:lang", to: :xml_lang
53
+ map_attribute "xlink:type", to: :xlink_type
54
+ map_attribute "xlink:href", to: :xlink_href
55
+ map_attribute "xlink:role", to: :xlink_role
56
+ map_attribute "xlink:title", to: :xlink_title
57
+ map_attribute "xlink:show", to: :xlink_show
58
+ map_attribute "xlink:actuate", to: :xlink_actuate
59
+ map_content to: :content
60
+ map_element "bold", to: :bold
61
+ map_element "italic", to: :italic
62
+ map_element "monospace", to: :monospace
63
+ map_element "num", to: :num
64
+ map_element "overline", to: :overline
65
+ map_element "roman", to: :roman
66
+ map_element "sans-serif", to: :sans_serif
67
+ map_element "sc", to: :sc
68
+ map_element "strike", to: :strike
69
+ map_element "underline", to: :underline
70
+ map_element "alternatives", to: :alternatives
71
+ map_element "inline-graphic", to: :inline_graphic
72
+ map_element "private-char", to: :private_char
73
+ map_element "chem-struct", to: :chem_struct
74
+ map_element "inline-formula", to: :inline_formula
75
+ map_element "abbrev", to: :abbrev
76
+ map_element "milestone-end", to: :milestone_end
77
+ map_element "milestone-start", to: :milestone_start
78
+ map_element "named-content", to: :named_content
79
+ map_element "styled-content", to: :styled_content
80
+ map_element "sub", to: :sub
81
+ map_element "sup", to: :sup
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class GivenNames < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :initials, :string
8
+ attribute :content, :string, collection: true
9
+
10
+ xml do
11
+ element "given-names"
12
+ mixed_content
13
+
14
+ map_attribute "id", to: :id
15
+ map_attribute "initials", to: :initials
16
+ map_content to: :content
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,91 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Glossary < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :content_type, :string
8
+ attribute :specific_use, :string
9
+ attribute :xml_lang, :string
10
+ attribute :originator, :string
11
+ attribute :label, ::Sts::IsoSts::Label
12
+ attribute :title, ::Sts::IsoSts::Title
13
+ attribute :address, ::Sts::IsoSts::Address, collection: true
14
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
15
+ attribute :array, ::Sts::IsoSts::Array, collection: true
16
+ attribute :boxed_text, ::Sts::IsoSts::BoxedText, collection: true
17
+ attribute :chem_struct_wrap, ::Sts::IsoSts::ChemStructWrap,
18
+ collection: true
19
+ attribute :fig, ::Sts::IsoSts::Fig, collection: true
20
+ attribute :fig_group, ::Sts::IsoSts::FigGroup, collection: true
21
+ attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
22
+ attribute :media, ::Sts::IsoSts::Media, collection: true
23
+ attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
24
+ collection: true
25
+ attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
26
+ collection: true
27
+ attribute :preformat, ::Sts::IsoSts::Preformat, collection: true
28
+ attribute :supplementary_material, ::Sts::IsoSts::SupplementaryMaterial,
29
+ collection: true
30
+ attribute :table_wrap, ::Sts::IsoSts::TableWrap, collection: true
31
+ attribute :table_wrap_group, ::Sts::IsoSts::TableWrapGroup,
32
+ collection: true
33
+ attribute :disp_formula, ::Sts::IsoSts::DispFormula, collection: true
34
+ attribute :disp_formula_group, ::Sts::IsoSts::DispFormulaGroup,
35
+ collection: true
36
+ attribute :paragraph, ::Sts::IsoSts::Paragraph, collection: true
37
+ attribute :def_list, ::Sts::IsoSts::DefList, collection: true
38
+ attribute :list, ::Sts::IsoSts::List, collection: true
39
+ attribute :math, ::Mml::V2::Math, collection: true
40
+ attribute :related_article, ::Sts::IsoSts::RelatedArticle,
41
+ collection: true
42
+ attribute :related_object, ::Sts::IsoSts::RelatedObject, collection: true
43
+ attribute :disp_quote, ::Sts::IsoSts::DispQuote, collection: true
44
+ attribute :speech, ::Sts::IsoSts::Speech, collection: true
45
+ attribute :statement, ::Sts::IsoSts::Statement, collection: true
46
+ attribute :verse_group, ::Sts::IsoSts::VerseGroup, collection: true
47
+ attribute :glossary, ::Sts::IsoSts::Glossary, collection: true
48
+
49
+ xml do # rubocop:disable Metrics/BlockLength
50
+ element "glossary"
51
+ ordered
52
+
53
+ map_attribute "id", to: :id
54
+ map_attribute "content-type", to: :content_type
55
+ map_attribute "specific-use", to: :specific_use
56
+ map_attribute "xml:lang", to: :xml_lang
57
+ map_attribute "originator", to: :originator
58
+ map_element "label", to: :label
59
+ map_element "title", to: :title
60
+ map_element "address", to: :address
61
+ map_element "alternatives", to: :alternatives
62
+ map_element "array", to: :array
63
+ map_element "boxed-text", to: :boxed_text
64
+ map_element "chem-struct-wrap", to: :chem_struct_wrap
65
+ map_element "fig", to: :fig
66
+ map_element "fig-group", to: :fig_group
67
+ map_element "graphic", to: :graphic
68
+ map_element "media", to: :media
69
+ map_element "non-normative-note", to: :non_normative_note
70
+ map_element "non-normative-example", to: :non_normative_example
71
+ map_element "preformat", to: :preformat
72
+ map_element "supplementary-material", to: :supplementary_material
73
+ map_element "table-wrap", to: :table_wrap
74
+ map_element "table-wrap-group", to: :table_wrap_group
75
+ map_element "disp-formula", to: :disp_formula
76
+ map_element "disp-formula-group", to: :disp_formula_group
77
+ map_element "p", to: :paragraph
78
+ map_element "def-list", to: :def_list
79
+ map_element "list", to: :list
80
+ map_element "math", to: :math
81
+ map_element "related-article", to: :related_article
82
+ map_element "related-object", to: :related_object
83
+ map_element "disp-quote", to: :disp_quote
84
+ map_element "speech", to: :speech
85
+ map_element "statement", to: :statement
86
+ map_element "verse-group", to: :verse_group
87
+ map_element "glossary", to: :glossary
88
+ end
89
+ end
90
+ end
91
+ end