sts 0.4.0 → 0.4.1
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/.rubocop_todo.yml +4 -8
- data/lib/sts/niso_sts/abstract.rb +23 -0
- data/lib/sts/niso_sts/access_date.rb +20 -0
- data/lib/sts/niso_sts/accrediting_organization.rb +16 -0
- data/lib/sts/niso_sts/ack.rb +27 -0
- data/lib/sts/niso_sts/addr_line.rb +20 -0
- data/lib/sts/niso_sts/address.rb +29 -0
- data/lib/sts/niso_sts/aff.rb +51 -0
- data/lib/sts/niso_sts/aff_alternatives.rb +15 -0
- data/lib/sts/niso_sts/ali/ali.rb +10 -0
- data/lib/sts/niso_sts/ali/free_to_read.rb +25 -0
- data/lib/sts/niso_sts/ali/license_ref.rb +26 -0
- data/lib/sts/niso_sts/alt_text.rb +16 -0
- data/lib/sts/niso_sts/alt_title.rb +16 -0
- data/lib/sts/niso_sts/alternatives.rb +16 -0
- data/lib/sts/niso_sts/annotation.rb +26 -0
- data/lib/sts/niso_sts/anonymous.rb +11 -0
- data/lib/sts/niso_sts/article_title.rb +20 -0
- data/lib/sts/niso_sts/attrib.rb +16 -0
- data/lib/sts/niso_sts/attribution.rb +16 -0
- data/lib/sts/niso_sts/author_comment.rb +24 -0
- data/lib/sts/niso_sts/author_notes.rb +31 -0
- data/lib/sts/niso_sts/authorization.rb +16 -0
- data/lib/sts/niso_sts/award_group.rb +26 -0
- data/lib/sts/niso_sts/award_id.rb +20 -0
- data/lib/sts/niso_sts/bio.rb +24 -0
- data/lib/sts/niso_sts/boxed_text.rb +31 -0
- data/lib/sts/niso_sts/chapter_title.rb +20 -0
- data/lib/sts/niso_sts/chem_struct.rb +16 -0
- data/lib/sts/niso_sts/chem_struct_wrap.rb +32 -0
- data/lib/sts/niso_sts/citation_alternatives.rb +19 -0
- data/lib/sts/niso_sts/city.rb +20 -0
- data/lib/sts/niso_sts/collab.rb +28 -0
- data/lib/sts/niso_sts/collab_alternatives.rb +15 -0
- data/lib/sts/niso_sts/comm_ref_group.rb +15 -0
- data/lib/sts/niso_sts/comment.rb +16 -0
- data/lib/sts/niso_sts/compound_kwd.rb +25 -0
- data/lib/sts/niso_sts/compound_kwd_part.rb +24 -0
- data/lib/sts/niso_sts/conf_acronym.rb +16 -0
- data/lib/sts/niso_sts/conf_date.rb +20 -0
- data/lib/sts/niso_sts/conf_loc.rb +16 -0
- data/lib/sts/niso_sts/conf_name.rb +16 -0
- data/lib/sts/niso_sts/conf_num.rb +16 -0
- data/lib/sts/niso_sts/conf_sponsor.rb +16 -0
- data/lib/sts/niso_sts/conf_theme.rb +16 -0
- data/lib/sts/niso_sts/conference.rb +29 -0
- data/lib/sts/niso_sts/content_language.rb +20 -0
- data/lib/sts/niso_sts/contrib.rb +58 -0
- data/lib/sts/niso_sts/contrib_group.rb +22 -0
- data/lib/sts/niso_sts/contrib_id.rb +20 -0
- data/lib/sts/niso_sts/copyright_holder.rb +16 -0
- data/lib/sts/niso_sts/copyright_statement.rb +16 -0
- data/lib/sts/niso_sts/copyright_year.rb +16 -0
- data/lib/sts/niso_sts/corresp.rb +20 -0
- data/lib/sts/niso_sts/country.rb +20 -0
- data/lib/sts/niso_sts/counts.rb +25 -0
- data/lib/sts/niso_sts/data_title.rb +20 -0
- data/lib/sts/niso_sts/date.rb +25 -0
- data/lib/sts/niso_sts/date_in_citation.rb +25 -0
- data/lib/sts/niso_sts/day.rb +16 -0
- data/lib/sts/niso_sts/degrees.rb +20 -0
- data/lib/sts/niso_sts/disp_formula_group.rb +26 -0
- data/lib/sts/niso_sts/disp_quote.rb +27 -0
- data/lib/sts/niso_sts/doc_number.rb +16 -0
- data/lib/sts/niso_sts/doc_type.rb +16 -0
- data/lib/sts/niso_sts/editing_instruction.rb +24 -0
- data/lib/sts/niso_sts/edition.rb +16 -0
- data/lib/sts/niso_sts/element_citation.rb +103 -0
- data/lib/sts/niso_sts/elocation_id.rb +17 -0
- data/lib/sts/niso_sts/email.rb +20 -0
- data/lib/sts/niso_sts/equation_count.rb +14 -0
- data/lib/sts/niso_sts/era.rb +16 -0
- data/lib/sts/niso_sts/etal.rb +22 -0
- data/lib/sts/niso_sts/fax.rb +20 -0
- data/lib/sts/niso_sts/fig_count.rb +14 -0
- data/lib/sts/niso_sts/fig_group.rb +30 -0
- data/lib/sts/niso_sts/floats_group.rb +16 -0
- data/lib/sts/niso_sts/fpage.rb +20 -0
- data/lib/sts/niso_sts/funding_group.rb +22 -0
- data/lib/sts/niso_sts/funding_source.rb +26 -0
- data/lib/sts/niso_sts/funding_statement.rb +20 -0
- data/lib/sts/niso_sts/given_names.rb +20 -0
- data/lib/sts/niso_sts/glossary.rb +33 -0
- data/lib/sts/niso_sts/gov.rb +20 -0
- data/lib/sts/niso_sts/history.rb +18 -0
- data/lib/sts/niso_sts/hr.rb +11 -0
- data/lib/sts/niso_sts/ics.rb +15 -0
- data/lib/sts/niso_sts/ics_desc.rb +16 -0
- data/lib/sts/niso_sts/ics_wrap.rb +15 -0
- data/lib/sts/niso_sts/index_term.rb +32 -0
- data/lib/sts/niso_sts/index_term_range_end.rb +17 -0
- data/lib/sts/niso_sts/inline_graphic.rb +39 -0
- data/lib/sts/niso_sts/inline_supplementary_material.rb +38 -0
- data/lib/sts/niso_sts/institution.rb +20 -0
- data/lib/sts/niso_sts/institution_id.rb +18 -0
- data/lib/sts/niso_sts/institution_wrap.rb +17 -0
- data/lib/sts/niso_sts/intro.rb +16 -0
- data/lib/sts/niso_sts/is_proof.rb +15 -0
- data/lib/sts/niso_sts/isbn.rb +20 -0
- data/lib/sts/niso_sts/issn.rb +22 -0
- data/lib/sts/niso_sts/issn_l.rb +20 -0
- data/lib/sts/niso_sts/issue.rb +20 -0
- data/lib/sts/niso_sts/kwd.rb +26 -0
- data/lib/sts/niso_sts/kwd_group.rb +35 -0
- data/lib/sts/niso_sts/license.rb +19 -0
- data/lib/sts/niso_sts/license_p.rb +16 -0
- data/lib/sts/niso_sts/long_desc.rb +22 -0
- data/lib/sts/niso_sts/lpage.rb +20 -0
- data/lib/sts/niso_sts/main.rb +16 -0
- data/lib/sts/niso_sts/mathml.rb +69 -0
- data/lib/sts/niso_sts/media.rb +44 -0
- data/lib/sts/niso_sts/milestone_end.rb +26 -0
- data/lib/sts/niso_sts/milestone_start.rb +24 -0
- data/lib/sts/niso_sts/mixed_citation.rb +98 -5
- data/lib/sts/niso_sts/mml_content/apply.rb +47 -0
- data/lib/sts/niso_sts/mml_content/bind.rb +22 -0
- data/lib/sts/niso_sts/mml_content/calculus.rb +77 -0
- data/lib/sts/niso_sts/mml_content/ci.rb +22 -0
- data/lib/sts/niso_sts/mml_content/cn.rb +24 -0
- data/lib/sts/niso_sts/mml_content/constants.rb +114 -0
- data/lib/sts/niso_sts/mml_content/containers.rb +104 -0
- data/lib/sts/niso_sts/mml_content/csymbol.rb +24 -0
- data/lib/sts/niso_sts/mml_content/functional.rb +110 -0
- data/lib/sts/niso_sts/mml_content/linear_algebra.rb +98 -0
- data/lib/sts/niso_sts/mml_content/operators.rb +154 -0
- data/lib/sts/niso_sts/mml_content/qualifiers.rb +111 -0
- data/lib/sts/niso_sts/mml_content/relations.rb +84 -0
- data/lib/sts/niso_sts/mml_content/sets.rb +84 -0
- data/lib/sts/niso_sts/mml_content/statistics.rb +49 -0
- data/lib/sts/niso_sts/mml_content/trigonometry.rb +135 -0
- data/lib/sts/niso_sts/mml_content.rb +152 -0
- data/lib/sts/niso_sts/monospace.rb +22 -0
- data/lib/sts/niso_sts/month.rb +16 -0
- data/lib/sts/niso_sts/name.rb +25 -0
- data/lib/sts/niso_sts/name_alternatives.rb +15 -0
- data/lib/sts/niso_sts/nat_meta.rb +44 -0
- data/lib/sts/niso_sts/nested_kwd.rb +19 -0
- data/lib/sts/niso_sts/nlm_citation.rb +103 -0
- data/lib/sts/niso_sts/normative_example.rb +27 -0
- data/lib/sts/niso_sts/normative_note.rb +29 -0
- data/lib/sts/niso_sts/note.rb +29 -0
- data/lib/sts/niso_sts/notes.rb +31 -0
- data/lib/sts/niso_sts/notes_group.rb +26 -0
- data/lib/sts/niso_sts/on_behalf_of.rb +20 -0
- data/lib/sts/niso_sts/open_access.rb +16 -0
- data/lib/sts/niso_sts/originator.rb +16 -0
- data/lib/sts/niso_sts/overline.rb +22 -0
- data/lib/sts/niso_sts/page_range.rb +20 -0
- data/lib/sts/niso_sts/paragraph.rb +2 -2
- data/lib/sts/niso_sts/part_number.rb +16 -0
- data/lib/sts/niso_sts/part_of_speech.rb +16 -0
- data/lib/sts/niso_sts/patent.rb +20 -0
- data/lib/sts/niso_sts/person_group.rb +28 -0
- data/lib/sts/niso_sts/phone.rb +20 -0
- data/lib/sts/niso_sts/postal_code.rb +20 -0
- data/lib/sts/niso_sts/prefix.rb +20 -0
- data/lib/sts/niso_sts/preformat.rb +26 -0
- data/lib/sts/niso_sts/price.rb +16 -0
- data/lib/sts/niso_sts/principal_award_recipient.rb +16 -0
- data/lib/sts/niso_sts/principal_investigator.rb +16 -0
- data/lib/sts/niso_sts/private_char.rb +22 -0
- data/lib/sts/niso_sts/product.rb +20 -0
- data/lib/sts/niso_sts/proj_id.rb +16 -0
- data/lib/sts/niso_sts/pub_date.rb +29 -0
- data/lib/sts/niso_sts/pub_id.rb +19 -0
- data/lib/sts/niso_sts/publisher.rb +17 -0
- data/lib/sts/niso_sts/publisher_loc.rb +20 -0
- data/lib/sts/niso_sts/publisher_name.rb +20 -0
- data/lib/sts/niso_sts/rb.rb +22 -0
- data/lib/sts/niso_sts/ref_count.rb +14 -0
- data/lib/sts/niso_sts/reference.rb +6 -0
- data/lib/sts/niso_sts/reg_meta.rb +44 -0
- data/lib/sts/niso_sts/related_article.rb +24 -0
- data/lib/sts/niso_sts/related_object.rb +22 -0
- data/lib/sts/niso_sts/related_term.rb +18 -0
- data/lib/sts/niso_sts/release_date.rb +19 -0
- data/lib/sts/niso_sts/release_version.rb +16 -0
- data/lib/sts/niso_sts/release_version_id.rb +16 -0
- data/lib/sts/niso_sts/role.rb +22 -0
- data/lib/sts/niso_sts/roman.rb +22 -0
- data/lib/sts/niso_sts/rp.rb +18 -0
- data/lib/sts/niso_sts/rt.rb +22 -0
- data/lib/sts/niso_sts/ruby.rb +23 -0
- data/lib/sts/niso_sts/sans_serif.rb +22 -0
- data/lib/sts/niso_sts/sc.rb +22 -0
- data/lib/sts/niso_sts/sdo.rb +16 -0
- data/lib/sts/niso_sts/season.rb +16 -0
- data/lib/sts/niso_sts/secretariat.rb +16 -0
- data/lib/sts/niso_sts/see.rb +26 -0
- data/lib/sts/niso_sts/see_also.rb +26 -0
- data/lib/sts/niso_sts/self_uri.rb +22 -0
- data/lib/sts/niso_sts/series.rb +22 -0
- data/lib/sts/niso_sts/series_text.rb +22 -0
- data/lib/sts/niso_sts/series_title.rb +22 -0
- data/lib/sts/niso_sts/sig.rb +18 -0
- data/lib/sts/niso_sts/sig_block.rb +22 -0
- data/lib/sts/niso_sts/size.rb +18 -0
- data/lib/sts/niso_sts/source.rb +20 -0
- data/lib/sts/niso_sts/speaker.rb +16 -0
- data/lib/sts/niso_sts/speech.rb +25 -0
- data/lib/sts/niso_sts/state.rb +20 -0
- data/lib/sts/niso_sts/statement.rb +29 -0
- data/lib/sts/niso_sts/std_doc_meta.rb +44 -0
- data/lib/sts/niso_sts/std_org.rb +25 -0
- data/lib/sts/niso_sts/std_org_abbrev.rb +16 -0
- data/lib/sts/niso_sts/std_org_group.rb +15 -0
- data/lib/sts/niso_sts/std_org_loc.rb +16 -0
- data/lib/sts/niso_sts/std_org_name.rb +16 -0
- data/lib/sts/niso_sts/std_organization.rb +16 -0
- data/lib/sts/niso_sts/strike.rb +22 -0
- data/lib/sts/niso_sts/string_conf.rb +16 -0
- data/lib/sts/niso_sts/string_date.rb +16 -0
- data/lib/sts/niso_sts/string_name.rb +24 -0
- data/lib/sts/niso_sts/styled_content.rb +26 -0
- data/lib/sts/niso_sts/sub.rb +20 -0
- data/lib/sts/niso_sts/subj_group.rb +24 -0
- data/lib/sts/niso_sts/subject.rb +24 -0
- data/lib/sts/niso_sts/subtitle.rb +16 -0
- data/lib/sts/niso_sts/suffix.rb +20 -0
- data/lib/sts/niso_sts/sup.rb +20 -0
- data/lib/sts/niso_sts/suppl_number.rb +16 -0
- data/lib/sts/niso_sts/suppl_type.rb +16 -0
- data/lib/sts/niso_sts/suppl_version.rb +16 -0
- data/lib/sts/niso_sts/supplement.rb +24 -0
- data/lib/sts/niso_sts/supplementary_material.rb +46 -0
- data/lib/sts/niso_sts/surname.rb +20 -0
- data/lib/sts/niso_sts/table_count.rb +14 -0
- data/lib/sts/niso_sts/target.rb +24 -0
- data/lib/sts/niso_sts/term.rb +4 -2
- data/lib/sts/niso_sts/term_head.rb +16 -0
- data/lib/sts/niso_sts/term_source.rb +16 -0
- data/lib/sts/niso_sts/tex_math.rb +16 -0
- data/lib/sts/niso_sts/textual_form.rb +16 -0
- data/lib/sts/niso_sts/time_stamp.rb +20 -0
- data/lib/sts/niso_sts/trans_abstract.rb +23 -0
- data/lib/sts/niso_sts/trans_source.rb +20 -0
- data/lib/sts/niso_sts/trans_title.rb +20 -0
- data/lib/sts/niso_sts/trans_title_group.rb +15 -0
- data/lib/sts/niso_sts/underline.rb +22 -0
- data/lib/sts/niso_sts/unstructured_kwd_group.rb +24 -0
- data/lib/sts/niso_sts/uri.rb +20 -0
- data/lib/sts/niso_sts/urn.rb +16 -0
- data/lib/sts/niso_sts/verse_group.rb +29 -0
- data/lib/sts/niso_sts/verse_line.rb +16 -0
- data/lib/sts/niso_sts/version.rb +16 -0
- data/lib/sts/niso_sts/volume.rb +20 -0
- data/lib/sts/niso_sts/volume_id.rb +22 -0
- data/lib/sts/niso_sts/volume_issue_group.rb +16 -0
- data/lib/sts/niso_sts/volume_series.rb +16 -0
- data/lib/sts/niso_sts/word_count.rb +14 -0
- data/lib/sts/niso_sts/xi/fallback.rb +18 -0
- data/lib/sts/niso_sts/xi/include.rb +27 -0
- data/lib/sts/niso_sts/xi/xi.rb +10 -0
- data/lib/sts/niso_sts/year.rb +16 -0
- data/lib/sts/niso_sts.rb +233 -1
- data/lib/sts/tbx_iso_tml/td.rb +3 -3
- data/lib/sts/version.rb +1 -1
- data/lib/sts.rb +1 -0
- data/reference-docs/NISO-STS-extended-1-MathML3-XSD/NISO-STS-extended-1-mathml3-elements.xsd +11447 -0
- data/reference-docs/NISO-STS-extended-1-MathML3-XSD/NISO-STS-extended-1-mathml3.xsd +97 -0
- data/reference-docs/NISO-STS-extended-1-MathML3-XSD/module-oasis.xsd +227 -0
- data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/mathml3/mathml3-common.xsd +101 -0
- data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/mathml3/mathml3-content.xsd +683 -0
- data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/mathml3/mathml3-presentation.xsd +2092 -0
- data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/mathml3/mathml3-strict-content.xsd +186 -0
- data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/mathml3/mathml3.xsd +9 -0
- data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/module-ali.xsd +46 -0
- data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/module-tbx.xsd +494 -0
- data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/module-xi.xsd +51 -0
- data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/xlink.xsd +100 -0
- data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/xml.xsd +287 -0
- metadata +264 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class PartNumber < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "part-number"
|
|
10
|
+
mixed_content
|
|
11
|
+
|
|
12
|
+
map_content to: :content
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class PartOfSpeech < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "part-of-speech"
|
|
10
|
+
mixed_content
|
|
11
|
+
|
|
12
|
+
map_content to: :content
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class Patent < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
|
+
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "patent"
|
|
12
|
+
mixed_content
|
|
13
|
+
|
|
14
|
+
map_content to: :content
|
|
15
|
+
map_element "bold", to: :bold
|
|
16
|
+
map_element "italic", to: :italic
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class PersonGroup < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :person_group_type, :string
|
|
8
|
+
attribute :name, ::Sts::NisoSts::Name, collection: true
|
|
9
|
+
attribute :collab, ::Sts::NisoSts::Collab, collection: true
|
|
10
|
+
attribute :string_name, ::Sts::NisoSts::StringName, collection: true
|
|
11
|
+
attribute :etal, ::Sts::NisoSts::Etal
|
|
12
|
+
attribute :aff, ::Sts::NisoSts::Aff, collection: true
|
|
13
|
+
|
|
14
|
+
xml do
|
|
15
|
+
element "person-group"
|
|
16
|
+
|
|
17
|
+
map_attribute "id", to: :id
|
|
18
|
+
map_attribute "person-group-type", to: :person_group_type
|
|
19
|
+
|
|
20
|
+
map_element "name", to: :name
|
|
21
|
+
map_element "collab", to: :collab
|
|
22
|
+
map_element "string-name", to: :string_name
|
|
23
|
+
map_element "etal", to: :etal
|
|
24
|
+
map_element "aff", to: :aff
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class Phone < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
|
+
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "phone"
|
|
12
|
+
mixed_content
|
|
13
|
+
|
|
14
|
+
map_content to: :content
|
|
15
|
+
map_element "bold", to: :bold
|
|
16
|
+
map_element "italic", to: :italic
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class PostalCode < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
|
+
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "postal-code"
|
|
12
|
+
mixed_content
|
|
13
|
+
|
|
14
|
+
map_content to: :content
|
|
15
|
+
map_element "bold", to: :bold
|
|
16
|
+
map_element "italic", to: :italic
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class Prefix < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
|
+
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "prefix"
|
|
12
|
+
mixed_content
|
|
13
|
+
|
|
14
|
+
map_content to: :content
|
|
15
|
+
map_element "bold", to: :bold
|
|
16
|
+
map_element "italic", to: :italic
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class Preformat < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :content_type, :string
|
|
8
|
+
attribute :preformat_type, :string
|
|
9
|
+
attribute :xml_space, :string
|
|
10
|
+
attribute :language, :string
|
|
11
|
+
attribute :content, :string
|
|
12
|
+
|
|
13
|
+
xml do
|
|
14
|
+
element "preformat"
|
|
15
|
+
mixed_content
|
|
16
|
+
|
|
17
|
+
map_attribute "id", to: :id
|
|
18
|
+
map_attribute "content-type", to: :content_type
|
|
19
|
+
map_attribute "preformat-type", to: :preformat_type
|
|
20
|
+
map_attribute "xml:space", to: :xml_space
|
|
21
|
+
map_attribute "language", to: :language
|
|
22
|
+
map_content to: :content
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class PrincipalAwardRecipient < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "principal-award-recipient"
|
|
10
|
+
mixed_content
|
|
11
|
+
|
|
12
|
+
map_content to: :content
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class PrincipalInvestigator < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "principal-investigator"
|
|
10
|
+
mixed_content
|
|
11
|
+
|
|
12
|
+
map_content to: :content
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class PrivateChar < Lutaml::Model::Serializable
|
|
6
|
+
attribute :description, :string
|
|
7
|
+
attribute :name, :string
|
|
8
|
+
attribute :specific_use, :string
|
|
9
|
+
attribute :content, :string
|
|
10
|
+
|
|
11
|
+
xml do
|
|
12
|
+
element "private-char"
|
|
13
|
+
mixed_content
|
|
14
|
+
|
|
15
|
+
map_attribute "description", to: :description
|
|
16
|
+
map_attribute "name", to: :name
|
|
17
|
+
map_attribute "specific-use", to: :specific_use
|
|
18
|
+
map_content to: :content
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class Product < Lutaml::Model::Serializable
|
|
6
|
+
attribute :product_type, :string
|
|
7
|
+
attribute :xlink_href, :string
|
|
8
|
+
attribute :content, :string
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "product"
|
|
12
|
+
mixed_content
|
|
13
|
+
|
|
14
|
+
map_attribute "product-type", to: :product_type
|
|
15
|
+
map_attribute "xlink:href", to: :xlink_href
|
|
16
|
+
map_content to: :content
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class PubDate < Lutaml::Model::Serializable
|
|
6
|
+
attribute :day, :string
|
|
7
|
+
attribute :month, :string
|
|
8
|
+
attribute :year, :string
|
|
9
|
+
attribute :era, :string
|
|
10
|
+
attribute :season, :string
|
|
11
|
+
attribute :date_type, :string
|
|
12
|
+
attribute :iso_8601_date, :string
|
|
13
|
+
attribute :publication_format, :string
|
|
14
|
+
|
|
15
|
+
xml do
|
|
16
|
+
element "pub-date"
|
|
17
|
+
|
|
18
|
+
map_attribute "date-type", to: :date_type
|
|
19
|
+
map_attribute "iso-8601-date", to: :iso_8601_date
|
|
20
|
+
map_attribute "publication-format", to: :publication_format
|
|
21
|
+
map_element "day", to: :day
|
|
22
|
+
map_element "month", to: :month
|
|
23
|
+
map_element "year", to: :year
|
|
24
|
+
map_element "era", to: :era
|
|
25
|
+
map_element "season", to: :season
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class PubId < Lutaml::Model::Serializable
|
|
6
|
+
attribute :pub_id_type, :string
|
|
7
|
+
attribute :assigning_authority, :string
|
|
8
|
+
attribute :content, :string
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "pub-id"
|
|
12
|
+
|
|
13
|
+
map_attribute "pub-id-type", to: :pub_id_type
|
|
14
|
+
map_attribute "assigning-authority", to: :assigning_authority
|
|
15
|
+
map_content to: :content
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class Publisher < Lutaml::Model::Serializable
|
|
6
|
+
attribute :publisher_name, ::Sts::NisoSts::PublisherName, collection: true
|
|
7
|
+
attribute :publisher_loc, ::Sts::NisoSts::PublisherLoc, collection: true
|
|
8
|
+
|
|
9
|
+
xml do
|
|
10
|
+
element "publisher"
|
|
11
|
+
|
|
12
|
+
map_element "publisher-name", to: :publisher_name
|
|
13
|
+
map_element "publisher-loc", to: :publisher_loc
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class PublisherLoc < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
|
+
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "publisher-loc"
|
|
12
|
+
mixed_content
|
|
13
|
+
|
|
14
|
+
map_content to: :content
|
|
15
|
+
map_element "bold", to: :bold
|
|
16
|
+
map_element "italic", to: :italic
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class PublisherName < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
|
+
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "publisher-name"
|
|
12
|
+
mixed_content
|
|
13
|
+
|
|
14
|
+
map_content to: :content
|
|
15
|
+
map_element "bold", to: :bold
|
|
16
|
+
map_element "italic", to: :italic
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class Rb < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :content_type, :string
|
|
8
|
+
attribute :id, :string
|
|
9
|
+
attribute :specific_use, :string
|
|
10
|
+
|
|
11
|
+
xml do
|
|
12
|
+
element "rb"
|
|
13
|
+
mixed_content
|
|
14
|
+
|
|
15
|
+
map_content to: :content
|
|
16
|
+
map_attribute "content-type", to: :content_type
|
|
17
|
+
map_attribute "id", to: :id
|
|
18
|
+
map_attribute "specific-use", to: :specific_use
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -7,6 +7,9 @@ module Sts
|
|
|
7
7
|
attribute :id, :string
|
|
8
8
|
attribute :label, ::Sts::NisoSts::Label
|
|
9
9
|
attribute :mixed_citation, ::Sts::NisoSts::MixedCitation
|
|
10
|
+
attribute :element_citation, ::Sts::NisoSts::ElementCitation
|
|
11
|
+
attribute :nlm_citation, ::Sts::NisoSts::NlmCitation
|
|
12
|
+
attribute :citation_alternatives, ::Sts::NisoSts::CitationAlternatives
|
|
10
13
|
attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
|
|
11
14
|
|
|
12
15
|
xml do
|
|
@@ -16,6 +19,9 @@ module Sts
|
|
|
16
19
|
map_element "label", to: :label
|
|
17
20
|
map_element "std", to: :std
|
|
18
21
|
map_element "mixed-citation", to: :mixed_citation
|
|
22
|
+
map_element "element-citation", to: :element_citation
|
|
23
|
+
map_element "nlm-citation", to: :nlm_citation
|
|
24
|
+
map_element "citation-alternatives", to: :citation_alternatives
|
|
19
25
|
end
|
|
20
26
|
end
|
|
21
27
|
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class RegMeta < Lutaml::Model::Serializable
|
|
6
|
+
attribute :title_wrap, ::Sts::NisoSts::TitleWrap, collection: true
|
|
7
|
+
attribute :std_ident, ::Sts::NisoSts::StandardIdentification
|
|
8
|
+
attribute :doc_ident, ::Sts::NisoSts::DocumentIdentification
|
|
9
|
+
attribute :std_ref, ::Sts::NisoSts::StandardRef, collection: true
|
|
10
|
+
attribute :doc_ref, :string
|
|
11
|
+
attribute :pub_date, :string
|
|
12
|
+
attribute :release_date, :string
|
|
13
|
+
attribute :release_version, :string
|
|
14
|
+
attribute :comm_ref, :string
|
|
15
|
+
attribute :secretariat, :string
|
|
16
|
+
attribute :ics, :string
|
|
17
|
+
attribute :std_xref, ::Sts::NisoSts::StdCrossReference
|
|
18
|
+
attribute :permissions, ::Sts::NisoSts::Permissions
|
|
19
|
+
attribute :meta_note, ::Sts::NisoSts::MetaNote, collection: true
|
|
20
|
+
attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup,
|
|
21
|
+
collection: true
|
|
22
|
+
|
|
23
|
+
xml do
|
|
24
|
+
element "reg-meta"
|
|
25
|
+
|
|
26
|
+
map_element "title-wrap", to: :title_wrap
|
|
27
|
+
map_element "std-ident", to: :std_ident
|
|
28
|
+
map_element "doc-ident", to: :doc_ident
|
|
29
|
+
map_element "std-ref", to: :std_ref
|
|
30
|
+
map_element "doc-ref", to: :doc_ref
|
|
31
|
+
map_element "pub-date", to: :pub_date
|
|
32
|
+
map_element "release-date", to: :release_date
|
|
33
|
+
map_element "release-version", to: :release_version
|
|
34
|
+
map_element "comm-ref", to: :comm_ref
|
|
35
|
+
map_element "secretariat", to: :secretariat
|
|
36
|
+
map_element "ics", to: :ics
|
|
37
|
+
map_element "std-xref", to: :std_xref
|
|
38
|
+
map_element "permissions", to: :permissions
|
|
39
|
+
map_element "meta-note", to: :meta_note
|
|
40
|
+
map_element "custom-meta-group", to: :custom_meta_group
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class RelatedArticle < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :ext_link_type, :string
|
|
8
|
+
attribute :href, :xlink_href
|
|
9
|
+
attribute :id, :string
|
|
10
|
+
attribute :related_article_type, :string
|
|
11
|
+
|
|
12
|
+
xml do
|
|
13
|
+
element "related-article"
|
|
14
|
+
mixed_content
|
|
15
|
+
|
|
16
|
+
map_content to: :content
|
|
17
|
+
map_attribute "ext-link-type", to: :ext_link_type
|
|
18
|
+
map_attribute "xlink:href", to: :href
|
|
19
|
+
map_attribute "id", to: :id
|
|
20
|
+
map_attribute "related-article-type", to: :related_article_type
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class RelatedObject < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
attribute :ext_link_type, :string
|
|
8
|
+
attribute :href, :xlink_href
|
|
9
|
+
attribute :id, :string
|
|
10
|
+
|
|
11
|
+
xml do
|
|
12
|
+
element "related-object"
|
|
13
|
+
mixed_content
|
|
14
|
+
|
|
15
|
+
map_content to: :content
|
|
16
|
+
map_attribute "ext-link-type", to: :ext_link_type
|
|
17
|
+
map_attribute "xlink:href", to: :href
|
|
18
|
+
map_attribute "id", to: :id
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class RelatedTerm < Lutaml::Model::Serializable
|
|
6
|
+
attribute :related_term_type, :string
|
|
7
|
+
attribute :content, :string
|
|
8
|
+
|
|
9
|
+
xml do
|
|
10
|
+
element "related-term"
|
|
11
|
+
mixed_content
|
|
12
|
+
|
|
13
|
+
map_attribute "related-term-type", to: :related_term_type
|
|
14
|
+
map_content to: :content
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class ReleaseDate < Lutaml::Model::Serializable
|
|
6
|
+
attribute :day, :string
|
|
7
|
+
attribute :month, :string
|
|
8
|
+
attribute :year, :string
|
|
9
|
+
|
|
10
|
+
xml do
|
|
11
|
+
element "release-date"
|
|
12
|
+
|
|
13
|
+
map_element "day", to: :day
|
|
14
|
+
map_element "month", to: :month
|
|
15
|
+
map_element "year", to: :year
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class ReleaseVersion < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "release-version"
|
|
10
|
+
mixed_content
|
|
11
|
+
|
|
12
|
+
map_content to: :content
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class ReleaseVersionId < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "release-version-id"
|
|
10
|
+
mixed_content
|
|
11
|
+
|
|
12
|
+
map_content to: :content
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class Role < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content_type, :string
|
|
7
|
+
attribute :content, :string
|
|
8
|
+
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
9
|
+
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
10
|
+
|
|
11
|
+
xml do
|
|
12
|
+
element "role"
|
|
13
|
+
mixed_content
|
|
14
|
+
|
|
15
|
+
map_attribute "content-type", to: :content_type
|
|
16
|
+
map_content to: :content
|
|
17
|
+
map_element "bold", to: :bold
|
|
18
|
+
map_element "italic", to: :italic
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class Roman < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
7
|
+
attribute :specific_use, :string
|
|
8
|
+
attribute :toggle, :string
|
|
9
|
+
attribute :content, :string
|
|
10
|
+
|
|
11
|
+
xml do
|
|
12
|
+
element "roman"
|
|
13
|
+
mixed_content
|
|
14
|
+
|
|
15
|
+
map_attribute "id", to: :id
|
|
16
|
+
map_attribute "specific-use", to: :specific_use
|
|
17
|
+
map_attribute "toggle", to: :toggle
|
|
18
|
+
map_content to: :content
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|