sts 0.6.10 → 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 (138) 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/metadata_iso.rb +2 -1
  117. data/lib/sts/niso_sts/mixed_citation.rb +1 -2
  118. data/lib/sts/niso_sts/nat_meta.rb +4 -2
  119. data/lib/sts/niso_sts/nlm_citation.rb +1 -2
  120. data/lib/sts/niso_sts/preformat.rb +16 -0
  121. data/lib/sts/niso_sts/reg_meta.rb +4 -2
  122. data/lib/sts/niso_sts/section.rb +1 -2
  123. data/lib/sts/niso_sts/sup.rb +14 -0
  124. data/lib/sts/niso_sts/term.rb +15 -2
  125. data/lib/sts/niso_sts/title.rb +2 -0
  126. data/lib/sts/profiles/iso_iec/constraints.rb +14 -11
  127. data/lib/sts/profiles/iso_iec/id_scheme.rb +64 -0
  128. data/lib/sts/profiles/iso_iec/validator.rb +25 -0
  129. data/lib/sts/profiles/iso_iec.rb +1 -0
  130. data/lib/sts/profiles.rb +26 -0
  131. data/lib/sts/tbx_iso_tml/bold.rb +6 -0
  132. data/lib/sts/tbx_iso_tml/definition.rb +4 -0
  133. data/lib/sts/tbx_iso_tml/example.rb +14 -0
  134. data/lib/sts/tbx_iso_tml/italic.rb +6 -0
  135. data/lib/sts/tbx_iso_tml/note.rb +10 -0
  136. data/lib/sts/version.rb +1 -1
  137. data/lib/sts.rb +4 -0
  138. metadata +83 -2
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class GlyphData < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :fontchar, :string
8
+ attribute :fontname, :string
9
+ attribute :format, :string
10
+ attribute :resolution, :string
11
+ attribute :xml_space, :string
12
+ attribute :x_size, :string
13
+ attribute :y_size, :string
14
+ attribute :content, :string, collection: true
15
+
16
+ xml do
17
+ element "glyph-data"
18
+ mixed_content
19
+
20
+ map_attribute "id", to: :id
21
+ map_attribute "fontchar", to: :fontchar
22
+ map_attribute "fontname", to: :fontname
23
+ map_attribute "format", to: :format
24
+ map_attribute "resolution", to: :resolution
25
+ map_attribute "xml:space", to: :xml_space
26
+ map_attribute "x-size", to: :x_size
27
+ map_attribute "y-size", to: :y_size
28
+ map_content to: :content
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class GlyphRef < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :glyph_data, :string
8
+
9
+ xml do
10
+ element "glyph-ref"
11
+
12
+ map_attribute "id", to: :id
13
+ map_attribute "glyph-data", to: :glyph_data
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Gov < 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 :bold, ::Sts::IsoSts::Bold, collection: true
12
+ attribute :italic, ::Sts::IsoSts::Italic, collection: true
13
+ attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
14
+ attribute :num, ::Sts::IsoSts::Num, collection: true
15
+ attribute :overline, ::Sts::IsoSts::Overline, collection: true
16
+ attribute :roman, ::Sts::IsoSts::Roman, collection: true
17
+ attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
18
+ attribute :sc, ::Sts::IsoSts::Sc, collection: true
19
+ attribute :strike, ::Sts::IsoSts::Strike, collection: true
20
+ attribute :underline, ::Sts::IsoSts::Underline, collection: true
21
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
22
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
23
+ attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
24
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
25
+
26
+ xml do
27
+ element "gov"
28
+ mixed_content
29
+
30
+ map_attribute "id", to: :id
31
+ map_attribute "content-type", to: :content_type
32
+ map_attribute "specific-use", to: :specific_use
33
+ map_attribute "xml:lang", to: :xml_lang
34
+ map_content to: :content
35
+ map_element "bold", to: :bold
36
+ map_element "italic", to: :italic
37
+ map_element "monospace", to: :monospace
38
+ map_element "num", to: :num
39
+ map_element "overline", to: :overline
40
+ map_element "roman", to: :roman
41
+ map_element "sans-serif", to: :sans_serif
42
+ map_element "sc", to: :sc
43
+ map_element "strike", to: :strike
44
+ map_element "underline", to: :underline
45
+ map_element "sub", to: :sub
46
+ map_element "sup", to: :sup
47
+ map_element "named-content", to: :named_content
48
+ map_element "styled-content", to: :styled_content
49
+ end
50
+ end
51
+ end
52
+ end
@@ -17,7 +17,6 @@ module Sts
17
17
  attribute :xlink_title, :string
18
18
  attribute :xlink_show, :string
19
19
  attribute :xlink_actuate, :string
20
- attribute :graphic_type, :string
21
20
  attribute :originator, :string
22
21
  attribute :label, ::Sts::IsoSts::Label
23
22
  attribute :caption, ::Sts::IsoSts::Caption
@@ -42,7 +41,6 @@ module Sts
42
41
  map_attribute "xlink:title", to: :xlink_title
43
42
  map_attribute "xlink:show", to: :xlink_show
44
43
  map_attribute "xlink:actuate", to: :xlink_actuate
45
- map_attribute "type", to: :graphic_type
46
44
  map_attribute "originator", to: :originator
47
45
 
48
46
  map_element "label", to: :label
@@ -0,0 +1,78 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class InlineSupplementaryMaterial < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :content_type, :string
8
+ attribute :mimetype, :string
9
+ attribute :mime_subtype, :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 :alt_text, ::Sts::IsoSts::AltText, collection: true
20
+ attribute :long_desc, ::Sts::IsoSts::LongDesc, collection: true
21
+ attribute :email, ::Sts::IsoSts::Email, collection: true
22
+ attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
23
+ attribute :uri, ::Sts::IsoSts::Uri, collection: true
24
+ attribute :bold, ::Sts::IsoSts::Bold, collection: true
25
+ attribute :italic, ::Sts::IsoSts::Italic, collection: true
26
+ attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
27
+ attribute :num, ::Sts::IsoSts::Num, collection: true
28
+ attribute :overline, ::Sts::IsoSts::Overline, collection: true
29
+ attribute :roman, ::Sts::IsoSts::Roman, collection: true
30
+ attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
31
+ attribute :sc, ::Sts::IsoSts::Sc, collection: true
32
+ attribute :strike, ::Sts::IsoSts::Strike, collection: true
33
+ attribute :underline, ::Sts::IsoSts::Underline, collection: true
34
+ attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
35
+ attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
36
+ attribute :sub, ::Sts::IsoSts::Sub, collection: true
37
+ attribute :sup, ::Sts::IsoSts::Sup, collection: true
38
+
39
+ xml do # rubocop:disable Metrics/BlockLength
40
+ element "inline-supplementary-material"
41
+ mixed_content
42
+
43
+ map_attribute "id", to: :id
44
+ map_attribute "content-type", to: :content_type
45
+ map_attribute "mimetype", to: :mimetype
46
+ map_attribute "mime-subtype", to: :mime_subtype
47
+ map_attribute "specific-use", to: :specific_use
48
+ map_attribute "xml:lang", to: :xml_lang
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_content to: :content
56
+ map_element "alt-text", to: :alt_text
57
+ map_element "long-desc", to: :long_desc
58
+ map_element "email", to: :email
59
+ map_element "ext-link", to: :ext_link
60
+ map_element "uri", to: :uri
61
+ map_element "bold", to: :bold
62
+ map_element "italic", to: :italic
63
+ map_element "monospace", to: :monospace
64
+ map_element "num", to: :num
65
+ map_element "overline", to: :overline
66
+ map_element "roman", to: :roman
67
+ map_element "sans-serif", to: :sans_serif
68
+ map_element "sc", to: :sc
69
+ map_element "strike", to: :strike
70
+ map_element "underline", to: :underline
71
+ map_element "named-content", to: :named_content
72
+ map_element "styled-content", to: :styled_content
73
+ map_element "sub", to: :sub
74
+ map_element "sup", to: :sup
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Isbn < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :content_type, :string
8
+ attribute :specific_use, :string
9
+ attribute :content, :string, collection: true
10
+
11
+ xml do
12
+ element "isbn"
13
+ mixed_content
14
+
15
+ map_attribute "id", to: :id
16
+ map_attribute "content-type", to: :content_type
17
+ map_attribute "specific-use", to: :specific_use
18
+ map_content to: :content
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Issn < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :pub_type, :string
8
+ attribute :specific_use, :string
9
+ attribute :content, :string, collection: true
10
+
11
+ xml do
12
+ element "issn"
13
+ mixed_content
14
+
15
+ map_attribute "id", to: :id
16
+ map_attribute "pub-type", to: :pub_type
17
+ map_attribute "specific-use", to: :specific_use
18
+ map_content to: :content
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class IssueId < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :pub_id_type, :string
8
+ attribute :content_type, :string
9
+ attribute :specific_use, :string
10
+ attribute :xml_lang, :string
11
+ attribute :content, :string, collection: true
12
+
13
+ xml do
14
+ element "issue-id"
15
+ mixed_content
16
+
17
+ map_attribute "id", to: :id
18
+ map_attribute "pub-id-type", to: :pub_id_type
19
+ map_attribute "content-type", to: :content_type
20
+ map_attribute "specific-use", to: :specific_use
21
+ map_attribute "xml:lang", to: :xml_lang
22
+ map_content to: :content
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class IssuePart < 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 "issue-part"
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 IssueTitle < 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 "issue-title"
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 JournalId < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :journal_id_type, :string
8
+ attribute :specific_use, :string
9
+ attribute :xml_lang, :string
10
+ attribute :content, :string, collection: true
11
+
12
+ xml do
13
+ element "journal-id"
14
+ mixed_content
15
+
16
+ map_attribute "id", to: :id
17
+ map_attribute "journal-id-type", to: :journal_id_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 Language < 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 "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
@@ -3,6 +3,7 @@
3
3
  module Sts
4
4
  module IsoSts
5
5
  class License < Lutaml::Model::Serializable
6
+ attribute :id, :string
6
7
  attribute :license_type, :string
7
8
  attribute :specific_use, :string
8
9
  attribute :xml_lang, :string
@@ -18,6 +19,7 @@ module Sts
18
19
  element "license"
19
20
  ordered
20
21
 
22
+ map_attribute "id", to: :id
21
23
  map_attribute "license-type", to: :license_type
22
24
  map_attribute "specific-use", to: :specific_use
23
25
  map_attribute "xml:lang", to: :xml_lang
@@ -27,7 +29,6 @@ module Sts
27
29
  map_attribute "xlink:title", to: :xlink_title
28
30
  map_attribute "xlink:show", to: :xlink_show
29
31
  map_attribute "xlink:actuate", to: :xlink_actuate
30
-
31
32
  map_element "license-p", to: :license_p
32
33
  end
33
34
  end
@@ -5,46 +5,80 @@ module Sts
5
5
  class LicenseP < Lutaml::Model::Serializable
6
6
  attribute :id, :string
7
7
  attribute :specific_use, :string
8
- attribute :xml_lang, :string
9
- attribute :content_type, :string
10
8
  attribute :content, :string, collection: true
11
9
  attribute :email, ::Sts::IsoSts::Email, collection: true
12
10
  attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
13
11
  attribute :uri, ::Sts::IsoSts::Uri, collection: true
12
+ attribute :inline_supplementary_material, ::Sts::IsoSts::InlineSupplementaryMaterial,
13
+ collection: true
14
+ attribute :related_article, ::Sts::IsoSts::RelatedArticle,
15
+ collection: true
16
+ attribute :related_object, ::Sts::IsoSts::RelatedObject, collection: true
17
+ attribute :address, ::Sts::IsoSts::Address, collection: true
18
+ attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
19
+ attribute :array, ::Sts::IsoSts::Array, collection: true
20
+ attribute :boxed_text, ::Sts::IsoSts::BoxedText, collection: true
21
+ attribute :chem_struct_wrap, ::Sts::IsoSts::ChemStructWrap,
22
+ collection: true
23
+ attribute :fig, ::Sts::IsoSts::Fig, collection: true
24
+ attribute :fig_group, ::Sts::IsoSts::FigGroup, collection: true
25
+ attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
26
+ attribute :media, ::Sts::IsoSts::Media, collection: true
27
+ attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
28
+ collection: true
29
+ attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
30
+ collection: true
31
+ attribute :preformat, ::Sts::IsoSts::Preformat, collection: true
32
+ attribute :supplementary_material, ::Sts::IsoSts::SupplementaryMaterial,
33
+ collection: true
34
+ attribute :table_wrap, ::Sts::IsoSts::TableWrap, collection: true
35
+ attribute :table_wrap_group, ::Sts::IsoSts::TableWrapGroup,
36
+ collection: true
37
+ attribute :disp_formula, ::Sts::IsoSts::DispFormula, collection: true
38
+ attribute :disp_formula_group, ::Sts::IsoSts::DispFormulaGroup,
39
+ collection: true
40
+ attribute :element_citation, ::Sts::IsoSts::ElementCitation,
41
+ collection: true
14
42
  attribute :mixed_citation, ::Sts::IsoSts::MixedCitation, collection: true
15
43
  attribute :std, ::Sts::IsoSts::Std, collection: true
16
44
  attribute :bold, ::Sts::IsoSts::Bold, collection: true
17
45
  attribute :italic, ::Sts::IsoSts::Italic, collection: true
18
46
  attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
19
47
  attribute :num, ::Sts::IsoSts::Num, collection: true
48
+ attribute :overline, ::Sts::IsoSts::Overline, collection: true
49
+ attribute :roman, ::Sts::IsoSts::Roman, collection: true
50
+ attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
20
51
  attribute :sc, ::Sts::IsoSts::Sc, collection: true
21
52
  attribute :strike, ::Sts::IsoSts::Strike, collection: true
22
53
  attribute :underline, ::Sts::IsoSts::Underline, collection: true
23
- attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
54
+ attribute :award_id, ::Sts::IsoSts::AwardId, collection: true
55
+ attribute :funding_source, ::Sts::IsoSts::FundingSource, collection: true
56
+ attribute :open_access, ::Sts::IsoSts::OpenAccess, collection: true
57
+ attribute :chem_struct, ::Sts::IsoSts::ChemStruct, collection: true
24
58
  attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
59
+ attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
60
+ attribute :private_char, ::Sts::IsoSts::PrivateChar, collection: true
61
+ attribute :def_list, ::Sts::IsoSts::DefList, collection: true
62
+ attribute :list, ::Sts::IsoSts::List, collection: true
63
+ attribute :math, ::Mml::V2::Math, collection: true
25
64
  attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
26
65
  attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
27
66
  attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
28
67
  collection: true
29
68
  attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
30
69
  attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
31
- attribute :list, ::Sts::IsoSts::List, collection: true
32
- attribute :def_list, ::Sts::IsoSts::DefList, collection: true
33
- attribute :non_normative_note, ::Sts::IsoSts::NonNormativeNote,
34
- collection: true
35
- attribute :non_normative_example, ::Sts::IsoSts::NonNormativeExample,
36
- collection: true
37
- attribute :preformat, ::Sts::IsoSts::Preformat, collection: true
38
- attribute :fig, ::Sts::IsoSts::Fig, collection: true
39
- attribute :graphic, ::Sts::IsoSts::Graphic, collection: true
40
- attribute :disp_formula, ::Sts::IsoSts::DispFormula, collection: true
41
70
  attribute :disp_quote, ::Sts::IsoSts::DispQuote, collection: true
42
- attribute :boxed_text, ::Sts::IsoSts::BoxedText, collection: true
71
+ attribute :speech, ::Sts::IsoSts::Speech, collection: true
72
+ attribute :statement, ::Sts::IsoSts::Statement, collection: true
73
+ attribute :verse_group, ::Sts::IsoSts::VerseGroup, collection: true
43
74
  attribute :fn, ::Sts::IsoSts::Fn, collection: true
75
+ attribute :target, ::Sts::IsoSts::Target, collection: true
76
+ attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
44
77
  attribute :xref, ::Sts::IsoSts::Xref, collection: true
45
- attribute :std_ref, ::Sts::IsoSts::StdRef, collection: true
78
+ attribute :break, ::Sts::IsoSts::Break, collection: true
46
79
  attribute :sub, ::Sts::IsoSts::Sub, collection: true
47
80
  attribute :sup, ::Sts::IsoSts::Sup, collection: true
81
+ attribute :price, ::Sts::IsoSts::Price, collection: true
48
82
 
49
83
  xml do # rubocop:disable Metrics/BlockLength
50
84
  element "license-p"
@@ -52,44 +86,71 @@ module Sts
52
86
 
53
87
  map_attribute "id", to: :id
54
88
  map_attribute "specific-use", to: :specific_use
55
- map_attribute "xml:lang", to: :xml_lang
56
- map_attribute "content-type", to: :content_type
57
-
58
89
  map_content to: :content
59
90
  map_element "email", to: :email
60
91
  map_element "ext-link", to: :ext_link
61
92
  map_element "uri", to: :uri
93
+ map_element "inline-supplementary-material",
94
+ to: :inline_supplementary_material
95
+ map_element "related-article", to: :related_article
96
+ map_element "related-object", to: :related_object
97
+ map_element "address", to: :address
98
+ map_element "alternatives", to: :alternatives
99
+ map_element "array", to: :array
100
+ map_element "boxed-text", to: :boxed_text
101
+ map_element "chem-struct-wrap", to: :chem_struct_wrap
102
+ map_element "fig", to: :fig
103
+ map_element "fig-group", to: :fig_group
104
+ map_element "graphic", to: :graphic
105
+ map_element "media", to: :media
106
+ map_element "non-normative-note", to: :non_normative_note
107
+ map_element "non-normative-example", to: :non_normative_example
108
+ map_element "preformat", to: :preformat
109
+ map_element "supplementary-material", to: :supplementary_material
110
+ map_element "table-wrap", to: :table_wrap
111
+ map_element "table-wrap-group", to: :table_wrap_group
112
+ map_element "disp-formula", to: :disp_formula
113
+ map_element "disp-formula-group", to: :disp_formula_group
114
+ map_element "element-citation", to: :element_citation
62
115
  map_element "mixed-citation", to: :mixed_citation
63
116
  map_element "std", to: :std
64
117
  map_element "bold", to: :bold
65
118
  map_element "italic", to: :italic
66
119
  map_element "monospace", to: :monospace
67
120
  map_element "num", to: :num
121
+ map_element "overline", to: :overline
122
+ map_element "roman", to: :roman
123
+ map_element "sans-serif", to: :sans_serif
68
124
  map_element "sc", to: :sc
69
125
  map_element "strike", to: :strike
70
126
  map_element "underline", to: :underline
71
- map_element "inline-graphic", to: :inline_graphic
127
+ map_element "award-id", to: :award_id
128
+ map_element "funding-source", to: :funding_source
129
+ map_element "open-access", to: :open_access
130
+ map_element "chem-struct", to: :chem_struct
72
131
  map_element "inline-formula", to: :inline_formula
132
+ map_element "inline-graphic", to: :inline_graphic
133
+ map_element "private-char", to: :private_char
134
+ map_element "def-list", to: :def_list
135
+ map_element "list", to: :list
136
+ map_element "math", to: :math
73
137
  map_element "abbrev", to: :abbrev
74
138
  map_element "milestone-end", to: :milestone_end
75
139
  map_element "milestone-start", to: :milestone_start
76
140
  map_element "named-content", to: :named_content
77
141
  map_element "styled-content", to: :styled_content
78
- map_element "list", to: :list
79
- map_element "def-list", to: :def_list
80
- map_element "non-normative-note", to: :non_normative_note
81
- map_element "non-normative-example", to: :non_normative_example
82
- map_element "preformat", to: :preformat
83
- map_element "fig", to: :fig
84
- map_element "graphic", to: :graphic
85
- map_element "disp-formula", to: :disp_formula
86
142
  map_element "disp-quote", to: :disp_quote
87
- map_element "boxed-text", to: :boxed_text
143
+ map_element "speech", to: :speech
144
+ map_element "statement", to: :statement
145
+ map_element "verse-group", to: :verse_group
88
146
  map_element "fn", to: :fn
147
+ map_element "target", to: :target
148
+ map_element "entailedTerm", to: :entailed_term
89
149
  map_element "xref", to: :xref
90
- map_element "std-ref", to: :std_ref
150
+ map_element "break", to: :break
91
151
  map_element "sub", to: :sub
92
152
  map_element "sup", to: :sup
153
+ map_element "price", to: :price
93
154
  end
94
155
  end
95
156
  end
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module IsoSts
5
+ class Media < 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 :mimetype, :string
13
+ attribute :mime_subtype, :string
14
+ attribute :xlink_type, :string
15
+ attribute :xlink_href, :string
16
+ attribute :xlink_role, :string
17
+ attribute :xlink_title, :string
18
+ attribute :xlink_show, :string
19
+ attribute :xlink_actuate, :string
20
+ attribute :originator, :string
21
+ attribute :alt_text, ::Sts::IsoSts::AltText, collection: true
22
+ attribute :long_desc, ::Sts::IsoSts::LongDesc, collection: true
23
+ attribute :email, ::Sts::IsoSts::Email, collection: true
24
+ attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
25
+ attribute :uri, ::Sts::IsoSts::Uri, collection: true
26
+ attribute :sts_object_id, ::Sts::IsoSts::ObjectId, collection: true
27
+ attribute :label, ::Sts::IsoSts::Label, collection: true
28
+ attribute :caption, ::Sts::IsoSts::Caption, collection: true
29
+ attribute :attrib, ::Sts::IsoSts::Attrib, collection: true
30
+ attribute :permissions, ::Sts::IsoSts::Permissions, collection: true
31
+
32
+ xml do
33
+ element "media"
34
+ ordered
35
+
36
+ map_attribute "id", to: :id
37
+ map_attribute "position", to: :position
38
+ map_attribute "orientation", to: :orientation
39
+ map_attribute "specific-use", to: :specific_use
40
+ map_attribute "xml:lang", to: :xml_lang
41
+ map_attribute "content-type", to: :content_type
42
+ map_attribute "mimetype", to: :mimetype
43
+ map_attribute "mime-subtype", to: :mime_subtype
44
+ map_attribute "xlink:type", to: :xlink_type
45
+ map_attribute "xlink:href", to: :xlink_href
46
+ map_attribute "xlink:role", to: :xlink_role
47
+ map_attribute "xlink:title", to: :xlink_title
48
+ map_attribute "xlink:show", to: :xlink_show
49
+ map_attribute "xlink:actuate", to: :xlink_actuate
50
+ map_attribute "originator", to: :originator
51
+ map_element "alt-text", to: :alt_text
52
+ map_element "long-desc", to: :long_desc
53
+ map_element "email", to: :email
54
+ map_element "ext-link", to: :ext_link
55
+ map_element "uri", to: :uri
56
+ map_element "object-id", to: :sts_object_id
57
+ map_element "label", to: :label
58
+ map_element "caption", to: :caption
59
+ map_element "attrib", to: :attrib
60
+ map_element "permissions", to: :permissions
61
+ end
62
+ end
63
+ end
64
+ end
@@ -3,10 +3,13 @@
3
3
  module Sts
4
4
  module IsoSts
5
5
  class MetaName < Lutaml::Model::Serializable
6
+ attribute :id, :string
6
7
  attribute :content, :string
7
8
 
8
9
  xml do
9
10
  element "meta-name"
11
+
12
+ map_attribute "id", to: :id
10
13
  map_content to: :content
11
14
  end
12
15
  end