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.
- 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/metadata_iso.rb +2 -1
- data/lib/sts/niso_sts/mixed_citation.rb +1 -2
- data/lib/sts/niso_sts/nat_meta.rb +4 -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/reg_meta.rb +4 -2
- 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,191 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class RelatedArticle < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :related_article_type, :string
|
|
8
|
+
attribute :ext_link_type, :string
|
|
9
|
+
attribute :vol, :string
|
|
10
|
+
attribute :page, :string
|
|
11
|
+
attribute :issue, :string
|
|
12
|
+
attribute :elocation_id, :string
|
|
13
|
+
attribute :journal_id, :string
|
|
14
|
+
attribute :journal_id_type, :string
|
|
15
|
+
attribute :specific_use, :string
|
|
16
|
+
attribute :xml_lang, :string
|
|
17
|
+
attribute :xlink_type, :string
|
|
18
|
+
attribute :xlink_href, :string
|
|
19
|
+
attribute :xlink_role, :string
|
|
20
|
+
attribute :xlink_title, :string
|
|
21
|
+
attribute :xlink_show, :string
|
|
22
|
+
attribute :xlink_actuate, :string
|
|
23
|
+
attribute :originator, :string
|
|
24
|
+
attribute :content, :string, collection: true
|
|
25
|
+
attribute :bold, ::Sts::IsoSts::Bold, collection: true
|
|
26
|
+
attribute :italic, ::Sts::IsoSts::Italic, collection: true
|
|
27
|
+
attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
|
|
28
|
+
attribute :num, ::Sts::IsoSts::Num, collection: true
|
|
29
|
+
attribute :overline, ::Sts::IsoSts::Overline, collection: true
|
|
30
|
+
attribute :roman, ::Sts::IsoSts::Roman, collection: true
|
|
31
|
+
attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
|
|
32
|
+
attribute :sc, ::Sts::IsoSts::Sc, collection: true
|
|
33
|
+
attribute :strike, ::Sts::IsoSts::Strike, collection: true
|
|
34
|
+
attribute :underline, ::Sts::IsoSts::Underline, collection: true
|
|
35
|
+
attribute :journal_id_element, ::Sts::IsoSts::JournalId, collection: true
|
|
36
|
+
attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
|
|
37
|
+
attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
|
|
38
|
+
attribute :annotation, ::Sts::IsoSts::Annotation, collection: true
|
|
39
|
+
attribute :article_title, ::Sts::IsoSts::ArticleTitle, collection: true
|
|
40
|
+
attribute :chapter_title, ::Sts::IsoSts::ChapterTitle, collection: true
|
|
41
|
+
attribute :collab, ::Sts::IsoSts::Collab, collection: true
|
|
42
|
+
attribute :comment, ::Sts::IsoSts::Comment, collection: true
|
|
43
|
+
attribute :conf_date, ::Sts::IsoSts::ConfDate, collection: true
|
|
44
|
+
attribute :conf_loc, ::Sts::IsoSts::ConfLoc, collection: true
|
|
45
|
+
attribute :conf_name, ::Sts::IsoSts::ConfName, collection: true
|
|
46
|
+
attribute :conf_sponsor, ::Sts::IsoSts::ConfSponsor, collection: true
|
|
47
|
+
attribute :date, ::Sts::IsoSts::Date, collection: true
|
|
48
|
+
attribute :date_in_citation, ::Sts::IsoSts::DateInCitation,
|
|
49
|
+
collection: true
|
|
50
|
+
attribute :day, ::Sts::IsoSts::Day, collection: true
|
|
51
|
+
attribute :edition, ::Sts::IsoSts::Edition, collection: true
|
|
52
|
+
attribute :email, ::Sts::IsoSts::Email, collection: true
|
|
53
|
+
attribute :elocation_id_element, ::Sts::IsoSts::ElocationId,
|
|
54
|
+
collection: true
|
|
55
|
+
attribute :etal, ::Sts::IsoSts::Etal, collection: true
|
|
56
|
+
attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
|
|
57
|
+
attribute :fpage, ::Sts::IsoSts::Fpage, collection: true
|
|
58
|
+
attribute :gov, ::Sts::IsoSts::Gov, collection: true
|
|
59
|
+
attribute :institution, ::Sts::IsoSts::Institution, collection: true
|
|
60
|
+
attribute :isbn, ::Sts::IsoSts::Isbn, collection: true
|
|
61
|
+
attribute :issn, ::Sts::IsoSts::Issn, collection: true
|
|
62
|
+
attribute :issue_element, ::Sts::IsoSts::Issue, collection: true
|
|
63
|
+
attribute :issue_id, ::Sts::IsoSts::IssueId, collection: true
|
|
64
|
+
attribute :issue_part, ::Sts::IsoSts::IssuePart, collection: true
|
|
65
|
+
attribute :issue_title, ::Sts::IsoSts::IssueTitle, collection: true
|
|
66
|
+
attribute :lpage, ::Sts::IsoSts::Lpage, collection: true
|
|
67
|
+
attribute :month, ::Sts::IsoSts::Month, collection: true
|
|
68
|
+
attribute :name, ::Sts::IsoSts::Name, collection: true
|
|
69
|
+
attribute :name_alternatives, ::Sts::IsoSts::NameAlternatives,
|
|
70
|
+
collection: true
|
|
71
|
+
attribute :sts_object_id, ::Sts::IsoSts::ObjectId, collection: true
|
|
72
|
+
attribute :page_range, ::Sts::IsoSts::PageRange, collection: true
|
|
73
|
+
attribute :part_title, ::Sts::IsoSts::PartTitle, collection: true
|
|
74
|
+
attribute :patent, ::Sts::IsoSts::Patent, collection: true
|
|
75
|
+
attribute :person_group, ::Sts::IsoSts::PersonGroup, collection: true
|
|
76
|
+
attribute :pub_id, ::Sts::IsoSts::PubId, collection: true
|
|
77
|
+
attribute :publisher_loc, ::Sts::IsoSts::PublisherLoc, collection: true
|
|
78
|
+
attribute :publisher_name, ::Sts::IsoSts::PublisherName, collection: true
|
|
79
|
+
attribute :role, ::Sts::IsoSts::Role, collection: true
|
|
80
|
+
attribute :season, ::Sts::IsoSts::Season, collection: true
|
|
81
|
+
attribute :series, ::Sts::IsoSts::Series, collection: true
|
|
82
|
+
attribute :size, ::Sts::IsoSts::Size, collection: true
|
|
83
|
+
attribute :source, ::Sts::IsoSts::Source, collection: true
|
|
84
|
+
attribute :std, ::Sts::IsoSts::Std, collection: true
|
|
85
|
+
attribute :string_name, ::Sts::IsoSts::StringName, collection: true
|
|
86
|
+
attribute :supplement, ::Sts::IsoSts::Supplement, collection: true
|
|
87
|
+
attribute :trans_source, ::Sts::IsoSts::TransSource, collection: true
|
|
88
|
+
attribute :trans_title, ::Sts::IsoSts::TransTitle, collection: true
|
|
89
|
+
attribute :uri, ::Sts::IsoSts::Uri, collection: true
|
|
90
|
+
attribute :volume, ::Sts::IsoSts::Volume, collection: true
|
|
91
|
+
attribute :volume_id, ::Sts::IsoSts::VolumeId, collection: true
|
|
92
|
+
attribute :volume_series, ::Sts::IsoSts::VolumeSeries, collection: true
|
|
93
|
+
attribute :year, ::Sts::IsoSts::Year, collection: true
|
|
94
|
+
attribute :sub, ::Sts::IsoSts::Sub, collection: true
|
|
95
|
+
attribute :sup, ::Sts::IsoSts::Sup, collection: true
|
|
96
|
+
|
|
97
|
+
xml do # rubocop:disable Metrics/BlockLength
|
|
98
|
+
element "related-article"
|
|
99
|
+
mixed_content
|
|
100
|
+
|
|
101
|
+
map_attribute "id", to: :id
|
|
102
|
+
map_attribute "related-article-type", to: :related_article_type
|
|
103
|
+
map_attribute "ext-link-type", to: :ext_link_type
|
|
104
|
+
map_attribute "vol", to: :vol
|
|
105
|
+
map_attribute "page", to: :page
|
|
106
|
+
map_attribute "issue", to: :issue
|
|
107
|
+
map_attribute "elocation-id", to: :elocation_id
|
|
108
|
+
map_attribute "journal-id", to: :journal_id
|
|
109
|
+
map_attribute "journal-id-type", to: :journal_id_type
|
|
110
|
+
map_attribute "specific-use", to: :specific_use
|
|
111
|
+
map_attribute "xml:lang", to: :xml_lang
|
|
112
|
+
map_attribute "xlink:type", to: :xlink_type
|
|
113
|
+
map_attribute "xlink:href", to: :xlink_href
|
|
114
|
+
map_attribute "xlink:role", to: :xlink_role
|
|
115
|
+
map_attribute "xlink:title", to: :xlink_title
|
|
116
|
+
map_attribute "xlink:show", to: :xlink_show
|
|
117
|
+
map_attribute "xlink:actuate", to: :xlink_actuate
|
|
118
|
+
map_attribute "originator", to: :originator
|
|
119
|
+
map_content to: :content
|
|
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 "journal-id", to: :journal_id_element
|
|
131
|
+
map_element "named-content", to: :named_content
|
|
132
|
+
map_element "styled-content", to: :styled_content
|
|
133
|
+
map_element "annotation", to: :annotation
|
|
134
|
+
map_element "article-title", to: :article_title
|
|
135
|
+
map_element "chapter-title", to: :chapter_title
|
|
136
|
+
map_element "collab", to: :collab
|
|
137
|
+
map_element "comment", to: :comment
|
|
138
|
+
map_element "conf-date", to: :conf_date
|
|
139
|
+
map_element "conf-loc", to: :conf_loc
|
|
140
|
+
map_element "conf-name", to: :conf_name
|
|
141
|
+
map_element "conf-sponsor", to: :conf_sponsor
|
|
142
|
+
map_element "date", to: :date
|
|
143
|
+
map_element "date-in-citation", to: :date_in_citation
|
|
144
|
+
map_element "day", to: :day
|
|
145
|
+
map_element "edition", to: :edition
|
|
146
|
+
map_element "email", to: :email
|
|
147
|
+
map_element "elocation-id", to: :elocation_id_element
|
|
148
|
+
map_element "etal", to: :etal
|
|
149
|
+
map_element "ext-link", to: :ext_link
|
|
150
|
+
map_element "fpage", to: :fpage
|
|
151
|
+
map_element "gov", to: :gov
|
|
152
|
+
map_element "institution", to: :institution
|
|
153
|
+
map_element "isbn", to: :isbn
|
|
154
|
+
map_element "issn", to: :issn
|
|
155
|
+
map_element "issue", to: :issue_element
|
|
156
|
+
map_element "issue-id", to: :issue_id
|
|
157
|
+
map_element "issue-part", to: :issue_part
|
|
158
|
+
map_element "issue-title", to: :issue_title
|
|
159
|
+
map_element "lpage", to: :lpage
|
|
160
|
+
map_element "month", to: :month
|
|
161
|
+
map_element "name", to: :name
|
|
162
|
+
map_element "name-alternatives", to: :name_alternatives
|
|
163
|
+
map_element "object-id", to: :sts_object_id
|
|
164
|
+
map_element "page-range", to: :page_range
|
|
165
|
+
map_element "part-title", to: :part_title
|
|
166
|
+
map_element "patent", to: :patent
|
|
167
|
+
map_element "person-group", to: :person_group
|
|
168
|
+
map_element "pub-id", to: :pub_id
|
|
169
|
+
map_element "publisher-loc", to: :publisher_loc
|
|
170
|
+
map_element "publisher-name", to: :publisher_name
|
|
171
|
+
map_element "role", to: :role
|
|
172
|
+
map_element "season", to: :season
|
|
173
|
+
map_element "series", to: :series
|
|
174
|
+
map_element "size", to: :size
|
|
175
|
+
map_element "source", to: :source
|
|
176
|
+
map_element "std", to: :std
|
|
177
|
+
map_element "string-name", to: :string_name
|
|
178
|
+
map_element "supplement", to: :supplement
|
|
179
|
+
map_element "trans-source", to: :trans_source
|
|
180
|
+
map_element "trans-title", to: :trans_title
|
|
181
|
+
map_element "uri", to: :uri
|
|
182
|
+
map_element "volume", to: :volume
|
|
183
|
+
map_element "volume-id", to: :volume_id
|
|
184
|
+
map_element "volume-series", to: :volume_series
|
|
185
|
+
map_element "year", to: :year
|
|
186
|
+
map_element "sub", to: :sub
|
|
187
|
+
map_element "sup", to: :sup
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
end
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class RelatedObject < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :link_type, :string
|
|
8
|
+
attribute :source_id, :string
|
|
9
|
+
attribute :source_id_type, :string
|
|
10
|
+
attribute :source_type, :string
|
|
11
|
+
attribute :document_id, :string
|
|
12
|
+
attribute :document_id_type, :string
|
|
13
|
+
attribute :document_type, :string
|
|
14
|
+
attribute :object_id_value, :string
|
|
15
|
+
attribute :object_id_type, :string
|
|
16
|
+
attribute :object_type, :string
|
|
17
|
+
attribute :content_type, :string
|
|
18
|
+
attribute :specific_use, :string
|
|
19
|
+
attribute :xml_lang, :string
|
|
20
|
+
attribute :originator, :string
|
|
21
|
+
attribute :content, :string, collection: true
|
|
22
|
+
attribute :bold, ::Sts::IsoSts::Bold, collection: true
|
|
23
|
+
attribute :italic, ::Sts::IsoSts::Italic, collection: true
|
|
24
|
+
attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
|
|
25
|
+
attribute :num, ::Sts::IsoSts::Num, collection: true
|
|
26
|
+
attribute :overline, ::Sts::IsoSts::Overline, collection: true
|
|
27
|
+
attribute :roman, ::Sts::IsoSts::Roman, collection: true
|
|
28
|
+
attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
|
|
29
|
+
attribute :sc, ::Sts::IsoSts::Sc, collection: true
|
|
30
|
+
attribute :strike, ::Sts::IsoSts::Strike, collection: true
|
|
31
|
+
attribute :underline, ::Sts::IsoSts::Underline, collection: true
|
|
32
|
+
attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
|
|
33
|
+
attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
|
|
34
|
+
attribute :annotation, ::Sts::IsoSts::Annotation, collection: true
|
|
35
|
+
attribute :article_title, ::Sts::IsoSts::ArticleTitle, collection: true
|
|
36
|
+
attribute :chapter_title, ::Sts::IsoSts::ChapterTitle, collection: true
|
|
37
|
+
attribute :collab, ::Sts::IsoSts::Collab, collection: true
|
|
38
|
+
attribute :comment, ::Sts::IsoSts::Comment, collection: true
|
|
39
|
+
attribute :conf_date, ::Sts::IsoSts::ConfDate, collection: true
|
|
40
|
+
attribute :conf_loc, ::Sts::IsoSts::ConfLoc, collection: true
|
|
41
|
+
attribute :conf_name, ::Sts::IsoSts::ConfName, collection: true
|
|
42
|
+
attribute :conf_sponsor, ::Sts::IsoSts::ConfSponsor, collection: true
|
|
43
|
+
attribute :date, ::Sts::IsoSts::Date, collection: true
|
|
44
|
+
attribute :date_in_citation, ::Sts::IsoSts::DateInCitation,
|
|
45
|
+
collection: true
|
|
46
|
+
attribute :day, ::Sts::IsoSts::Day, collection: true
|
|
47
|
+
attribute :edition, ::Sts::IsoSts::Edition, collection: true
|
|
48
|
+
attribute :email, ::Sts::IsoSts::Email, collection: true
|
|
49
|
+
attribute :elocation_id, ::Sts::IsoSts::ElocationId, collection: true
|
|
50
|
+
attribute :etal, ::Sts::IsoSts::Etal, collection: true
|
|
51
|
+
attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
|
|
52
|
+
attribute :fpage, ::Sts::IsoSts::Fpage, collection: true
|
|
53
|
+
attribute :gov, ::Sts::IsoSts::Gov, collection: true
|
|
54
|
+
attribute :institution, ::Sts::IsoSts::Institution, collection: true
|
|
55
|
+
attribute :isbn, ::Sts::IsoSts::Isbn, collection: true
|
|
56
|
+
attribute :issn, ::Sts::IsoSts::Issn, collection: true
|
|
57
|
+
attribute :issue, ::Sts::IsoSts::Issue, collection: true
|
|
58
|
+
attribute :issue_id, ::Sts::IsoSts::IssueId, collection: true
|
|
59
|
+
attribute :issue_part, ::Sts::IsoSts::IssuePart, collection: true
|
|
60
|
+
attribute :issue_title, ::Sts::IsoSts::IssueTitle, collection: true
|
|
61
|
+
attribute :lpage, ::Sts::IsoSts::Lpage, collection: true
|
|
62
|
+
attribute :month, ::Sts::IsoSts::Month, collection: true
|
|
63
|
+
attribute :name, ::Sts::IsoSts::Name, collection: true
|
|
64
|
+
attribute :name_alternatives, ::Sts::IsoSts::NameAlternatives,
|
|
65
|
+
collection: true
|
|
66
|
+
attribute :sts_object_id, ::Sts::IsoSts::ObjectId, collection: true
|
|
67
|
+
attribute :page_range, ::Sts::IsoSts::PageRange, collection: true
|
|
68
|
+
attribute :part_title, ::Sts::IsoSts::PartTitle, collection: true
|
|
69
|
+
attribute :patent, ::Sts::IsoSts::Patent, collection: true
|
|
70
|
+
attribute :person_group, ::Sts::IsoSts::PersonGroup, collection: true
|
|
71
|
+
attribute :pub_id, ::Sts::IsoSts::PubId, collection: true
|
|
72
|
+
attribute :publisher_loc, ::Sts::IsoSts::PublisherLoc, collection: true
|
|
73
|
+
attribute :publisher_name, ::Sts::IsoSts::PublisherName, collection: true
|
|
74
|
+
attribute :role, ::Sts::IsoSts::Role, collection: true
|
|
75
|
+
attribute :season, ::Sts::IsoSts::Season, collection: true
|
|
76
|
+
attribute :series, ::Sts::IsoSts::Series, collection: true
|
|
77
|
+
attribute :size, ::Sts::IsoSts::Size, collection: true
|
|
78
|
+
attribute :source, ::Sts::IsoSts::Source, collection: true
|
|
79
|
+
attribute :std, ::Sts::IsoSts::Std, collection: true
|
|
80
|
+
attribute :string_name, ::Sts::IsoSts::StringName, collection: true
|
|
81
|
+
attribute :supplement, ::Sts::IsoSts::Supplement, collection: true
|
|
82
|
+
attribute :trans_source, ::Sts::IsoSts::TransSource, collection: true
|
|
83
|
+
attribute :trans_title, ::Sts::IsoSts::TransTitle, collection: true
|
|
84
|
+
attribute :uri, ::Sts::IsoSts::Uri, collection: true
|
|
85
|
+
attribute :volume, ::Sts::IsoSts::Volume, collection: true
|
|
86
|
+
attribute :volume_id, ::Sts::IsoSts::VolumeId, collection: true
|
|
87
|
+
attribute :volume_series, ::Sts::IsoSts::VolumeSeries, collection: true
|
|
88
|
+
attribute :year, ::Sts::IsoSts::Year, collection: true
|
|
89
|
+
attribute :sub, ::Sts::IsoSts::Sub, collection: true
|
|
90
|
+
attribute :sup, ::Sts::IsoSts::Sup, collection: true
|
|
91
|
+
|
|
92
|
+
xml do # rubocop:disable Metrics/BlockLength
|
|
93
|
+
element "related-object"
|
|
94
|
+
mixed_content
|
|
95
|
+
|
|
96
|
+
map_attribute "id", to: :id
|
|
97
|
+
map_attribute "link-type", to: :link_type
|
|
98
|
+
map_attribute "source-id", to: :source_id
|
|
99
|
+
map_attribute "source-id-type", to: :source_id_type
|
|
100
|
+
map_attribute "source-type", to: :source_type
|
|
101
|
+
map_attribute "document-id", to: :document_id
|
|
102
|
+
map_attribute "document-id-type", to: :document_id_type
|
|
103
|
+
map_attribute "document-type", to: :document_type
|
|
104
|
+
map_attribute "object-id", to: :object_id_value
|
|
105
|
+
map_attribute "object-id-type", to: :object_id_type
|
|
106
|
+
map_attribute "object-type", to: :object_type
|
|
107
|
+
map_attribute "content-type", to: :content_type
|
|
108
|
+
map_attribute "specific-use", to: :specific_use
|
|
109
|
+
map_attribute "xml:lang", to: :xml_lang
|
|
110
|
+
map_attribute "originator", to: :originator
|
|
111
|
+
map_content to: :content
|
|
112
|
+
map_element "bold", to: :bold
|
|
113
|
+
map_element "italic", to: :italic
|
|
114
|
+
map_element "monospace", to: :monospace
|
|
115
|
+
map_element "num", to: :num
|
|
116
|
+
map_element "overline", to: :overline
|
|
117
|
+
map_element "roman", to: :roman
|
|
118
|
+
map_element "sans-serif", to: :sans_serif
|
|
119
|
+
map_element "sc", to: :sc
|
|
120
|
+
map_element "strike", to: :strike
|
|
121
|
+
map_element "underline", to: :underline
|
|
122
|
+
map_element "named-content", to: :named_content
|
|
123
|
+
map_element "styled-content", to: :styled_content
|
|
124
|
+
map_element "annotation", to: :annotation
|
|
125
|
+
map_element "article-title", to: :article_title
|
|
126
|
+
map_element "chapter-title", to: :chapter_title
|
|
127
|
+
map_element "collab", to: :collab
|
|
128
|
+
map_element "comment", to: :comment
|
|
129
|
+
map_element "conf-date", to: :conf_date
|
|
130
|
+
map_element "conf-loc", to: :conf_loc
|
|
131
|
+
map_element "conf-name", to: :conf_name
|
|
132
|
+
map_element "conf-sponsor", to: :conf_sponsor
|
|
133
|
+
map_element "date", to: :date
|
|
134
|
+
map_element "date-in-citation", to: :date_in_citation
|
|
135
|
+
map_element "day", to: :day
|
|
136
|
+
map_element "edition", to: :edition
|
|
137
|
+
map_element "email", to: :email
|
|
138
|
+
map_element "elocation-id", to: :elocation_id
|
|
139
|
+
map_element "etal", to: :etal
|
|
140
|
+
map_element "ext-link", to: :ext_link
|
|
141
|
+
map_element "fpage", to: :fpage
|
|
142
|
+
map_element "gov", to: :gov
|
|
143
|
+
map_element "institution", to: :institution
|
|
144
|
+
map_element "isbn", to: :isbn
|
|
145
|
+
map_element "issn", to: :issn
|
|
146
|
+
map_element "issue", to: :issue
|
|
147
|
+
map_element "issue-id", to: :issue_id
|
|
148
|
+
map_element "issue-part", to: :issue_part
|
|
149
|
+
map_element "issue-title", to: :issue_title
|
|
150
|
+
map_element "lpage", to: :lpage
|
|
151
|
+
map_element "month", to: :month
|
|
152
|
+
map_element "name", to: :name
|
|
153
|
+
map_element "name-alternatives", to: :name_alternatives
|
|
154
|
+
map_element "object-id", to: :sts_object_id
|
|
155
|
+
map_element "page-range", to: :page_range
|
|
156
|
+
map_element "part-title", to: :part_title
|
|
157
|
+
map_element "patent", to: :patent
|
|
158
|
+
map_element "person-group", to: :person_group
|
|
159
|
+
map_element "pub-id", to: :pub_id
|
|
160
|
+
map_element "publisher-loc", to: :publisher_loc
|
|
161
|
+
map_element "publisher-name", to: :publisher_name
|
|
162
|
+
map_element "role", to: :role
|
|
163
|
+
map_element "season", to: :season
|
|
164
|
+
map_element "series", to: :series
|
|
165
|
+
map_element "size", to: :size
|
|
166
|
+
map_element "source", to: :source
|
|
167
|
+
map_element "std", to: :std
|
|
168
|
+
map_element "string-name", to: :string_name
|
|
169
|
+
map_element "supplement", to: :supplement
|
|
170
|
+
map_element "trans-source", to: :trans_source
|
|
171
|
+
map_element "trans-title", to: :trans_title
|
|
172
|
+
map_element "uri", to: :uri
|
|
173
|
+
map_element "volume", to: :volume
|
|
174
|
+
map_element "volume-id", to: :volume_id
|
|
175
|
+
map_element "volume-series", to: :volume_series
|
|
176
|
+
map_element "year", to: :year
|
|
177
|
+
map_element "sub", to: :sub
|
|
178
|
+
map_element "sup", to: :sup
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class Role < 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 "role"
|
|
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
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class Roman < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :specific_use, :string
|
|
8
|
+
attribute :content, :string, collection: true
|
|
9
|
+
attribute :email, ::Sts::IsoSts::Email, collection: true
|
|
10
|
+
attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
|
|
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 :element_citation, ::Sts::IsoSts::ElementCitation,
|
|
18
|
+
collection: true
|
|
19
|
+
attribute :mixed_citation, ::Sts::IsoSts::MixedCitation, collection: true
|
|
20
|
+
attribute :std, ::Sts::IsoSts::Std, collection: true
|
|
21
|
+
attribute :bold, ::Sts::IsoSts::Bold, collection: true
|
|
22
|
+
attribute :italic, ::Sts::IsoSts::Italic, collection: true
|
|
23
|
+
attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
|
|
24
|
+
attribute :num, ::Sts::IsoSts::Num, collection: true
|
|
25
|
+
attribute :overline, ::Sts::IsoSts::Overline, collection: true
|
|
26
|
+
attribute :roman, ::Sts::IsoSts::Roman, collection: true
|
|
27
|
+
attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
|
|
28
|
+
attribute :sc, ::Sts::IsoSts::Sc, collection: true
|
|
29
|
+
attribute :strike, ::Sts::IsoSts::Strike, collection: true
|
|
30
|
+
attribute :underline, ::Sts::IsoSts::Underline, collection: true
|
|
31
|
+
attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
|
|
32
|
+
attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
|
|
33
|
+
attribute :private_char, ::Sts::IsoSts::PrivateChar, collection: true
|
|
34
|
+
attribute :chem_struct, ::Sts::IsoSts::ChemStruct, collection: true
|
|
35
|
+
attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
|
|
36
|
+
attribute :math, ::Mml::V2::Math, collection: true
|
|
37
|
+
attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
|
|
38
|
+
attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
|
|
39
|
+
attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
|
|
40
|
+
collection: true
|
|
41
|
+
attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
|
|
42
|
+
attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
|
|
43
|
+
attribute :fn, ::Sts::IsoSts::Fn, collection: true
|
|
44
|
+
attribute :target, ::Sts::IsoSts::Target, collection: true
|
|
45
|
+
attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
|
|
46
|
+
attribute :xref, ::Sts::IsoSts::Xref, collection: true
|
|
47
|
+
attribute :std_ref, ::Sts::IsoSts::StdRef, 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 "roman"
|
|
53
|
+
mixed_content
|
|
54
|
+
|
|
55
|
+
map_attribute "id", to: :id
|
|
56
|
+
map_attribute "specific-use", to: :specific_use
|
|
57
|
+
map_content to: :content
|
|
58
|
+
map_element "email", to: :email
|
|
59
|
+
map_element "ext-link", to: :ext_link
|
|
60
|
+
map_element "uri", to: :uri
|
|
61
|
+
map_element "inline-supplementary-material",
|
|
62
|
+
to: :inline_supplementary_material
|
|
63
|
+
map_element "related-article", to: :related_article
|
|
64
|
+
map_element "related-object", to: :related_object
|
|
65
|
+
map_element "element-citation", to: :element_citation
|
|
66
|
+
map_element "mixed-citation", to: :mixed_citation
|
|
67
|
+
map_element "std", to: :std
|
|
68
|
+
map_element "bold", to: :bold
|
|
69
|
+
map_element "italic", to: :italic
|
|
70
|
+
map_element "monospace", to: :monospace
|
|
71
|
+
map_element "num", to: :num
|
|
72
|
+
map_element "overline", to: :overline
|
|
73
|
+
map_element "roman", to: :roman
|
|
74
|
+
map_element "sans-serif", to: :sans_serif
|
|
75
|
+
map_element "sc", to: :sc
|
|
76
|
+
map_element "strike", to: :strike
|
|
77
|
+
map_element "underline", to: :underline
|
|
78
|
+
map_element "alternatives", to: :alternatives
|
|
79
|
+
map_element "inline-graphic", to: :inline_graphic
|
|
80
|
+
map_element "private-char", to: :private_char
|
|
81
|
+
map_element "chem-struct", to: :chem_struct
|
|
82
|
+
map_element "inline-formula", to: :inline_formula
|
|
83
|
+
map_element "math", to: :math
|
|
84
|
+
map_element "abbrev", to: :abbrev
|
|
85
|
+
map_element "milestone-end", to: :milestone_end
|
|
86
|
+
map_element "milestone-start", to: :milestone_start
|
|
87
|
+
map_element "named-content", to: :named_content
|
|
88
|
+
map_element "styled-content", to: :styled_content
|
|
89
|
+
map_element "fn", to: :fn
|
|
90
|
+
map_element "target", to: :target
|
|
91
|
+
map_element "entailedTerm", to: :entailed_term
|
|
92
|
+
map_element "xref", to: :xref
|
|
93
|
+
map_element "std-ref", to: :std_ref
|
|
94
|
+
map_element "sub", to: :sub
|
|
95
|
+
map_element "sup", to: :sup
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module IsoSts
|
|
5
|
+
class SansSerif < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :specific_use, :string
|
|
8
|
+
attribute :content, :string, collection: true
|
|
9
|
+
attribute :email, ::Sts::IsoSts::Email, collection: true
|
|
10
|
+
attribute :ext_link, ::Sts::IsoSts::ExtLink, collection: true
|
|
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 :element_citation, ::Sts::IsoSts::ElementCitation,
|
|
18
|
+
collection: true
|
|
19
|
+
attribute :mixed_citation, ::Sts::IsoSts::MixedCitation, collection: true
|
|
20
|
+
attribute :std, ::Sts::IsoSts::Std, collection: true
|
|
21
|
+
attribute :bold, ::Sts::IsoSts::Bold, collection: true
|
|
22
|
+
attribute :italic, ::Sts::IsoSts::Italic, collection: true
|
|
23
|
+
attribute :monospace, ::Sts::IsoSts::Monospace, collection: true
|
|
24
|
+
attribute :num, ::Sts::IsoSts::Num, collection: true
|
|
25
|
+
attribute :overline, ::Sts::IsoSts::Overline, collection: true
|
|
26
|
+
attribute :roman, ::Sts::IsoSts::Roman, collection: true
|
|
27
|
+
attribute :sans_serif, ::Sts::IsoSts::SansSerif, collection: true
|
|
28
|
+
attribute :sc, ::Sts::IsoSts::Sc, collection: true
|
|
29
|
+
attribute :strike, ::Sts::IsoSts::Strike, collection: true
|
|
30
|
+
attribute :underline, ::Sts::IsoSts::Underline, collection: true
|
|
31
|
+
attribute :alternatives, ::Sts::IsoSts::Alternatives, collection: true
|
|
32
|
+
attribute :inline_graphic, ::Sts::IsoSts::InlineGraphic, collection: true
|
|
33
|
+
attribute :private_char, ::Sts::IsoSts::PrivateChar, collection: true
|
|
34
|
+
attribute :chem_struct, ::Sts::IsoSts::ChemStruct, collection: true
|
|
35
|
+
attribute :inline_formula, ::Sts::IsoSts::InlineFormula, collection: true
|
|
36
|
+
attribute :math, ::Mml::V2::Math, collection: true
|
|
37
|
+
attribute :abbrev, ::Sts::IsoSts::Abbrev, collection: true
|
|
38
|
+
attribute :milestone_end, ::Sts::IsoSts::MilestoneEnd, collection: true
|
|
39
|
+
attribute :milestone_start, ::Sts::IsoSts::MilestoneStart,
|
|
40
|
+
collection: true
|
|
41
|
+
attribute :named_content, ::Sts::IsoSts::NamedContent, collection: true
|
|
42
|
+
attribute :styled_content, ::Sts::IsoSts::StyledContent, collection: true
|
|
43
|
+
attribute :fn, ::Sts::IsoSts::Fn, collection: true
|
|
44
|
+
attribute :target, ::Sts::IsoSts::Target, collection: true
|
|
45
|
+
attribute :entailed_term, ::Sts::TbxIsoTml::EntailedTerm, collection: true
|
|
46
|
+
attribute :xref, ::Sts::IsoSts::Xref, collection: true
|
|
47
|
+
attribute :std_ref, ::Sts::IsoSts::StdRef, 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 "sans-serif"
|
|
53
|
+
mixed_content
|
|
54
|
+
|
|
55
|
+
map_attribute "id", to: :id
|
|
56
|
+
map_attribute "specific-use", to: :specific_use
|
|
57
|
+
map_content to: :content
|
|
58
|
+
map_element "email", to: :email
|
|
59
|
+
map_element "ext-link", to: :ext_link
|
|
60
|
+
map_element "uri", to: :uri
|
|
61
|
+
map_element "inline-supplementary-material",
|
|
62
|
+
to: :inline_supplementary_material
|
|
63
|
+
map_element "related-article", to: :related_article
|
|
64
|
+
map_element "related-object", to: :related_object
|
|
65
|
+
map_element "element-citation", to: :element_citation
|
|
66
|
+
map_element "mixed-citation", to: :mixed_citation
|
|
67
|
+
map_element "std", to: :std
|
|
68
|
+
map_element "bold", to: :bold
|
|
69
|
+
map_element "italic", to: :italic
|
|
70
|
+
map_element "monospace", to: :monospace
|
|
71
|
+
map_element "num", to: :num
|
|
72
|
+
map_element "overline", to: :overline
|
|
73
|
+
map_element "roman", to: :roman
|
|
74
|
+
map_element "sans-serif", to: :sans_serif
|
|
75
|
+
map_element "sc", to: :sc
|
|
76
|
+
map_element "strike", to: :strike
|
|
77
|
+
map_element "underline", to: :underline
|
|
78
|
+
map_element "alternatives", to: :alternatives
|
|
79
|
+
map_element "inline-graphic", to: :inline_graphic
|
|
80
|
+
map_element "private-char", to: :private_char
|
|
81
|
+
map_element "chem-struct", to: :chem_struct
|
|
82
|
+
map_element "inline-formula", to: :inline_formula
|
|
83
|
+
map_element "math", to: :math
|
|
84
|
+
map_element "abbrev", to: :abbrev
|
|
85
|
+
map_element "milestone-end", to: :milestone_end
|
|
86
|
+
map_element "milestone-start", to: :milestone_start
|
|
87
|
+
map_element "named-content", to: :named_content
|
|
88
|
+
map_element "styled-content", to: :styled_content
|
|
89
|
+
map_element "fn", to: :fn
|
|
90
|
+
map_element "target", to: :target
|
|
91
|
+
map_element "entailedTerm", to: :entailed_term
|
|
92
|
+
map_element "xref", to: :xref
|
|
93
|
+
map_element "std-ref", to: :std_ref
|
|
94
|
+
map_element "sub", to: :sub
|
|
95
|
+
map_element "sup", to: :sup
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
data/lib/sts/iso_sts/sc.rb
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module IsoSts
|
|
5
5
|
class Sc < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :specific_use, :string
|
|
7
8
|
attribute :content, :string, collection: true
|
|
8
9
|
attribute :bold, ::Sts::IsoSts::Bold, collection: true
|
|
@@ -14,6 +15,7 @@ module Sts
|
|
|
14
15
|
element "sc"
|
|
15
16
|
mixed_content
|
|
16
17
|
|
|
18
|
+
map_attribute "id", to: :id
|
|
17
19
|
map_attribute "specific-use", to: :specific_use
|
|
18
20
|
map_content to: :content
|
|
19
21
|
map_element "bold", to: :bold
|