sts 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop-https---raw-githubusercontent-com-riboseinc-oss-guides-master-ci-rubocop-yml +471 -0
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +27 -0
- data/lib/sts/niso_sts/adoption.rb +4 -4
- data/lib/sts/niso_sts/app.rb +8 -8
- data/lib/sts/niso_sts/app_group.rb +2 -2
- data/lib/sts/niso_sts/back.rb +2 -2
- data/lib/sts/niso_sts/body.rb +2 -2
- data/lib/sts/niso_sts/caption.rb +3 -3
- data/lib/sts/niso_sts/custom_meta.rb +5 -5
- data/lib/sts/niso_sts/custom_meta_group.rb +2 -2
- data/lib/sts/niso_sts/def.rb +2 -2
- data/lib/sts/niso_sts/def_item.rb +3 -3
- data/lib/sts/niso_sts/def_list.rb +5 -5
- data/lib/sts/niso_sts/display_formula.rb +3 -5
- data/lib/sts/niso_sts/document_identification.rb +8 -8
- data/lib/sts/niso_sts/ext_link.rb +5 -5
- data/lib/sts/niso_sts/figure.rb +6 -6
- data/lib/sts/niso_sts/fn.rb +3 -3
- data/lib/sts/niso_sts/fn_group.rb +2 -2
- data/lib/sts/niso_sts/front.rb +2 -2
- data/lib/sts/niso_sts/graphic.rb +3 -3
- data/lib/sts/niso_sts/inline_formula.rb +2 -4
- data/lib/sts/niso_sts/label.rb +3 -3
- data/lib/sts/niso_sts/list.rb +4 -6
- data/lib/sts/niso_sts/list_item.rb +4 -4
- data/lib/sts/niso_sts/meta_date.rb +4 -4
- data/lib/sts/niso_sts/meta_note.rb +7 -6
- data/lib/sts/niso_sts/metadata_iso.rb +10 -10
- data/lib/sts/niso_sts/metadata_std.rb +12 -12
- data/lib/sts/niso_sts/mixed_citation.rb +8 -8
- data/lib/sts/niso_sts/non_normative_example.rb +5 -5
- data/lib/sts/niso_sts/non_normative_note.rb +5 -5
- data/lib/sts/niso_sts/object_id.rb +4 -4
- data/lib/sts/niso_sts/page_count.rb +3 -3
- data/lib/sts/niso_sts/paragraph.rb +12 -12
- data/lib/sts/niso_sts/permissions.rb +5 -5
- data/lib/sts/niso_sts/reference.rb +3 -5
- data/lib/sts/niso_sts/reference_list.rb +5 -7
- data/lib/sts/niso_sts/reference_standard.rb +7 -7
- data/lib/sts/niso_sts/section.rb +8 -8
- data/lib/sts/niso_sts/section_array.rb +3 -3
- data/lib/sts/niso_sts/standard.rb +6 -8
- data/lib/sts/niso_sts/standard_identification.rb +9 -9
- data/lib/sts/niso_sts/standard_ref.rb +4 -4
- data/lib/sts/niso_sts/std_cross_reference.rb +3 -3
- data/lib/sts/niso_sts/std_id.rb +6 -6
- data/lib/sts/niso_sts/std_id_group.rb +2 -2
- data/lib/sts/niso_sts/term_display.rb +2 -2
- data/lib/sts/niso_sts/term_section.rb +5 -5
- data/lib/sts/niso_sts/title.rb +4 -4
- data/lib/sts/niso_sts/title_wrap.rb +11 -9
- data/lib/sts/tbx_iso_tml/bold.rb +3 -3
- data/lib/sts/tbx_iso_tml/caption.rb +3 -3
- data/lib/sts/tbx_iso_tml/col.rb +6 -6
- data/lib/sts/tbx_iso_tml/definition.rb +5 -7
- data/lib/sts/tbx_iso_tml/entailed_term.rb +6 -6
- data/lib/sts/tbx_iso_tml/example.rb +6 -8
- data/lib/sts/tbx_iso_tml/external_graphic.rb +3 -3
- data/lib/sts/tbx_iso_tml/external_source.rb +4 -4
- data/lib/sts/tbx_iso_tml/fn.rb +3 -5
- data/lib/sts/tbx_iso_tml/fn_group.rb +2 -2
- data/lib/sts/tbx_iso_tml/geographical_usage.rb +3 -3
- data/lib/sts/tbx_iso_tml/grammatical_gender.rb +4 -4
- data/lib/sts/tbx_iso_tml/grammatical_number.rb +4 -4
- data/lib/sts/tbx_iso_tml/italic.rb +5 -5
- data/lib/sts/tbx_iso_tml/lang_set.rb +9 -9
- data/lib/sts/tbx_iso_tml/math.rb +12 -12
- data/lib/sts/tbx_iso_tml/mfenced.rb +10 -10
- data/lib/sts/tbx_iso_tml/mfrac.rb +8 -8
- data/lib/sts/tbx_iso_tml/mi.rb +3 -3
- data/lib/sts/tbx_iso_tml/mrow.rb +11 -11
- data/lib/sts/tbx_iso_tml/mspace.rb +3 -3
- data/lib/sts/tbx_iso_tml/mstyle.rb +8 -8
- data/lib/sts/tbx_iso_tml/msub.rb +7 -7
- data/lib/sts/tbx_iso_tml/msup.rb +5 -5
- data/lib/sts/tbx_iso_tml/munder.rb +3 -3
- data/lib/sts/tbx_iso_tml/munderover.rb +5 -5
- data/lib/sts/tbx_iso_tml/named_content.rb +4 -4
- data/lib/sts/tbx_iso_tml/normative_authorization.rb +4 -4
- data/lib/sts/tbx_iso_tml/note.rb +8 -8
- data/lib/sts/tbx_iso_tml/part_of_speech.rb +4 -4
- data/lib/sts/tbx_iso_tml/see.rb +4 -4
- data/lib/sts/tbx_iso_tml/semantics.rb +6 -5
- data/lib/sts/tbx_iso_tml/source.rb +4 -6
- data/lib/sts/tbx_iso_tml/sup.rb +4 -6
- data/lib/sts/tbx_iso_tml/table.rb +6 -6
- data/lib/sts/tbx_iso_tml/table_break.rb +10 -0
- data/lib/sts/tbx_iso_tml/table_wrap.rb +6 -6
- data/lib/sts/tbx_iso_tml/table_wrap_foot.rb +2 -2
- data/lib/sts/tbx_iso_tml/tbody.rb +5 -5
- data/lib/sts/tbx_iso_tml/td.rb +17 -15
- data/lib/sts/tbx_iso_tml/term.rb +10 -10
- data/lib/sts/tbx_iso_tml/term_entry.rb +4 -4
- data/lib/sts/tbx_iso_tml/term_information_group.rb +6 -6
- data/lib/sts/tbx_iso_tml/term_type.rb +4 -12
- data/lib/sts/tbx_iso_tml/th.rb +17 -16
- data/lib/sts/tbx_iso_tml/thead.rb +6 -6
- data/lib/sts/tbx_iso_tml/tr.rb +2 -2
- data/lib/sts/tbx_iso_tml/xref.rb +5 -7
- data/lib/sts/version.rb +1 -1
- data/lib/sts.rb +6 -4
- data/sts.gemspec +4 -1
- metadata +22 -5
- data/lib/sts/mapper.rb +0 -442
data/lib/sts/niso_sts/def.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "paragraph"
|
6
6
|
|
7
7
|
module Sts
|
8
8
|
module NisoSts
|
9
|
-
class Def <
|
9
|
+
class Def < Lutaml::Model::Serializable
|
10
10
|
attribute :paragraph, Paragraph
|
11
11
|
|
12
12
|
xml do
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "def"
|
6
6
|
require_relative "../tbx_iso_tml/term"
|
7
7
|
|
8
8
|
module Sts
|
9
9
|
module NisoSts
|
10
|
-
class DefItem <
|
11
|
-
attribute :specific_use,
|
10
|
+
class DefItem < Lutaml::Model::Serializable
|
11
|
+
attribute :specific_use, Lutaml::Model::Type::String
|
12
12
|
attribute :term, TbxIsoTml::Term
|
13
13
|
attribute :definition, Def
|
14
14
|
|
@@ -1,15 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "def_item"
|
6
6
|
|
7
7
|
module Sts
|
8
8
|
module NisoSts
|
9
|
-
class DefList <
|
10
|
-
attribute :title,
|
11
|
-
attribute :specific_use,
|
12
|
-
attribute :list_type,
|
9
|
+
class DefList < Lutaml::Model::Serializable
|
10
|
+
attribute :title, Lutaml::Model::Type::String
|
11
|
+
attribute :specific_use, Lutaml::Model::Type::String
|
12
|
+
attribute :list_type, Lutaml::Model::Type::String
|
13
13
|
attribute :def_item, DefItem, collection: true
|
14
14
|
attribute :def_list, DefList
|
15
15
|
|
@@ -1,14 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "
|
4
|
-
|
5
|
-
require_relative "../mapper"
|
3
|
+
require "lutaml/model"
|
6
4
|
require_relative "../tbx_iso_tml/math"
|
7
5
|
|
8
6
|
module Sts
|
9
7
|
module NisoSts
|
10
|
-
class DisplayFormula <
|
11
|
-
attribute :id,
|
8
|
+
class DisplayFormula < Lutaml::Model::Serializable
|
9
|
+
attribute :id, Lutaml::Model::Type::String
|
12
10
|
attribute :label, Label
|
13
11
|
attribute :math, TbxIsoTml::Math
|
14
12
|
|
@@ -1,18 +1,18 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
module Sts
|
6
6
|
module NisoSts
|
7
|
-
class DocumentIdentification <
|
8
|
-
attribute :sdo,
|
9
|
-
attribute :proj_id,
|
10
|
-
attribute :language,
|
11
|
-
attribute :release_version,
|
12
|
-
attribute :urn,
|
7
|
+
class DocumentIdentification < Lutaml::Model::Serializable
|
8
|
+
attribute :sdo, Lutaml::Model::Type::String
|
9
|
+
attribute :proj_id, Lutaml::Model::Type::String
|
10
|
+
attribute :language, Lutaml::Model::Type::String
|
11
|
+
attribute :release_version, Lutaml::Model::Type::String
|
12
|
+
attribute :urn, Lutaml::Model::Type::String
|
13
13
|
|
14
14
|
xml do
|
15
|
-
root "doc-
|
15
|
+
root "doc-ident"
|
16
16
|
|
17
17
|
map_element "sdo", to: :sdo
|
18
18
|
map_element "proj-id", to: :proj_id
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_striing_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
module Sts
|
6
6
|
module NisoSts
|
7
|
-
class ExtLink <
|
8
|
-
attribute :ext_link_type,
|
9
|
-
attribute :href,
|
10
|
-
attribute :content,
|
7
|
+
class ExtLink < Lutaml::Model::Serializable
|
8
|
+
attribute :ext_link_type, Lutaml::Model::Type::String
|
9
|
+
attribute :href, Lutaml::Model::Type::String
|
10
|
+
attribute :content, Lutaml::Model::Type::String
|
11
11
|
|
12
12
|
xml do
|
13
13
|
root "ext-link"
|
data/lib/sts/niso_sts/figure.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "caption"
|
6
6
|
require_relative "graphic"
|
@@ -14,18 +14,18 @@ require_relative "def_list"
|
|
14
14
|
|
15
15
|
module Sts
|
16
16
|
module NisoSts
|
17
|
-
class Caption <
|
17
|
+
class Caption < Lutaml::Model::Serializable; end
|
18
18
|
|
19
|
-
class Figure <
|
20
|
-
attribute :id,
|
21
|
-
attribute :orientation,
|
19
|
+
class Figure < Lutaml::Model::Serializable
|
20
|
+
attribute :id, Lutaml::Model::Type::String
|
21
|
+
attribute :orientation, Lutaml::Model::Type::String
|
22
22
|
attribute :caption, Caption
|
23
23
|
attribute :def_list, DefList
|
24
24
|
attribute :label, Label
|
25
25
|
attribute :graphic, Graphic, collection: true
|
26
26
|
|
27
27
|
xml do
|
28
|
-
root "fig"
|
28
|
+
root "fig", mixed: true
|
29
29
|
|
30
30
|
map_attribute "id", to: :id
|
31
31
|
map_attribute "orientation", to: :orientation
|
data/lib/sts/niso_sts/fn.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "label"
|
6
6
|
require_relative "paragraph"
|
7
7
|
|
8
8
|
module Sts
|
9
9
|
module NisoSts
|
10
|
-
class Fn <
|
11
|
-
attribute :id,
|
10
|
+
class Fn < Lutaml::Model::Serializable
|
11
|
+
attribute :id, Lutaml::Model::Type::String
|
12
12
|
attribute :label, Label
|
13
13
|
attribute :paragraph, Paragraph
|
14
14
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "fn"
|
6
6
|
|
7
7
|
module Sts
|
8
8
|
module NisoSts
|
9
|
-
class FnGroup <
|
9
|
+
class FnGroup < Lutaml::Model::Serializable
|
10
10
|
attribute :fn, Fn, collection: true
|
11
11
|
|
12
12
|
xml do
|
data/lib/sts/niso_sts/front.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "metadata_iso"
|
6
6
|
require_relative "metadata_std"
|
@@ -8,7 +8,7 @@ require_relative "section"
|
|
8
8
|
|
9
9
|
module Sts
|
10
10
|
module NisoSts
|
11
|
-
class Front <
|
11
|
+
class Front < Lutaml::Model::Serializable
|
12
12
|
attribute :iso_meta, MetadataIso
|
13
13
|
attribute :std_meta, MetadataStd
|
14
14
|
attribute :sec, Section, collection: true
|
data/lib/sts/niso_sts/graphic.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require "lutaml/model"
|
2
2
|
|
3
3
|
require_relative "object_id"
|
4
4
|
|
@@ -12,8 +12,8 @@ require_relative "object_id"
|
|
12
12
|
|
13
13
|
module Sts
|
14
14
|
module NisoSts
|
15
|
-
class Graphic <
|
16
|
-
attribute :href,
|
15
|
+
class Graphic < Lutaml::Model::Serializable
|
16
|
+
attribute :href, Lutaml::Model::Type::String
|
17
17
|
attribute :object_id, ObjectId, collection: true
|
18
18
|
|
19
19
|
xml do
|
@@ -1,13 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "
|
4
|
-
|
5
|
-
require_relative "../mapper"
|
3
|
+
require "lutaml/model"
|
6
4
|
require_relative "../tbx_iso_tml/math"
|
7
5
|
|
8
6
|
module Sts
|
9
7
|
module NisoSts
|
10
|
-
class InlineFormula <
|
8
|
+
class InlineFormula < Lutaml::Model::Serializable
|
11
9
|
attribute :math, TbxIsoTml::Math
|
12
10
|
|
13
11
|
xml do
|
data/lib/sts/niso_sts/label.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "../tbx_iso_tml/sup"
|
6
6
|
|
7
7
|
module Sts
|
8
8
|
module NisoSts
|
9
|
-
class Label <
|
10
|
-
attribute :content,
|
9
|
+
class Label < Lutaml::Model::Serializable
|
10
|
+
attribute :content, Lutaml::Model::Type::String
|
11
11
|
attribute :sup, Sts::TbxIsoTml::Sup
|
12
12
|
|
13
13
|
xml do
|
data/lib/sts/niso_sts/list.rb
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "shale"
|
4
|
-
|
5
3
|
require_relative "list_item"
|
6
|
-
|
4
|
+
require "lutaml/model"
|
7
5
|
|
8
6
|
module Sts
|
9
7
|
module NisoSts
|
10
|
-
class List <
|
11
|
-
attribute :text,
|
12
|
-
attribute :list_type,
|
8
|
+
class List < Lutaml::Model::Serializable
|
9
|
+
attribute :text, Lutaml::Model::Type::String
|
10
|
+
attribute :list_type, Lutaml::Model::Type::String
|
13
11
|
attribute :list_item, ListItem, collection: true
|
14
12
|
|
15
13
|
xml do
|
@@ -1,15 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
require_relative "list"
|
5
5
|
require_relative "non_normative_example"
|
6
6
|
|
7
7
|
module Sts
|
8
8
|
module NisoSts
|
9
|
-
class Paragraph <
|
10
|
-
class List <
|
9
|
+
class Paragraph < Lutaml::Model::Serializable; end
|
10
|
+
class List < Lutaml::Model::Serializable; end
|
11
11
|
|
12
|
-
class ListItem <
|
12
|
+
class ListItem < Lutaml::Model::Serializable
|
13
13
|
attribute :label, Label
|
14
14
|
attribute :list, List
|
15
15
|
attribute :non_normative_example, NonNormativeExample
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
module Sts
|
6
6
|
module NisoSts
|
7
|
-
class MetaDate <
|
8
|
-
attribute :content,
|
9
|
-
attribute :type,
|
7
|
+
class MetaDate < Lutaml::Model::Serializable
|
8
|
+
attribute :content, Lutaml::Model::Type::String
|
9
|
+
attribute :type, Lutaml::Model::Type::String
|
10
10
|
|
11
11
|
xml do
|
12
12
|
root "meta-date"
|
@@ -1,19 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "paragraph"
|
6
6
|
|
7
7
|
module Sts
|
8
8
|
module NisoSts
|
9
|
-
class MetaNote <
|
10
|
-
attribute :id,
|
11
|
-
attribute :content_type,
|
9
|
+
class MetaNote < Lutaml::Model::Serializable
|
10
|
+
attribute :id, Lutaml::Model::Type::String
|
11
|
+
attribute :content_type, Lutaml::Model::Type::String
|
12
12
|
attribute :p, Paragraph, collection: true
|
13
|
-
attribute :title,
|
13
|
+
attribute :title, Lutaml::Model::Type::String
|
14
14
|
|
15
15
|
xml do
|
16
|
-
root "meta-note"
|
16
|
+
root "meta-note", mixed: true
|
17
|
+
|
17
18
|
map_attribute "id", to: :id
|
18
19
|
map_attribute "content-type", to: :content_type
|
19
20
|
map_element "p", to: :p
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "custom_meta_group"
|
6
6
|
require_relative "document_identification"
|
@@ -14,26 +14,26 @@ require_relative "title_wrap"
|
|
14
14
|
|
15
15
|
module Sts
|
16
16
|
module NisoSts
|
17
|
-
class MetadataIso <
|
18
|
-
attribute :comm_ref,
|
19
|
-
attribute :content_language,
|
17
|
+
class MetadataIso < Lutaml::Model::Serializable
|
18
|
+
attribute :comm_ref, Lutaml::Model::Type::String
|
19
|
+
attribute :content_language, Lutaml::Model::Type::String
|
20
20
|
attribute :custom_meta_group, CustomMetaGroup
|
21
21
|
attribute :doc_ident, DocumentIdentification
|
22
|
-
attribute :doc_ref,
|
23
|
-
attribute :ics,
|
22
|
+
attribute :doc_ref, Lutaml::Model::Type::String
|
23
|
+
attribute :ics, Lutaml::Model::Type::String
|
24
24
|
attribute :meta_date, MetaDate
|
25
25
|
attribute :page_count, PageCount
|
26
26
|
attribute :permissions, Permissions
|
27
|
-
attribute :pub_date,
|
28
|
-
attribute :release_date,
|
29
|
-
attribute :secretariat,
|
27
|
+
attribute :pub_date, Lutaml::Model::Type::String
|
28
|
+
attribute :release_date, Lutaml::Model::Type::String
|
29
|
+
attribute :secretariat, Lutaml::Model::Type::String
|
30
30
|
attribute :std_ident, StandardIdentification
|
31
31
|
attribute :std_ref, StandardRef
|
32
32
|
attribute :std_xref, StdCrossReference
|
33
33
|
attribute :title_wrap, TitleWrap
|
34
34
|
|
35
35
|
xml do
|
36
|
-
root "iso-meta"
|
36
|
+
root "iso-meta", mixed: true
|
37
37
|
|
38
38
|
map_element "comm-ref", to: :comm_ref
|
39
39
|
map_element "content-language", to: :content_language
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
require_relative "title_wrap"
|
5
5
|
require_relative "document_identification"
|
6
6
|
require_relative "standard_identification"
|
@@ -13,28 +13,28 @@ require_relative "permissions"
|
|
13
13
|
|
14
14
|
module Sts
|
15
15
|
module NisoSts
|
16
|
-
class MetadataStd <
|
17
|
-
attribute :id,
|
16
|
+
class MetadataStd < Lutaml::Model::Serializable
|
17
|
+
attribute :id, Lutaml::Model::Type::String
|
18
18
|
attribute :title_wrap, TitleWrap, collection: true
|
19
|
-
attribute :content_language,
|
19
|
+
attribute :content_language, Lutaml::Model::Type::String
|
20
20
|
attribute :std_ident, StandardIdentification
|
21
21
|
attribute :doc_ident, DocumentIdentification
|
22
22
|
attribute :std_ref, StandardRef, collection: true
|
23
|
-
attribute :doc_ref,
|
24
|
-
attribute :pub_date,
|
25
|
-
attribute :release_date,
|
26
|
-
attribute :release_version,
|
27
|
-
attribute :comm_ref,
|
28
|
-
attribute :secretariat,
|
23
|
+
attribute :doc_ref, Lutaml::Model::Type::String
|
24
|
+
attribute :pub_date, Lutaml::Model::Type::String
|
25
|
+
attribute :release_date, Lutaml::Model::Type::String
|
26
|
+
attribute :release_version, Lutaml::Model::Type::String
|
27
|
+
attribute :comm_ref, Lutaml::Model::Type::String
|
28
|
+
attribute :secretariat, Lutaml::Model::Type::String
|
29
29
|
attribute :page_count, PageCount
|
30
|
-
attribute :ics,
|
30
|
+
attribute :ics, Lutaml::Model::Type::String
|
31
31
|
attribute :std_xref, StdCrossReference
|
32
32
|
attribute :permissions, Permissions
|
33
33
|
attribute :meta_note, MetaNote, collection: true
|
34
34
|
attribute :custom_meta_group, CustomMetaGroup, collection: true
|
35
35
|
|
36
36
|
xml do
|
37
|
-
root "std-meta"
|
37
|
+
root "std-meta", mixed: true
|
38
38
|
|
39
39
|
map_attribute "id", to: :id
|
40
40
|
|
@@ -1,22 +1,22 @@
|
|
1
1
|
# frozen_striing_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "ext_link"
|
6
6
|
require_relative "reference_standard"
|
7
7
|
|
8
8
|
module Sts
|
9
9
|
module NisoSts
|
10
|
-
class MixedCitation <
|
11
|
-
attribute :content,
|
12
|
-
attribute :bold,
|
13
|
-
attribute :italic,
|
14
|
-
attribute :publication_type,
|
15
|
-
attribute :std, ReferenceStandard
|
10
|
+
class MixedCitation < Lutaml::Model::Serializable
|
11
|
+
attribute :content, Lutaml::Model::Type::String
|
12
|
+
attribute :bold, Lutaml::Model::Type::String
|
13
|
+
attribute :italic, Lutaml::Model::Type::String
|
14
|
+
attribute :publication_type, Lutaml::Model::Type::String
|
15
|
+
attribute :std, ReferenceStandard, collection: true
|
16
16
|
attribute :ext_link, ExtLink
|
17
17
|
|
18
18
|
xml do
|
19
|
-
root "mixed-citation"
|
19
|
+
root "mixed-citation", mixed: true
|
20
20
|
|
21
21
|
map_content to: :content
|
22
22
|
|
@@ -1,20 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "paragraph"
|
6
6
|
|
7
7
|
module Sts
|
8
8
|
module NisoSts
|
9
|
-
class Paragraph <
|
9
|
+
class Paragraph < Lutaml::Model::Serializable; end
|
10
10
|
|
11
|
-
class NonNormativeExample <
|
12
|
-
attribute :id,
|
11
|
+
class NonNormativeExample < Lutaml::Model::Serializable
|
12
|
+
attribute :id, Lutaml::Model::Type::String
|
13
13
|
attribute :p, Paragraph
|
14
14
|
attribute :label, Label
|
15
15
|
|
16
16
|
xml do
|
17
|
-
root "non-normative-example"
|
17
|
+
root "non-normative-example", mixed: true
|
18
18
|
|
19
19
|
map_attribute "id", to: :id
|
20
20
|
map_element "p", to: :p
|
@@ -1,19 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "paragraph"
|
6
6
|
|
7
7
|
module Sts
|
8
8
|
module NisoSts
|
9
|
-
class NonNormativeNote <
|
10
|
-
attribute :id,
|
11
|
-
attribute :content_type,
|
9
|
+
class NonNormativeNote < Lutaml::Model::Serializable
|
10
|
+
attribute :id, Lutaml::Model::Type::String
|
11
|
+
attribute :content_type, Lutaml::Model::Type::String
|
12
12
|
attribute :p, Paragraph
|
13
13
|
attribute :label, Label
|
14
14
|
|
15
15
|
xml do
|
16
|
-
root "non-normative-note"
|
16
|
+
root "non-normative-note", mixed: true
|
17
17
|
|
18
18
|
map_attribute "content-type", to: :content_type
|
19
19
|
map_attribute "id", to: :id
|
@@ -4,13 +4,13 @@
|
|
4
4
|
# <object-id pub-id-type="publisher-id">fig-1</object-id>
|
5
5
|
# rubocop:enable Layout/LineLength
|
6
6
|
|
7
|
-
|
7
|
+
require "lutaml/model"
|
8
8
|
|
9
9
|
module Sts
|
10
10
|
module NisoSts
|
11
|
-
class ObjectId <
|
12
|
-
attribute :pub_id_type,
|
13
|
-
attribute :content,
|
11
|
+
class ObjectId < Lutaml::Model::Serializable
|
12
|
+
attribute :pub_id_type, Lutaml::Model::Type::String
|
13
|
+
attribute :content, Lutaml::Model::Type::String
|
14
14
|
|
15
15
|
xml do
|
16
16
|
root "object-id"
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
module Sts
|
6
6
|
module NisoSts
|
7
|
-
class PageCount <
|
8
|
-
attribute :count,
|
7
|
+
class PageCount < Lutaml::Model::Serializable
|
8
|
+
attribute :count, Lutaml::Model::Type::Integer
|
9
9
|
|
10
10
|
xml do
|
11
11
|
root "page-count"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
require_relative "list"
|
6
6
|
require_relative "inline_formula"
|
@@ -15,28 +15,28 @@ require_relative "../tbx_iso_tml/xref"
|
|
15
15
|
|
16
16
|
module Sts
|
17
17
|
module NisoSts
|
18
|
-
class NonNormativeNote <
|
19
|
-
class ReferenceStandard <
|
18
|
+
class NonNormativeNote < Lutaml::Model::Serializable; end
|
19
|
+
class ReferenceStandard < Lutaml::Model::Serializable; end
|
20
20
|
|
21
|
-
class Paragraph <
|
22
|
-
attribute :id,
|
23
|
-
attribute :text,
|
24
|
-
attribute :italic,
|
25
|
-
attribute :bold,
|
26
|
-
attribute :uri,
|
21
|
+
class Paragraph < Lutaml::Model::Serializable
|
22
|
+
attribute :id, Lutaml::Model::Type::String
|
23
|
+
attribute :text, Lutaml::Model::Type::String
|
24
|
+
attribute :italic, Lutaml::Model::Type::String, collection: true
|
25
|
+
attribute :bold, Lutaml::Model::Type::String, collection: true
|
26
|
+
attribute :uri, Lutaml::Model::Type::String
|
27
27
|
attribute :list, Sts::NisoSts::List
|
28
28
|
attribute :def_list, DefList
|
29
29
|
attribute :non_normative_note, NonNormativeNote
|
30
30
|
attribute :non_normative_example, NonNormativeExample
|
31
31
|
attribute :inline_formula, Sts::NisoSts::InlineFormula, collection: true
|
32
32
|
attribute :disp_formula, Sts::NisoSts::DisplayFormula, collection: true
|
33
|
-
attribute :xref, TbxIsoTml::Xref
|
34
|
-
attribute :std, ReferenceStandard
|
33
|
+
attribute :xref, TbxIsoTml::Xref, collection: true
|
34
|
+
attribute :std, ReferenceStandard, collection: true
|
35
35
|
attribute :ext_link, ExtLink
|
36
36
|
attribute :entailed_term, Sts::TbxIsoTml::EntailedTerm
|
37
37
|
|
38
38
|
xml do
|
39
|
-
root "p"
|
39
|
+
root "p", mixed: true
|
40
40
|
|
41
41
|
map_attribute "id", to: :id
|
42
42
|
map_content to: :text
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "lutaml/model"
|
4
4
|
|
5
5
|
module Sts
|
6
6
|
module NisoSts
|
7
|
-
class Permissions <
|
8
|
-
attribute :copyright_statement,
|
9
|
-
attribute :copyright_year,
|
10
|
-
attribute :copyright_holder,
|
7
|
+
class Permissions < Lutaml::Model::Serializable
|
8
|
+
attribute :copyright_statement, Lutaml::Model::Type::String
|
9
|
+
attribute :copyright_year, Lutaml::Model::Type::String
|
10
|
+
attribute :copyright_holder, Lutaml::Model::Type::String
|
11
11
|
|
12
12
|
xml do
|
13
13
|
root "permissions"
|
@@ -1,15 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "shale"
|
4
|
-
|
5
3
|
require_relative "reference_standard"
|
6
4
|
require_relative "mixed_citation"
|
7
5
|
|
8
6
|
module Sts
|
9
7
|
module NisoSts
|
10
|
-
class Reference <
|
11
|
-
attribute :content_type,
|
12
|
-
attribute :id,
|
8
|
+
class Reference < Lutaml::Model::Serializable
|
9
|
+
attribute :content_type, Lutaml::Model::Type::String
|
10
|
+
attribute :id, Lutaml::Model::Type::String
|
13
11
|
attribute :label, Label
|
14
12
|
attribute :mixed_citation, MixedCitation
|
15
13
|
attribute :std, ReferenceStandard, collection: true
|