sts 0.5.3 → 0.5.5
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 +25 -10
- data/GAPS.guidelines.iso-sts-ed2.1/01-maintenance.md +19 -0
- data/GAPS.guidelines.iso-sts-ed2.1/03-general.md +75 -0
- data/GAPS.guidelines.iso-sts-ed2.1/04-structure.md +75 -0
- data/GAPS.guidelines.iso-sts-ed2.1/05-content.md +63 -0
- data/GAPS.guidelines.iso-sts-ed2.1/06-tables.md +53 -0
- data/GAPS.guidelines.iso-sts-ed2.1/07-formulae.md +41 -0
- data/GAPS.guidelines.iso-sts-ed2.1/08-figures.md +45 -0
- data/GAPS.guidelines.iso-sts-ed2.1/09-terms.md +56 -0
- data/GAPS.guidelines.iso-sts-ed2.1/10-references.md +56 -0
- data/GAPS.guidelines.iso-sts-ed2.1/annex-a-multilingual.md +79 -0
- data/GAPS.guidelines.niso-sts-v1.0/01-introduction-scope.md +27 -0
- data/GAPS.guidelines.niso-sts-v1.0/02-document-structure.md +100 -0
- data/GAPS.guidelines.niso-sts-v1.0/03-front-matter.md +149 -0
- data/GAPS.guidelines.niso-sts-v1.0/04-body-content.md +209 -0
- data/GAPS.guidelines.niso-sts-v1.0/05-tables-figures.md +152 -0
- data/GAPS.guidelines.niso-sts-v1.0/06-math-formulae.md +128 -0
- data/GAPS.guidelines.niso-sts-v1.0/07-references.md +113 -0
- data/GAPS.guidelines.niso-sts-v1.0/08-terminology.md +127 -0
- data/GAPS.guidelines.niso-sts-v1.0/09-metadata.md +113 -0
- data/GAPS.guidelines.niso-sts-v1.0/10-iso-iec-variant.md +141 -0
- data/GAPS.guidelines.niso-sts-v1.0/SUMMARY.md +96 -0
- data/GAPS.guidelines.schema-xref.md +101 -0
- data/Gemfile +1 -0
- data/TODO.sts-refactor/00-overview.md +172 -0
- data/TODO.sts-refactor/01-mathml-delegation.md +153 -0
- data/TODO.sts-refactor/02-type-resolution.md +122 -0
- data/TODO.sts-refactor/03-namespace-coupling.md +158 -0
- data/TODO.sts-refactor/04-register-versioning.md +180 -0
- data/TODO.sts-refactor/05-missing-elements.md +195 -0
- data/TODO.sts-refactor/06-missing-attributes.md +152 -0
- data/TODO.sts-refactor/07-incomplete-models.md +180 -0
- data/TODO.sts-refactor/08-isoiec-profile.md +169 -0
- data/TODO.sts-refactor/09-autoload-cleanup.md +88 -0
- data/TODO.sts-refactor/10-test-coverage.md +164 -0
- data/TODO.sts-refactor/11-duplicate-models.md +168 -0
- data/lib/sts/iso_sts/annex_type.rb +2 -0
- data/lib/sts/iso_sts/bold.rb +9 -9
- data/lib/sts/iso_sts/break.rb +3 -0
- data/lib/sts/iso_sts/comm_ref.rb +2 -0
- data/lib/sts/iso_sts/content_language.rb +22 -0
- data/lib/sts/iso_sts/copyright_holder.rb +4 -2
- data/lib/sts/iso_sts/copyright_statement.rb +4 -2
- data/lib/sts/iso_sts/copyright_year.rb +3 -0
- data/lib/sts/iso_sts/doc_ref.rb +2 -0
- data/lib/sts/iso_sts/document_identification.rb +2 -0
- data/lib/sts/iso_sts/edition.rb +2 -0
- data/lib/sts/iso_sts/ext_link.rb +1 -1
- data/lib/sts/iso_sts/front.rb +2 -0
- data/lib/sts/iso_sts/iso_meta.rb +2 -2
- data/lib/sts/iso_sts/italic.rb +9 -9
- data/lib/sts/iso_sts/label.rb +7 -5
- data/lib/sts/iso_sts/language.rb +2 -0
- data/lib/sts/iso_sts/meta_date.rb +20 -0
- data/lib/sts/iso_sts/mixed_citation.rb +5 -5
- data/lib/sts/iso_sts/monospace.rb +26 -0
- data/lib/sts/iso_sts/named_content.rb +44 -0
- data/lib/sts/iso_sts/nat_meta.rb +4 -4
- data/lib/sts/iso_sts/page_count.rb +2 -0
- data/lib/sts/iso_sts/paragraph.rb +8 -8
- data/lib/sts/iso_sts/permissions.rb +2 -0
- data/lib/sts/iso_sts/preformat.rb +3 -3
- data/lib/sts/iso_sts/reg_meta.rb +4 -4
- data/lib/sts/iso_sts/release_date.rb +2 -0
- data/lib/sts/iso_sts/sc.rb +26 -0
- data/lib/sts/iso_sts/sec.rb +2 -2
- data/lib/sts/iso_sts/secretariat.rb +2 -0
- data/lib/sts/iso_sts/standard_cross_reference.rb +4 -2
- data/lib/sts/iso_sts/standard_identification.rb +2 -0
- data/lib/sts/iso_sts/standard_ref.rb +16 -0
- data/lib/sts/iso_sts/std.rb +3 -1
- data/lib/sts/iso_sts/std_ref.rb +2 -0
- data/lib/sts/iso_sts/strike.rb +26 -0
- data/lib/sts/iso_sts/styled_content.rb +11 -9
- data/lib/sts/iso_sts/sub.rb +2 -0
- data/lib/sts/iso_sts/sup.rb +2 -0
- data/lib/sts/iso_sts/table_wrap_foot.rb +2 -0
- data/lib/sts/iso_sts/td.rb +7 -7
- data/lib/sts/iso_sts/term.rb +5 -5
- data/lib/sts/iso_sts/th.rb +7 -7
- data/lib/sts/iso_sts/title.rb +6 -4
- data/lib/sts/iso_sts/title_compl.rb +2 -0
- data/lib/sts/iso_sts/title_full.rb +2 -0
- data/lib/sts/iso_sts/title_intro.rb +2 -0
- data/lib/sts/iso_sts/title_main.rb +2 -0
- data/lib/sts/iso_sts/underline.rb +26 -0
- data/lib/sts/iso_sts/uri.rb +32 -0
- data/lib/sts/iso_sts/xref.rb +3 -3
- data/lib/sts/iso_sts.rb +9 -0
- data/lib/sts/mathml.rb +12 -58
- data/lib/sts/namespaces.rb +2 -0
- data/lib/sts/niso_sts/abstract.rb +2 -0
- data/lib/sts/niso_sts/access_date.rb +2 -0
- data/lib/sts/niso_sts/accrediting_organization.rb +2 -0
- data/lib/sts/niso_sts/addr_line.rb +2 -0
- data/lib/sts/niso_sts/address.rb +2 -0
- data/lib/sts/niso_sts/aff_alternatives.rb +3 -0
- data/lib/sts/niso_sts/alt_text.rb +2 -0
- data/lib/sts/niso_sts/alt_title.rb +2 -0
- data/lib/sts/niso_sts/alternatives.rb +2 -0
- data/lib/sts/niso_sts/anonymous.rb +3 -0
- data/lib/sts/niso_sts/app.rb +2 -0
- data/lib/sts/niso_sts/article_title.rb +2 -0
- data/lib/sts/niso_sts/attrib.rb +2 -0
- data/lib/sts/niso_sts/authorization.rb +2 -0
- data/lib/sts/niso_sts/award_group.rb +22 -4
- data/lib/sts/niso_sts/award_id.rb +6 -0
- data/lib/sts/niso_sts/back.rb +22 -4
- data/lib/sts/niso_sts/body.rb +2 -0
- data/lib/sts/niso_sts/boxed_text.rb +38 -4
- data/lib/sts/niso_sts/break.rb +3 -0
- data/lib/sts/niso_sts/caption.rb +8 -0
- data/lib/sts/niso_sts/chapter_title.rb +2 -0
- data/lib/sts/niso_sts/chem_struct.rb +2 -0
- data/lib/sts/niso_sts/citation_alternatives.rb +2 -0
- data/lib/sts/niso_sts/city.rb +2 -0
- data/lib/sts/niso_sts/code.rb +111 -0
- data/lib/sts/niso_sts/collab_alternatives.rb +3 -0
- data/lib/sts/niso_sts/comm_ref_group.rb +3 -0
- data/lib/sts/niso_sts/comment.rb +2 -0
- data/lib/sts/niso_sts/compound_subject.rb +29 -0
- data/lib/sts/niso_sts/compound_subject_part.rb +39 -0
- data/lib/sts/niso_sts/conf_acronym.rb +2 -0
- data/lib/sts/niso_sts/conf_date.rb +2 -0
- data/lib/sts/niso_sts/conf_loc.rb +2 -0
- data/lib/sts/niso_sts/conf_name.rb +2 -0
- data/lib/sts/niso_sts/conf_num.rb +2 -0
- data/lib/sts/niso_sts/conf_sponsor.rb +2 -0
- data/lib/sts/niso_sts/conf_theme.rb +2 -0
- data/lib/sts/niso_sts/conference.rb +2 -0
- data/lib/sts/niso_sts/content_language.rb +2 -0
- data/lib/sts/niso_sts/contrib_id.rb +2 -0
- data/lib/sts/niso_sts/copyright_holder.rb +2 -0
- data/lib/sts/niso_sts/copyright_statement.rb +2 -0
- data/lib/sts/niso_sts/copyright_year.rb +2 -0
- data/lib/sts/niso_sts/country.rb +2 -0
- data/lib/sts/niso_sts/counts.rb +2 -0
- data/lib/sts/niso_sts/custom_meta.rb +2 -0
- data/lib/sts/niso_sts/custom_meta_group.rb +3 -0
- data/lib/sts/niso_sts/data_title.rb +29 -0
- data/lib/sts/niso_sts/date.rb +2 -0
- data/lib/sts/niso_sts/date_in_citation.rb +2 -0
- data/lib/sts/niso_sts/day.rb +2 -0
- data/lib/sts/niso_sts/def.rb +3 -0
- data/lib/sts/niso_sts/def_head.rb +18 -0
- data/lib/sts/niso_sts/def_item.rb +4 -0
- data/lib/sts/niso_sts/def_list.rb +21 -4
- data/lib/sts/niso_sts/degrees.rb +2 -0
- data/lib/sts/niso_sts/disp_formula_group.rb +0 -2
- data/lib/sts/niso_sts/disp_quote.rb +2 -0
- data/lib/sts/niso_sts/display_formula.rb +37 -4
- data/lib/sts/niso_sts/doc_number.rb +2 -0
- data/lib/sts/niso_sts/doc_type.rb +2 -0
- data/lib/sts/niso_sts/editing_instruction.rb +8 -2
- data/lib/sts/niso_sts/edition.rb +2 -0
- data/lib/sts/niso_sts/elocation_id.rb +2 -0
- data/lib/sts/niso_sts/email.rb +2 -0
- data/lib/sts/niso_sts/equation_count.rb +2 -0
- data/lib/sts/niso_sts/era.rb +2 -0
- data/lib/sts/niso_sts/ext_link.rb +16 -0
- data/lib/sts/niso_sts/fax.rb +2 -0
- data/lib/sts/niso_sts/fig_count.rb +2 -0
- data/lib/sts/niso_sts/floats_group.rb +2 -0
- data/lib/sts/niso_sts/fn_group.rb +3 -0
- data/lib/sts/niso_sts/fpage.rb +2 -0
- data/lib/sts/niso_sts/front.rb +15 -0
- data/lib/sts/niso_sts/funding_group.rb +2 -1
- data/lib/sts/niso_sts/funding_source.rb +2 -0
- data/lib/sts/niso_sts/given_names.rb +2 -0
- data/lib/sts/niso_sts/gov.rb +2 -0
- data/lib/sts/niso_sts/graphic.rb +4 -0
- data/lib/sts/niso_sts/hr.rb +3 -0
- data/lib/sts/niso_sts/ics.rb +3 -0
- data/lib/sts/niso_sts/ics_desc.rb +2 -0
- data/lib/sts/niso_sts/ics_wrap.rb +9 -0
- data/lib/sts/niso_sts/index.rb +32 -0
- data/lib/sts/niso_sts/index_div.rb +30 -0
- data/lib/sts/niso_sts/index_entry.rb +32 -0
- data/lib/sts/niso_sts/index_title_group.rb +22 -0
- data/lib/sts/niso_sts/inline_formula.rb +29 -4
- data/lib/sts/niso_sts/inline_media.rb +50 -0
- data/lib/sts/niso_sts/institution.rb +2 -0
- data/lib/sts/niso_sts/institution_id.rb +2 -0
- data/lib/sts/niso_sts/institution_wrap.rb +2 -0
- data/lib/sts/niso_sts/intro.rb +2 -0
- data/lib/sts/niso_sts/is_proof.rb +2 -0
- data/lib/sts/niso_sts/isbn.rb +2 -0
- data/lib/sts/niso_sts/issn.rb +2 -0
- data/lib/sts/niso_sts/issn_l.rb +2 -0
- data/lib/sts/niso_sts/issue.rb +2 -0
- data/lib/sts/niso_sts/kwd_group.rb +8 -0
- data/lib/sts/niso_sts/label.rb +4 -0
- data/lib/sts/niso_sts/legend.rb +39 -0
- data/lib/sts/niso_sts/license.rb +2 -0
- data/lib/sts/niso_sts/license_p.rb +2 -0
- data/lib/sts/niso_sts/list.rb +2 -0
- data/lib/sts/niso_sts/list_item.rb +2 -2
- data/lib/sts/niso_sts/long_desc.rb +2 -0
- data/lib/sts/niso_sts/lpage.rb +2 -0
- data/lib/sts/niso_sts/main.rb +2 -0
- data/lib/sts/niso_sts/meta_date.rb +2 -0
- data/lib/sts/niso_sts/metadata_std.rb +1 -3
- data/lib/sts/niso_sts/mml_content.rb +0 -2
- data/lib/sts/niso_sts/month.rb +2 -0
- data/lib/sts/niso_sts/name.rb +2 -0
- data/lib/sts/niso_sts/name_alternatives.rb +5 -0
- data/lib/sts/niso_sts/named_content.rb +51 -1
- data/lib/sts/niso_sts/nat_meta.rb +4 -2
- data/lib/sts/niso_sts/nested_kwd.rb +2 -0
- data/lib/sts/niso_sts/non_normative_note.rb +2 -0
- data/lib/sts/niso_sts/normative_example.rb +6 -1
- data/lib/sts/niso_sts/normative_note.rb +8 -1
- data/lib/sts/niso_sts/object_id.rb +4 -0
- data/lib/sts/niso_sts/on_behalf_of.rb +2 -0
- data/lib/sts/niso_sts/open_access.rb +2 -0
- data/lib/sts/niso_sts/originator.rb +2 -0
- data/lib/sts/niso_sts/page_count.rb +2 -0
- data/lib/sts/niso_sts/page_range.rb +2 -0
- data/lib/sts/niso_sts/paragraph.rb +2 -0
- data/lib/sts/niso_sts/part_number.rb +2 -0
- data/lib/sts/niso_sts/part_of_speech.rb +2 -0
- data/lib/sts/niso_sts/patent.rb +2 -0
- data/lib/sts/niso_sts/permissions.rb +6 -1
- data/lib/sts/niso_sts/phone.rb +2 -0
- data/lib/sts/niso_sts/postal_code.rb +2 -0
- data/lib/sts/niso_sts/prefix.rb +2 -0
- data/lib/sts/niso_sts/price.rb +2 -0
- data/lib/sts/niso_sts/principal_award_recipient.rb +2 -0
- data/lib/sts/niso_sts/principal_investigator.rb +2 -0
- data/lib/sts/niso_sts/private_char.rb +2 -0
- data/lib/sts/niso_sts/processing_meta.rb +54 -0
- data/lib/sts/niso_sts/product.rb +2 -0
- data/lib/sts/niso_sts/proj_id.rb +2 -0
- data/lib/sts/niso_sts/pub_date.rb +2 -0
- data/lib/sts/niso_sts/pub_id.rb +2 -0
- data/lib/sts/niso_sts/publisher.rb +2 -0
- data/lib/sts/niso_sts/publisher_loc.rb +2 -0
- data/lib/sts/niso_sts/publisher_name.rb +2 -0
- data/lib/sts/niso_sts/ref_count.rb +2 -0
- data/lib/sts/niso_sts/reference_standard.rb +3 -3
- data/lib/sts/niso_sts/reg_meta.rb +4 -2
- data/lib/sts/niso_sts/related_term.rb +2 -0
- data/lib/sts/niso_sts/release_date.rb +2 -0
- data/lib/sts/niso_sts/release_version.rb +2 -0
- data/lib/sts/niso_sts/release_version_id.rb +2 -0
- data/lib/sts/niso_sts/role.rb +35 -0
- data/lib/sts/niso_sts/sdo.rb +2 -0
- data/lib/sts/niso_sts/season.rb +2 -0
- data/lib/sts/niso_sts/sec_meta.rb +26 -0
- data/lib/sts/niso_sts/secretariat.rb +2 -0
- data/lib/sts/niso_sts/section.rb +8 -0
- data/lib/sts/niso_sts/see_also_entry.rb +26 -0
- data/lib/sts/niso_sts/see_entry.rb +26 -0
- data/lib/sts/niso_sts/self_uri.rb +2 -0
- data/lib/sts/niso_sts/series.rb +2 -0
- data/lib/sts/niso_sts/series_text.rb +2 -0
- data/lib/sts/niso_sts/series_title.rb +2 -0
- data/lib/sts/niso_sts/sig.rb +2 -0
- data/lib/sts/niso_sts/size.rb +2 -0
- data/lib/sts/niso_sts/source.rb +29 -0
- data/lib/sts/niso_sts/speaker.rb +2 -0
- data/lib/sts/niso_sts/standard_identification.rb +3 -1
- data/lib/sts/niso_sts/state.rb +2 -0
- data/lib/sts/niso_sts/std_doc_meta.rb +49 -11
- data/lib/sts/niso_sts/std_id.rb +2 -0
- data/lib/sts/niso_sts/std_id_group.rb +3 -0
- data/lib/sts/niso_sts/std_org.rb +2 -2
- data/lib/sts/niso_sts/std_org_abbrev.rb +2 -0
- data/lib/sts/niso_sts/std_org_group.rb +3 -0
- data/lib/sts/niso_sts/std_org_name.rb +2 -0
- data/lib/sts/niso_sts/std_organization.rb +2 -0
- data/lib/sts/niso_sts/string_conf.rb +2 -0
- data/lib/sts/niso_sts/string_date.rb +2 -0
- data/lib/sts/niso_sts/string_name.rb +2 -0
- data/lib/sts/niso_sts/styled_content.rb +2 -0
- data/lib/sts/niso_sts/subj_group.rb +11 -1
- data/lib/sts/niso_sts/subtitle.rb +2 -0
- data/lib/sts/niso_sts/suffix.rb +2 -0
- data/lib/sts/niso_sts/suppl_number.rb +2 -0
- data/lib/sts/niso_sts/suppl_type.rb +2 -0
- data/lib/sts/niso_sts/suppl_version.rb +2 -0
- data/lib/sts/niso_sts/surname.rb +2 -0
- data/lib/sts/niso_sts/table_count.rb +2 -0
- data/lib/sts/niso_sts/table_wrap_group.rb +32 -0
- data/lib/sts/niso_sts/term_display.rb +22 -1
- data/lib/sts/niso_sts/term_display_string.rb +22 -0
- data/lib/sts/niso_sts/term_head.rb +2 -0
- data/lib/sts/niso_sts/term_source.rb +2 -0
- data/lib/sts/niso_sts/tex_math.rb +2 -0
- data/lib/sts/niso_sts/textual_form.rb +2 -0
- data/lib/sts/niso_sts/time_stamp.rb +2 -0
- data/lib/sts/niso_sts/title.rb +6 -0
- data/lib/sts/niso_sts/title_wrap.rb +2 -0
- data/lib/sts/niso_sts/toc.rb +32 -0
- data/lib/sts/niso_sts/toc_div.rb +30 -0
- data/lib/sts/niso_sts/toc_entry.rb +30 -0
- data/lib/sts/niso_sts/toc_title_group.rb +22 -0
- data/lib/sts/niso_sts/trans_source.rb +2 -0
- data/lib/sts/niso_sts/trans_title.rb +2 -0
- data/lib/sts/niso_sts/trans_title_group.rb +3 -0
- data/lib/sts/niso_sts/uri.rb +2 -0
- data/lib/sts/niso_sts/urn.rb +2 -0
- data/lib/sts/niso_sts/verse_line.rb +2 -0
- data/lib/sts/niso_sts/version.rb +2 -0
- data/lib/sts/niso_sts/volume.rb +2 -0
- data/lib/sts/niso_sts/volume_id.rb +2 -0
- data/lib/sts/niso_sts/volume_issue_group.rb +2 -0
- data/lib/sts/niso_sts/volume_series.rb +2 -0
- data/lib/sts/niso_sts/word_count.rb +2 -0
- data/lib/sts/niso_sts/year.rb +2 -0
- data/lib/sts/niso_sts.rb +35 -10
- data/lib/sts/profiles/iso_iec/constraints.rb +43 -0
- data/lib/sts/profiles/iso_iec/validator.rb +73 -0
- data/lib/sts/profiles/iso_iec.rb +10 -0
- data/lib/sts/profiles.rb +7 -0
- data/lib/sts/tbx_iso_tml/bold.rb +2 -0
- data/lib/sts/tbx_iso_tml/caption.rb +3 -0
- data/lib/sts/tbx_iso_tml/cross_reference.rb +2 -0
- data/lib/sts/tbx_iso_tml/definition.rb +2 -0
- data/lib/sts/tbx_iso_tml/entailed_term.rb +2 -0
- data/lib/sts/tbx_iso_tml/example.rb +0 -2
- data/lib/sts/tbx_iso_tml/external_graphic.rb +2 -0
- data/lib/sts/tbx_iso_tml/external_source.rb +2 -0
- data/lib/sts/tbx_iso_tml/fn_group.rb +3 -0
- data/lib/sts/tbx_iso_tml/geographical_usage.rb +3 -0
- data/lib/sts/tbx_iso_tml/grammatical_gender.rb +2 -0
- data/lib/sts/tbx_iso_tml/grammatical_number.rb +2 -0
- data/lib/sts/tbx_iso_tml/italic.rb +2 -0
- data/lib/sts/tbx_iso_tml/lang_set.rb +2 -0
- data/lib/sts/tbx_iso_tml/mfenced.rb +2 -0
- data/lib/sts/tbx_iso_tml/mfrac.rb +2 -2
- data/lib/sts/tbx_iso_tml/mi.rb +3 -2
- data/lib/sts/tbx_iso_tml/mrow.rb +2 -2
- data/lib/sts/tbx_iso_tml/mspace.rb +2 -0
- data/lib/sts/tbx_iso_tml/mstyle.rb +2 -2
- data/lib/sts/tbx_iso_tml/msub.rb +2 -0
- data/lib/sts/tbx_iso_tml/msup.rb +2 -0
- data/lib/sts/tbx_iso_tml/munder.rb +3 -0
- data/lib/sts/tbx_iso_tml/munderover.rb +2 -0
- data/lib/sts/tbx_iso_tml/normative_authorization.rb +2 -0
- data/lib/sts/tbx_iso_tml/part_of_speech.rb +2 -0
- data/lib/sts/tbx_iso_tml/pronunciation.rb +3 -0
- data/lib/sts/tbx_iso_tml/see.rb +2 -0
- data/lib/sts/tbx_iso_tml/semantics.rb +2 -0
- data/lib/sts/tbx_iso_tml/source.rb +2 -0
- data/lib/sts/tbx_iso_tml/subject_field.rb +2 -0
- data/lib/sts/tbx_iso_tml/sup.rb +3 -2
- data/lib/sts/tbx_iso_tml/table_wrap.rb +0 -1
- data/lib/sts/tbx_iso_tml/table_wrap_foot.rb +2 -0
- data/lib/sts/tbx_iso_tml/td.rb +115 -24
- data/lib/sts/tbx_iso_tml/term_type.rb +2 -0
- data/lib/sts/tbx_iso_tml/th.rb +124 -30
- data/lib/sts/tbx_iso_tml/xref.rb +2 -2
- data/lib/sts/version.rb +1 -1
- data/lib/sts.rb +1 -10
- data/reference-docs/Guidelines for coding ed.2.1.pdf +0 -0
- data/reference-docs/NISO-STS-1-2-compare-1-0.pdf +0 -0
- data/reference-docs/NISOSTS-guidelines-v1.0.pdf +0 -0
- metadata +72 -15
- data/lib/sts/content_groups/helpers.rb +0 -27
- data/lib/sts/enum_values.rb +0 -17
- data/lib/sts/iso_sts/content_groups/highlight_elements.rb +0 -285
- data/lib/sts/niso_sts/content_groups/body_elements.rb +0 -50
- data/lib/sts/niso_sts/content_groups/citation_elements.rb +0 -74
- data/lib/sts/niso_sts/content_groups/emphasized_text.rb +0 -67
- data/lib/sts/niso_sts/content_groups/highlight_elements.rb +0 -51
- data/lib/sts/niso_sts/content_groups/inside_cell.rb +0 -116
- data/lib/sts/niso_sts/content_groups/p_elements.rb +0 -41
- data/lib/sts/niso_sts/content_groups/para_level.rb +0 -67
- data/lib/sts/niso_sts/content_groups/styled_content_elements.rb +0 -93
- data/lib/sts/niso_sts/content_groups/table_group_attributes.rb +0 -62
- data/lib/sts/niso_sts/content_groups.rb +0 -8
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class NatMeta < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :title_wrap, ::Sts::NisoSts::TitleWrap, collection: true
|
|
7
8
|
attribute :std_ident, ::Sts::NisoSts::StandardIdentification
|
|
8
9
|
attribute :doc_ident, ::Sts::NisoSts::DocumentIdentification
|
|
@@ -14,14 +15,15 @@ module Sts
|
|
|
14
15
|
attribute :comm_ref, :string
|
|
15
16
|
attribute :secretariat, :string
|
|
16
17
|
attribute :ics, :string
|
|
17
|
-
attribute :std_xref, ::Sts::NisoSts::StdCrossReference
|
|
18
|
-
attribute :permissions, ::Sts::NisoSts::Permissions
|
|
18
|
+
attribute :std_xref, ::Sts::NisoSts::StdCrossReference, collection: true
|
|
19
|
+
attribute :permissions, ::Sts::NisoSts::Permissions, collection: true
|
|
19
20
|
attribute :meta_note, ::Sts::NisoSts::MetaNote, collection: true
|
|
20
21
|
attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup,
|
|
21
22
|
collection: true
|
|
22
23
|
|
|
23
24
|
xml do
|
|
24
25
|
element "nat-meta"
|
|
26
|
+
map_attribute "id", to: :id
|
|
25
27
|
ordered
|
|
26
28
|
|
|
27
29
|
map_element "title-wrap", to: :title_wrap
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class NestedKwd < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :kwd, ::Sts::NisoSts::Kwd
|
|
7
8
|
attribute :kwd_group, ::Sts::NisoSts::KwdGroup, collection: true
|
|
8
9
|
attribute :nested_kwd, ::Sts::NisoSts::NestedKwd, collection: true
|
|
9
10
|
|
|
10
11
|
xml do
|
|
11
12
|
element "nested-kwd"
|
|
13
|
+
map_attribute "id", to: :id
|
|
12
14
|
ordered
|
|
13
15
|
|
|
14
16
|
map_element "kwd", to: :kwd
|
|
@@ -5,6 +5,7 @@ module Sts
|
|
|
5
5
|
class NonNormativeNote < Lutaml::Model::Serializable
|
|
6
6
|
attribute :id, :string
|
|
7
7
|
attribute :content_type, :string
|
|
8
|
+
attribute :originator, :string
|
|
8
9
|
attribute :p, ::Sts::NisoSts::Paragraph, collection: true
|
|
9
10
|
attribute :label, ::Sts::NisoSts::Label
|
|
10
11
|
attribute :list, ::Sts::NisoSts::List, collection: true
|
|
@@ -19,6 +20,7 @@ module Sts
|
|
|
19
20
|
|
|
20
21
|
map_attribute "content-type", to: :content_type
|
|
21
22
|
map_attribute "id", to: :id
|
|
23
|
+
map_attribute "originator", to: :originator
|
|
22
24
|
|
|
23
25
|
map_element "p", to: :p
|
|
24
26
|
map_element "label", to: :label
|
|
@@ -7,8 +7,11 @@ module Sts
|
|
|
7
7
|
attribute :xml_lang, :string
|
|
8
8
|
attribute :specific_use, :string
|
|
9
9
|
attribute :symbol, :string
|
|
10
|
-
attribute :p, ::Sts::NisoSts::Paragraph
|
|
10
|
+
attribute :p, ::Sts::NisoSts::Paragraph, collection: true
|
|
11
11
|
attribute :label, ::Sts::NisoSts::Label
|
|
12
|
+
attribute :list, ::Sts::NisoSts::List, collection: true
|
|
13
|
+
attribute :non_normative_example, ::Sts::NisoSts::NonNormativeExample,
|
|
14
|
+
collection: true
|
|
12
15
|
|
|
13
16
|
xml do
|
|
14
17
|
element "normative-example"
|
|
@@ -21,6 +24,8 @@ module Sts
|
|
|
21
24
|
|
|
22
25
|
map_element "p", to: :p
|
|
23
26
|
map_element "label", to: :label
|
|
27
|
+
map_element "list", to: :list
|
|
28
|
+
map_element "non-normative-example", to: :non_normative_example
|
|
24
29
|
end
|
|
25
30
|
end
|
|
26
31
|
end
|
|
@@ -5,11 +5,15 @@ module Sts
|
|
|
5
5
|
class NormativeNote < Lutaml::Model::Serializable
|
|
6
6
|
attribute :id, :string
|
|
7
7
|
attribute :content_type, :string
|
|
8
|
+
attribute :originator, :string
|
|
8
9
|
attribute :xml_lang, :string
|
|
9
10
|
attribute :specific_use, :string
|
|
10
11
|
attribute :symbol, :string
|
|
11
|
-
attribute :p, ::Sts::NisoSts::Paragraph
|
|
12
|
+
attribute :p, ::Sts::NisoSts::Paragraph, collection: true
|
|
12
13
|
attribute :label, ::Sts::NisoSts::Label
|
|
14
|
+
attribute :list, ::Sts::NisoSts::List, collection: true
|
|
15
|
+
attribute :non_normative_example, ::Sts::NisoSts::NonNormativeExample,
|
|
16
|
+
collection: true
|
|
13
17
|
|
|
14
18
|
xml do
|
|
15
19
|
element "normative-note"
|
|
@@ -17,12 +21,15 @@ module Sts
|
|
|
17
21
|
|
|
18
22
|
map_attribute "id", to: :id
|
|
19
23
|
map_attribute "content-type", to: :content_type
|
|
24
|
+
map_attribute "originator", to: :originator
|
|
20
25
|
map_attribute "xml:lang", to: :xml_lang
|
|
21
26
|
map_attribute "specific-use", to: :specific_use
|
|
22
27
|
map_attribute "symbol", to: :symbol
|
|
23
28
|
|
|
24
29
|
map_element "p", to: :p
|
|
25
30
|
map_element "label", to: :label
|
|
31
|
+
map_element "list", to: :list
|
|
32
|
+
map_element "non-normative-example", to: :non_normative_example
|
|
26
33
|
end
|
|
27
34
|
end
|
|
28
35
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
# rubocop:disable Layout/LineLength
|
|
2
4
|
# <object-id pub-id-type="fpi">+//ISO 9070/RA::A00007::GE::DIN German Institute for
|
|
3
5
|
# Standardization::Standards//NONSGML ISO 13849-1:2006-11-00::Figure 1//EN</object-id>
|
|
@@ -7,12 +9,14 @@
|
|
|
7
9
|
module Sts
|
|
8
10
|
module NisoSts
|
|
9
11
|
class ObjectId < Lutaml::Model::Serializable
|
|
12
|
+
attribute :id, :string
|
|
10
13
|
attribute :pub_id_type, :string
|
|
11
14
|
attribute :content, :string
|
|
12
15
|
|
|
13
16
|
xml do
|
|
14
17
|
element "object-id"
|
|
15
18
|
|
|
19
|
+
map_attribute "id", to: :id
|
|
16
20
|
map_attribute "pub-id-type", to: :pub_id_type
|
|
17
21
|
map_content to: :content
|
|
18
22
|
end
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class OnBehalfOf < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
9
|
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
10
|
|
|
10
11
|
xml do
|
|
11
12
|
element "on-behalf-of"
|
|
13
|
+
map_attribute "id", to: :id
|
|
12
14
|
mixed_content
|
|
13
15
|
|
|
14
16
|
map_content to: :content
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class Originator < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
xml do
|
|
8
9
|
element "originator"
|
|
10
|
+
map_attribute "id", to: :id
|
|
9
11
|
mixed_content
|
|
10
12
|
|
|
11
13
|
map_content to: :content
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class PageRange < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
9
|
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
10
|
|
|
10
11
|
xml do
|
|
11
12
|
element "page-range"
|
|
13
|
+
map_attribute "id", to: :id
|
|
12
14
|
mixed_content
|
|
13
15
|
|
|
14
16
|
map_content to: :content
|
|
@@ -4,6 +4,7 @@ module Sts
|
|
|
4
4
|
module NisoSts
|
|
5
5
|
class Paragraph < Lutaml::Model::Serializable
|
|
6
6
|
attribute :id, :string
|
|
7
|
+
attribute :originator, :string
|
|
7
8
|
attribute :style_type, :string
|
|
8
9
|
attribute :specific_use, :string
|
|
9
10
|
attribute :text, :string, collection: true
|
|
@@ -40,6 +41,7 @@ module Sts
|
|
|
40
41
|
mixed_content
|
|
41
42
|
|
|
42
43
|
map_attribute "id", to: :id
|
|
44
|
+
map_attribute "originator", to: :originator
|
|
43
45
|
map_attribute "style-type", to: :style_type
|
|
44
46
|
map_attribute "specific-use", to: :specific_use
|
|
45
47
|
map_content to: :text
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class PartNumber < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
xml do
|
|
8
9
|
element "part-number"
|
|
10
|
+
map_attribute "id", to: :id
|
|
9
11
|
mixed_content
|
|
10
12
|
|
|
11
13
|
map_content to: :content
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class PartOfSpeech < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
xml do
|
|
8
9
|
element "part-of-speech"
|
|
10
|
+
map_attribute "id", to: :id
|
|
9
11
|
mixed_content
|
|
10
12
|
|
|
11
13
|
map_content to: :content
|
data/lib/sts/niso_sts/patent.rb
CHANGED
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class Patent < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
9
|
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
10
|
|
|
10
11
|
xml do
|
|
11
12
|
element "patent"
|
|
13
|
+
map_attribute "id", to: :id
|
|
12
14
|
mixed_content
|
|
13
15
|
|
|
14
16
|
map_content to: :content
|
|
@@ -3,16 +3,21 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class Permissions < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :copyright_statement, :string
|
|
7
8
|
attribute :copyright_year, :string
|
|
8
|
-
attribute :copyright_holder, :string
|
|
9
|
+
attribute :copyright_holder, :string, collection: true
|
|
10
|
+
attribute :license, ::Sts::NisoSts::License, collection: true
|
|
9
11
|
|
|
10
12
|
xml do
|
|
11
13
|
element "permissions"
|
|
14
|
+
map_attribute "id", to: :id
|
|
12
15
|
ordered
|
|
16
|
+
|
|
13
17
|
map_element "copyright-statement", to: :copyright_statement
|
|
14
18
|
map_element "copyright-year", to: :copyright_year
|
|
15
19
|
map_element "copyright-holder", to: :copyright_holder
|
|
20
|
+
map_element "license", to: :license
|
|
16
21
|
end
|
|
17
22
|
end
|
|
18
23
|
end
|
data/lib/sts/niso_sts/phone.rb
CHANGED
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class Phone < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
9
|
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
10
|
|
|
10
11
|
xml do
|
|
11
12
|
element "phone"
|
|
13
|
+
map_attribute "id", to: :id
|
|
12
14
|
mixed_content
|
|
13
15
|
|
|
14
16
|
map_content to: :content
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class PostalCode < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
9
|
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
10
|
|
|
10
11
|
xml do
|
|
11
12
|
element "postal-code"
|
|
13
|
+
map_attribute "id", to: :id
|
|
12
14
|
mixed_content
|
|
13
15
|
|
|
14
16
|
map_content to: :content
|
data/lib/sts/niso_sts/prefix.rb
CHANGED
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class Prefix < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
9
|
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
10
|
|
|
10
11
|
xml do
|
|
11
12
|
element "prefix"
|
|
13
|
+
map_attribute "id", to: :id
|
|
12
14
|
mixed_content
|
|
13
15
|
|
|
14
16
|
map_content to: :content
|
data/lib/sts/niso_sts/price.rb
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class PrincipalAwardRecipient < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
xml do
|
|
8
9
|
element "principal-award-recipient"
|
|
10
|
+
map_attribute "id", to: :id
|
|
9
11
|
mixed_content
|
|
10
12
|
|
|
11
13
|
map_content to: :content
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class PrincipalInvestigator < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
xml do
|
|
8
9
|
element "principal-investigator"
|
|
10
|
+
map_attribute "id", to: :id
|
|
9
11
|
mixed_content
|
|
10
12
|
|
|
11
13
|
map_content to: :content
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class PrivateChar < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :description, :string
|
|
7
8
|
attribute :name, :string
|
|
8
9
|
attribute :specific_use, :string
|
|
9
10
|
xml do
|
|
10
11
|
element "private-char"
|
|
12
|
+
map_attribute "id", to: :id
|
|
11
13
|
ordered
|
|
12
14
|
|
|
13
15
|
map_attribute "description", to: :description
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sts
|
|
4
|
+
module NisoSts
|
|
5
|
+
class RestrictedBy < Lutaml::Model::Serializable
|
|
6
|
+
attribute :content, :string, collection: true
|
|
7
|
+
|
|
8
|
+
xml do
|
|
9
|
+
element "restricted-by"
|
|
10
|
+
mixed_content
|
|
11
|
+
map_content to: :content
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
class ExtendedBy < Lutaml::Model::Serializable
|
|
16
|
+
attribute :content, :string, collection: true
|
|
17
|
+
|
|
18
|
+
xml do
|
|
19
|
+
element "extended-by"
|
|
20
|
+
mixed_content
|
|
21
|
+
map_content to: :content
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
class ProcessingMeta < Lutaml::Model::Serializable
|
|
26
|
+
attribute :id, :string
|
|
27
|
+
attribute :tagset_family, :string
|
|
28
|
+
attribute :base_tagset, :string
|
|
29
|
+
attribute :table_model, :string
|
|
30
|
+
attribute :math_representation, :string
|
|
31
|
+
attribute :mathml_version, :string
|
|
32
|
+
attribute :terminology_model, :string
|
|
33
|
+
attribute :restricted_by, ::Sts::NisoSts::RestrictedBy,
|
|
34
|
+
collection: true
|
|
35
|
+
attribute :extended_by, ::Sts::NisoSts::ExtendedBy, collection: true
|
|
36
|
+
attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup
|
|
37
|
+
|
|
38
|
+
xml do
|
|
39
|
+
element "processing-meta"
|
|
40
|
+
|
|
41
|
+
map_attribute "id", to: :id
|
|
42
|
+
map_attribute "tagset-family", to: :tagset_family
|
|
43
|
+
map_attribute "base-tagset", to: :base_tagset
|
|
44
|
+
map_attribute "table-model", to: :table_model
|
|
45
|
+
map_attribute "math-representation", to: :math_representation
|
|
46
|
+
map_attribute "mathml-version", to: :mathml_version
|
|
47
|
+
map_attribute "terminology-model", to: :terminology_model
|
|
48
|
+
map_element "restricted-by", to: :restricted_by
|
|
49
|
+
map_element "extended-by", to: :extended_by
|
|
50
|
+
map_element "custom-meta-group", to: :custom_meta_group
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
data/lib/sts/niso_sts/product.rb
CHANGED
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class Product < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :product_type, :string
|
|
7
8
|
attribute :xlink_href, :string
|
|
8
9
|
attribute :content, :string, collection: true
|
|
9
10
|
xml do
|
|
10
11
|
element "product"
|
|
12
|
+
map_attribute "id", to: :id
|
|
11
13
|
mixed_content
|
|
12
14
|
|
|
13
15
|
map_attribute "product-type", to: :product_type
|
data/lib/sts/niso_sts/proj_id.rb
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class PubDate < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :day, :string
|
|
7
8
|
attribute :month, :string
|
|
8
9
|
attribute :year, :string
|
|
@@ -16,6 +17,7 @@ module Sts
|
|
|
16
17
|
xml do
|
|
17
18
|
element "pub-date"
|
|
18
19
|
|
|
20
|
+
map_attribute "id", to: :id
|
|
19
21
|
map_attribute "date-type", to: :date_type
|
|
20
22
|
map_content to: :content
|
|
21
23
|
map_attribute "iso-8601-date", to: :iso_8601_date
|
data/lib/sts/niso_sts/pub_id.rb
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class PubId < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :pub_id_type, :string
|
|
7
8
|
attribute :assigning_authority, :string
|
|
8
9
|
attribute :content, :string
|
|
@@ -10,6 +11,7 @@ module Sts
|
|
|
10
11
|
xml do
|
|
11
12
|
element "pub-id"
|
|
12
13
|
|
|
14
|
+
map_attribute "id", to: :id
|
|
13
15
|
map_attribute "pub-id-type", to: :pub_id_type
|
|
14
16
|
map_attribute "assigning-authority", to: :assigning_authority
|
|
15
17
|
map_content to: :content
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class Publisher < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :publisher_name, ::Sts::NisoSts::PublisherName, collection: true
|
|
7
8
|
attribute :publisher_loc, ::Sts::NisoSts::PublisherLoc, collection: true
|
|
8
9
|
|
|
9
10
|
xml do
|
|
10
11
|
element "publisher"
|
|
12
|
+
map_attribute "id", to: :id
|
|
11
13
|
ordered
|
|
12
14
|
|
|
13
15
|
map_element "publisher-name", to: :publisher_name
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class PublisherLoc < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
9
|
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
10
|
|
|
10
11
|
xml do
|
|
11
12
|
element "publisher-loc"
|
|
13
|
+
map_attribute "id", to: :id
|
|
12
14
|
mixed_content
|
|
13
15
|
|
|
14
16
|
map_content to: :content
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class PublisherName < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
|
|
8
9
|
attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
|
|
9
10
|
|
|
10
11
|
xml do
|
|
11
12
|
element "publisher-name"
|
|
13
|
+
map_attribute "id", to: :id
|
|
12
14
|
mixed_content
|
|
13
15
|
|
|
14
16
|
map_content to: :content
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require "lutaml/model"
|
|
4
|
-
|
|
5
3
|
module Sts
|
|
6
4
|
module NisoSts
|
|
7
5
|
class ReferenceStandard < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
8
7
|
attribute :type, :string
|
|
9
8
|
attribute :std_id, :string
|
|
10
9
|
attribute :content, :string, collection: true
|
|
11
|
-
attribute :std_ref, ::Sts::NisoSts::StandardRef
|
|
10
|
+
attribute :std_ref, ::Sts::NisoSts::StandardRef, collection: true
|
|
12
11
|
attribute :title, :string
|
|
13
12
|
attribute :fn, ::Sts::NisoSts::Fn, collection: true
|
|
14
13
|
attribute :std_id_group, ::Sts::NisoSts::StdIdGroup, collection: true
|
|
@@ -19,6 +18,7 @@ module Sts
|
|
|
19
18
|
element "std"
|
|
20
19
|
mixed_content
|
|
21
20
|
|
|
21
|
+
map_attribute "id", to: :id
|
|
22
22
|
map_attribute "type", to: :type
|
|
23
23
|
map_attribute "std-id", to: :std_id
|
|
24
24
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class RegMeta < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :title_wrap, ::Sts::NisoSts::TitleWrap, collection: true
|
|
7
8
|
attribute :std_ident, ::Sts::NisoSts::StandardIdentification
|
|
8
9
|
attribute :doc_ident, ::Sts::NisoSts::DocumentIdentification
|
|
@@ -14,14 +15,15 @@ module Sts
|
|
|
14
15
|
attribute :comm_ref, :string
|
|
15
16
|
attribute :secretariat, :string
|
|
16
17
|
attribute :ics, :string
|
|
17
|
-
attribute :std_xref, ::Sts::NisoSts::StdCrossReference
|
|
18
|
-
attribute :permissions, ::Sts::NisoSts::Permissions
|
|
18
|
+
attribute :std_xref, ::Sts::NisoSts::StdCrossReference, collection: true
|
|
19
|
+
attribute :permissions, ::Sts::NisoSts::Permissions, collection: true
|
|
19
20
|
attribute :meta_note, ::Sts::NisoSts::MetaNote, collection: true
|
|
20
21
|
attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup,
|
|
21
22
|
collection: true
|
|
22
23
|
|
|
23
24
|
xml do
|
|
24
25
|
element "reg-meta"
|
|
26
|
+
map_attribute "id", to: :id
|
|
25
27
|
ordered
|
|
26
28
|
|
|
27
29
|
map_element "title-wrap", to: :title_wrap
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class RelatedTerm < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :related_term_type, :string
|
|
7
8
|
attribute :content, :string, collection: true
|
|
8
9
|
xml do
|
|
9
10
|
element "related-term"
|
|
11
|
+
map_attribute "id", to: :id
|
|
10
12
|
mixed_content
|
|
11
13
|
|
|
12
14
|
map_attribute "related-term-type", to: :related_term_type
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class ReleaseDate < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
attribute :date_type, :string
|
|
8
9
|
attribute :iso_8601_date, :string
|
|
@@ -10,6 +11,7 @@ module Sts
|
|
|
10
11
|
|
|
11
12
|
xml do
|
|
12
13
|
element "release-date"
|
|
14
|
+
map_attribute "id", to: :id
|
|
13
15
|
mixed_content
|
|
14
16
|
|
|
15
17
|
map_content to: :content
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
module Sts
|
|
4
4
|
module NisoSts
|
|
5
5
|
class ReleaseVersion < Lutaml::Model::Serializable
|
|
6
|
+
attribute :id, :string
|
|
6
7
|
attribute :content, :string, collection: true
|
|
7
8
|
xml do
|
|
8
9
|
element "release-version"
|
|
10
|
+
map_attribute "id", to: :id
|
|
9
11
|
mixed_content
|
|
10
12
|
|
|
11
13
|
map_content to: :content
|