Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/sts/niso_sts/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ class App < Lutaml::Model::Serializable
collection: true
attribute :table_wrap, ::Sts::TbxIsoTml::TableWrap, collection: true
attribute :list, ::Sts::NisoSts::List, collection: true
attribute :def_list, ::Sts::NisoSts::DefList, collection: true
attribute :disp_formula, ::Sts::NisoSts::DisplayFormula, collection: true
attribute :disp_quote, ::Sts::NisoSts::DispQuote, collection: true
attribute :array, ::Sts::NisoSts::SectionArray, collection: true
attribute :preformat, ::Sts::NisoSts::Preformat, collection: true
attribute :boxed_text, ::Sts::NisoSts::BoxedText, collection: true
Expand All @@ -43,6 +46,9 @@ class App < Lutaml::Model::Serializable
map_element "non-normative-example", to: :non_normative_example
map_element "table-wrap", to: :table_wrap
map_element "list", to: :list
map_element "def-list", to: :def_list
map_element "disp-formula", to: :disp_formula
map_element "disp-quote", to: :disp_quote
map_element "array", to: :array
map_element "preformat", to: :preformat
map_element "boxed-text", to: :boxed_text
Expand Down
4 changes: 3 additions & 1 deletion lib/sts/tbx_iso_tml/lang_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class LangSet < Lutaml::Model::Serializable
namespace ::Sts::Namespaces::TbxNamespace

map_attribute "lang", to: :lang
# Declaration order drives built-model serialization: the NISO STS
# langSet content model puts subjectField BEFORE the tig sequence.
map_element "subjectField", to: :subject_field
map_element "definition", to: :definition
map_element "source", to: :source
map_element "example", to: :example
Expand All @@ -32,7 +35,6 @@ class LangSet < Lutaml::Model::Serializable
map_element "tig", to: :tig
map_element "xSource", to: :x_source
map_element "crossReference", to: :cross_reference
map_element "subjectField", to: :subject_field
# map_element 'xGraphic', to: :x_graphic
end
end
Expand Down
Loading