niso-jats 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/rake.yml +18 -0
- data/.github/workflows/release.yml +25 -0
- data/.gitignore +13 -0
- data/.gitmodules +3 -0
- data/.rspec +3 -0
- data/.rubocop.yml +21 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +14 -0
- data/README.adoc +73 -0
- data/Rakefile +12 -0
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/lib/niso/jats/abbrev.rb +29 -0
- data/lib/niso/jats/abbrev_journal_title.rb +23 -0
- data/lib/niso/jats/abstract.rb +31 -0
- data/lib/niso/jats/access_date.rb +25 -0
- data/lib/niso/jats/ack.rb +39 -0
- data/lib/niso/jats/addr_line.rb +91 -0
- data/lib/niso/jats/address.rb +45 -0
- data/lib/niso/jats/aff.rb +93 -0
- data/lib/niso/jats/aff_alternatives.rb +17 -0
- data/lib/niso/jats/alt_text.rb +23 -0
- data/lib/niso/jats/alt_title.rb +65 -0
- data/lib/niso/jats/alternatives.rb +49 -0
- data/lib/niso/jats/annotation.rb +23 -0
- data/lib/niso/jats/anonymous.rb +19 -0
- data/lib/niso/jats/answer.rb +109 -0
- data/lib/niso/jats/answer_set.rb +37 -0
- data/lib/niso/jats/app.rb +105 -0
- data/lib/niso/jats/app_group.rb +105 -0
- data/lib/niso/jats/array.rb +45 -0
- data/lib/niso/jats/article.rb +37 -0
- data/lib/niso/jats/article_categories.rb +21 -0
- data/lib/niso/jats/article_id.rb +25 -0
- data/lib/niso/jats/article_meta.rb +108 -0
- data/lib/niso/jats/article_title.rb +61 -0
- data/lib/niso/jats/article_version.rb +39 -0
- data/lib/niso/jats/article_version_alternatives.rb +17 -0
- data/lib/niso/jats/attrib.rb +61 -0
- data/lib/niso/jats/author_comment.rb +25 -0
- data/lib/niso/jats/author_notes.rb +29 -0
- data/lib/niso/jats/award_desc.rb +21 -0
- data/lib/niso/jats/award_group.rb +40 -0
- data/lib/niso/jats/award_id.rb +83 -0
- data/lib/niso/jats/award_name.rb +21 -0
- data/lib/niso/jats/back.rb +35 -0
- data/lib/niso/jats/basic_text.rb +48 -0
- data/lib/niso/jats/bio.rb +107 -0
- data/lib/niso/jats/block_alternatives.rb +27 -0
- data/lib/niso/jats/body.rb +89 -0
- data/lib/niso/jats/bold.rb +61 -0
- data/lib/niso/jats/boxed_text.rb +113 -0
- data/lib/niso/jats/break.rb +15 -0
- data/lib/niso/jats/caption.rb +27 -0
- data/lib/niso/jats/chapter_title.rb +81 -0
- data/lib/niso/jats/chem_struct.rb +95 -0
- data/lib/niso/jats/chem_struct_wrap.rb +65 -0
- data/lib/niso/jats/citation_alternatives.rb +23 -0
- data/lib/niso/jats/city.rb +23 -0
- data/lib/niso/jats/code.rb +95 -0
- data/lib/niso/jats/col.rb +31 -0
- data/lib/niso/jats/colgroup.rb +33 -0
- data/lib/niso/jats/collab.rb +123 -0
- data/lib/niso/jats/collab_alternatives.rb +17 -0
- data/lib/niso/jats/comment.rb +63 -0
- data/lib/niso/jats/compound_kwd.rb +29 -0
- data/lib/niso/jats/compound_kwd_part.rb +67 -0
- data/lib/niso/jats/compound_subject.rb +29 -0
- data/lib/niso/jats/compound_subject_part.rb +61 -0
- data/lib/niso/jats/conf_acronym.rb +23 -0
- data/lib/niso/jats/conf_date.rb +27 -0
- data/lib/niso/jats/conf_loc.rb +41 -0
- data/lib/niso/jats/conf_name.rb +23 -0
- data/lib/niso/jats/conf_num.rb +23 -0
- data/lib/niso/jats/conf_sponsor.rb +27 -0
- data/lib/niso/jats/conf_theme.rb +75 -0
- data/lib/niso/jats/conference.rb +37 -0
- data/lib/niso/jats/contrib.rb +67 -0
- data/lib/niso/jats/contrib_group.rb +43 -0
- data/lib/niso/jats/contrib_id.rb +29 -0
- data/lib/niso/jats/contributed_resource_group.rb +27 -0
- data/lib/niso/jats/copyright_holder.rb +31 -0
- data/lib/niso/jats/copyright_statement.rb +59 -0
- data/lib/niso/jats/copyright_year.rb +21 -0
- data/lib/niso/jats/corresp.rb +79 -0
- data/lib/niso/jats/count.rb +19 -0
- data/lib/niso/jats/country.rb +25 -0
- data/lib/niso/jats/counts.rb +29 -0
- data/lib/niso/jats/custom_meta.rb +35 -0
- data/lib/niso/jats/custom_meta_group.rb +23 -0
- data/lib/niso/jats/data_title.rb +65 -0
- data/lib/niso/jats/date.rb +35 -0
- data/lib/niso/jats/date_in_citation.rb +37 -0
- data/lib/niso/jats/day.rb +23 -0
- data/lib/niso/jats/def.rb +23 -0
- data/lib/niso/jats/def_head.rb +57 -0
- data/lib/niso/jats/def_item.rb +23 -0
- data/lib/niso/jats/def_list.rb +39 -0
- data/lib/niso/jats/degrees.rb +23 -0
- data/lib/niso/jats/disp_formula.rb +103 -0
- data/lib/niso/jats/disp_formula_group.rb +47 -0
- data/lib/niso/jats/disp_quote.rb +97 -0
- data/lib/niso/jats/edition.rb +29 -0
- data/lib/niso/jats/element_citation.rb +203 -0
- data/lib/niso/jats/elocation_id.rb +23 -0
- data/lib/niso/jats/email.rb +25 -0
- data/lib/niso/jats/equation_count.rb +17 -0
- data/lib/niso/jats/era.rb +23 -0
- data/lib/niso/jats/etal.rb +21 -0
- data/lib/niso/jats/event.rb +48 -0
- data/lib/niso/jats/event_desc.rb +49 -0
- data/lib/niso/jats/explanation.rb +107 -0
- data/lib/niso/jats/ext_link.rb +59 -0
- data/lib/niso/jats/extended_by.rb +31 -0
- data/lib/niso/jats/fax.rb +21 -0
- data/lib/niso/jats/fig.rb +87 -0
- data/lib/niso/jats/fig_count.rb +17 -0
- data/lib/niso/jats/fig_group.rb +59 -0
- data/lib/niso/jats/fixed_case.rb +61 -0
- data/lib/niso/jats/floats_group.rb +41 -0
- data/lib/niso/jats/fn.rb +32 -0
- data/lib/niso/jats/fn_group.rb +27 -0
- data/lib/niso/jats/fpage.rb +25 -0
- data/lib/niso/jats/front.rb +21 -0
- data/lib/niso/jats/front_stub.rb +108 -0
- data/lib/niso/jats/funding_group.rb +25 -0
- data/lib/niso/jats/funding_source.rb +85 -0
- data/lib/niso/jats/funding_statement.rb +59 -0
- data/lib/niso/jats/given_names.rb +19 -0
- data/lib/niso/jats/glossary.rb +97 -0
- data/lib/niso/jats/glyph_data.rb +29 -0
- data/lib/niso/jats/glyph_ref.rb +17 -0
- data/lib/niso/jats/gov.rb +53 -0
- data/lib/niso/jats/graphic.rb +61 -0
- data/lib/niso/jats/history.rb +17 -0
- data/lib/niso/jats/hr.rb +15 -0
- data/lib/niso/jats/index_term.rb +39 -0
- data/lib/niso/jats/index_term_range_end.rb +17 -0
- data/lib/niso/jats/inline_formula.rb +73 -0
- data/lib/niso/jats/inline_graphic.rb +33 -0
- data/lib/niso/jats/inline_media.rb +77 -0
- data/lib/niso/jats/inline_supplementary_material.rb +69 -0
- data/lib/niso/jats/institution.rb +31 -0
- data/lib/niso/jats/institution_id.rb +31 -0
- data/lib/niso/jats/institution_wrap.rb +19 -0
- data/lib/niso/jats/isbn.rb +25 -0
- data/lib/niso/jats/issn.rb +27 -0
- data/lib/niso/jats/issn_l.rb +21 -0
- data/lib/niso/jats/issue.rb +25 -0
- data/lib/niso/jats/issue_id.rb +29 -0
- data/lib/niso/jats/issue_part.rb +23 -0
- data/lib/niso/jats/issue_sponsor.rb +23 -0
- data/lib/niso/jats/issue_subtitle.rb +23 -0
- data/lib/niso/jats/issue_title.rb +23 -0
- data/lib/niso/jats/issue_title_group.rb +27 -0
- data/lib/niso/jats/italic.rb +61 -0
- data/lib/niso/jats/journal_id.rb +25 -0
- data/lib/niso/jats/journal_meta.rb +37 -0
- data/lib/niso/jats/journal_subtitle.rb +23 -0
- data/lib/niso/jats/journal_title.rb +23 -0
- data/lib/niso/jats/journal_title_group.rb +25 -0
- data/lib/niso/jats/kwd.rb +59 -0
- data/lib/niso/jats/kwd_group.rb +37 -0
- data/lib/niso/jats/label.rb +59 -0
- data/lib/niso/jats/license.rb +25 -0
- data/lib/niso/jats/license_p.rb +169 -0
- data/lib/niso/jats/license_paragraph.rb +17 -0
- data/lib/niso/jats/list.rb +35 -0
- data/lib/niso/jats/list_item.rb +29 -0
- data/lib/niso/jats/long_desc.rb +25 -0
- data/lib/niso/jats/lpage.rb +23 -0
- data/lib/niso/jats/media.rb +59 -0
- data/lib/niso/jats/meta_name.rb +17 -0
- data/lib/niso/jats/meta_value.rb +57 -0
- data/lib/niso/jats/milestone_end.rb +25 -0
- data/lib/niso/jats/milestone_start.rb +25 -0
- data/lib/niso/jats/mixed_citation.rb +205 -0
- data/lib/niso/jats/module_includer.rb +47 -0
- data/lib/niso/jats/monospace.rb +61 -0
- data/lib/niso/jats/month.rb +23 -0
- data/lib/niso/jats/name.rb +31 -0
- data/lib/niso/jats/name_alternatives.rb +19 -0
- data/lib/niso/jats/named_content.rb +169 -0
- data/lib/niso/jats/nested_kwd.rb +33 -0
- data/lib/niso/jats/nlm_citation.rb +85 -0
- data/lib/niso/jats/note.rb +27 -0
- data/lib/niso/jats/notes.rb +103 -0
- data/lib/niso/jats/object_id.rb +25 -0
- data/lib/niso/jats/on_behalf_of.rb +61 -0
- data/lib/niso/jats/open_access.rb +21 -0
- data/lib/niso/jats/option.rb +109 -0
- data/lib/niso/jats/overline.rb +61 -0
- data/lib/niso/jats/overline_end.rb +19 -0
- data/lib/niso/jats/overline_start.rb +17 -0
- data/lib/niso/jats/page_count.rb +17 -0
- data/lib/niso/jats/page_range.rb +23 -0
- data/lib/niso/jats/paragraph.rb +169 -0
- data/lib/niso/jats/part_title.rb +81 -0
- data/lib/niso/jats/patent.rb +25 -0
- data/lib/niso/jats/permissions.rb +23 -0
- data/lib/niso/jats/person_group.rb +45 -0
- data/lib/niso/jats/phone.rb +21 -0
- data/lib/niso/jats/postal_code.rb +23 -0
- data/lib/niso/jats/prefix.rb +23 -0
- data/lib/niso/jats/preformat.rb +81 -0
- data/lib/niso/jats/price.rb +47 -0
- data/lib/niso/jats/principal_award_recipient.rb +33 -0
- data/lib/niso/jats/principal_investigator.rb +29 -0
- data/lib/niso/jats/private_char.rb +27 -0
- data/lib/niso/jats/processing_meta.rb +31 -0
- data/lib/niso/jats/product.rb +215 -0
- data/lib/niso/jats/pub_date.rb +39 -0
- data/lib/niso/jats/pub_date_not_available.rb +17 -0
- data/lib/niso/jats/pub_history.rb +17 -0
- data/lib/niso/jats/pub_id.rb +27 -0
- data/lib/niso/jats/publisher.rb +21 -0
- data/lib/niso/jats/publisher_loc.rb +45 -0
- data/lib/niso/jats/publisher_name.rb +25 -0
- data/lib/niso/jats/question.rb +113 -0
- data/lib/niso/jats/question_preamble.rb +101 -0
- data/lib/niso/jats/question_wrap.rb +33 -0
- data/lib/niso/jats/question_wrap_group.rb +37 -0
- data/lib/niso/jats/rb.rb +43 -0
- data/lib/niso/jats/ref.rb +33 -0
- data/lib/niso/jats/ref_count.rb +17 -0
- data/lib/niso/jats/ref_list.rb +99 -0
- data/lib/niso/jats/related_article.rb +185 -0
- data/lib/niso/jats/related_object.rb +195 -0
- data/lib/niso/jats/resource_group.rb +23 -0
- data/lib/niso/jats/resource_id.rb +31 -0
- data/lib/niso/jats/resource_name.rb +49 -0
- data/lib/niso/jats/resource_wrap.rb +19 -0
- data/lib/niso/jats/response.rb +33 -0
- data/lib/niso/jats/restricted_by.rb +31 -0
- data/lib/niso/jats/role.rb +65 -0
- data/lib/niso/jats/roman.rb +61 -0
- data/lib/niso/jats/rp.rb +17 -0
- data/lib/niso/jats/rt.rb +23 -0
- data/lib/niso/jats/ruby.rb +23 -0
- data/lib/niso/jats/sans_serif.rb +97 -0
- data/lib/niso/jats/sc.rb +61 -0
- data/lib/niso/jats/season.rb +23 -0
- data/lib/niso/jats/sec.rb +103 -0
- data/lib/niso/jats/sec_meta.rb +27 -0
- data/lib/niso/jats/see.rb +79 -0
- data/lib/niso/jats/see_also.rb +87 -0
- data/lib/niso/jats/self_uri.rb +27 -0
- data/lib/niso/jats/series.rb +53 -0
- data/lib/niso/jats/series_text.rb +53 -0
- data/lib/niso/jats/series_title.rb +53 -0
- data/lib/niso/jats/sig.rb +67 -0
- data/lib/niso/jats/sig_block.rb +69 -0
- data/lib/niso/jats/size.rb +23 -0
- data/lib/niso/jats/source.rb +83 -0
- data/lib/niso/jats/speaker.rb +39 -0
- data/lib/niso/jats/speech.rb +27 -0
- data/lib/niso/jats/state.rb +23 -0
- data/lib/niso/jats/statement.rb +39 -0
- data/lib/niso/jats/std.rb +71 -0
- data/lib/niso/jats/std_organization.rb +31 -0
- data/lib/niso/jats/strike.rb +61 -0
- data/lib/niso/jats/string_conf.rb +91 -0
- data/lib/niso/jats/string_date.rb +37 -0
- data/lib/niso/jats/string_name.rb +35 -0
- data/lib/niso/jats/styled_content.rb +163 -0
- data/lib/niso/jats/sub.rb +61 -0
- data/lib/niso/jats/sub_article.rb +37 -0
- data/lib/niso/jats/subj_group.rb +33 -0
- data/lib/niso/jats/subject.rb +71 -0
- data/lib/niso/jats/subtitle.rb +65 -0
- data/lib/niso/jats/suffix.rb +23 -0
- data/lib/niso/jats/sup.rb +61 -0
- data/lib/niso/jats/supplement.rb +79 -0
- data/lib/niso/jats/supplementary_material.rb +93 -0
- data/lib/niso/jats/support_description.rb +23 -0
- data/lib/niso/jats/support_group.rb +25 -0
- data/lib/niso/jats/support_source.rb +85 -0
- data/lib/niso/jats/surname.rb +19 -0
- data/lib/niso/jats/table.rb +47 -0
- data/lib/niso/jats/table_count.rb +17 -0
- data/lib/niso/jats/table_wrap.rb +83 -0
- data/lib/niso/jats/table_wrap_foot.rb +27 -0
- data/lib/niso/jats/table_wrap_group.rb +51 -0
- data/lib/niso/jats/target.rb +53 -0
- data/lib/niso/jats/tbody.rb +29 -0
- data/lib/niso/jats/td.rb +169 -0
- data/lib/niso/jats/term.rb +89 -0
- data/lib/niso/jats/term_head.rb +57 -0
- data/lib/niso/jats/tex_math.rb +25 -0
- data/lib/niso/jats/textual_form.rb +61 -0
- data/lib/niso/jats/tfoot.rb +29 -0
- data/lib/niso/jats/th.rb +169 -0
- data/lib/niso/jats/thead.rb +29 -0
- data/lib/niso/jats/time_stamp.rb +21 -0
- data/lib/niso/jats/title.rb +71 -0
- data/lib/niso/jats/title_group.rb +25 -0
- data/lib/niso/jats/tr.rb +31 -0
- data/lib/niso/jats/trans_abstract.rb +31 -0
- data/lib/niso/jats/trans_source.rb +83 -0
- data/lib/niso/jats/trans_subtitle.rb +63 -0
- data/lib/niso/jats/trans_title.rb +65 -0
- data/lib/niso/jats/trans_title_group.rb +25 -0
- data/lib/niso/jats/underline.rb +63 -0
- data/lib/niso/jats/underline_end.rb +19 -0
- data/lib/niso/jats/underline_start.rb +17 -0
- data/lib/niso/jats/unstructured_kwd_group.rb +29 -0
- data/lib/niso/jats/uri.rb +31 -0
- data/lib/niso/jats/verse_group.rb +41 -0
- data/lib/niso/jats/verse_line.rb +89 -0
- data/lib/niso/jats/version.rb +5 -0
- data/lib/niso/jats/version_element.rb +29 -0
- data/lib/niso/jats/volume.rb +25 -0
- data/lib/niso/jats/volume_id.rb +29 -0
- data/lib/niso/jats/volume_issue_group.rb +39 -0
- data/lib/niso/jats/volume_series.rb +23 -0
- data/lib/niso/jats/word_count.rb +17 -0
- data/lib/niso/jats/x.rb +23 -0
- data/lib/niso/jats/xref.rb +59 -0
- data/lib/niso/jats/year.rb +27 -0
- data/lib/niso/jats.rb +14 -0
- data/lib/niso-jats.rb +1 -0
- data/lib/niso_jats.rb +5 -0
- data/niso-jats.gemspec +39 -0
- data/reference-docs/JATS-journalpublishing1-3-elements-modified-for-shale.xsd +9604 -0
- data/reference-docs/JATS-journalpublishing1-3-elements.xsd +9604 -0
- data/reference-docs/JATS-journalpublishing1-3.xsd.xml +45 -0
- data/reference-docs/mathml2.xsd +59 -0
- data/reference-docs/module-ali.xsd +46 -0
- data/reference-docs/xlink.xsd +100 -0
- data/reference-docs/xml.xsd +287 -0
- data/sig/niso/jats.rbs +6 -0
- metadata +434 -0
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class Array < Lutaml::Model::Serializable
|
6
|
+
attribute :content_type, :string
|
7
|
+
attribute :id, :string
|
8
|
+
attribute :orientation, :string, default: -> { "portrait" }
|
9
|
+
attribute :specific_use, :string
|
10
|
+
attribute :lang, :string
|
11
|
+
attribute :alt_text, AltText, collection: true
|
12
|
+
attribute :long_desc, LongDesc, collection: true
|
13
|
+
attribute :email, Email, collection: true
|
14
|
+
attribute :ext_link, ExtLink, collection: true
|
15
|
+
attribute :uri, Uri, collection: true
|
16
|
+
attribute :alternatives, Alternatives, collection: true
|
17
|
+
attribute :graphic, Graphic, collection: true
|
18
|
+
attribute :media, Media, collection: true
|
19
|
+
attribute :tbody, Tbody
|
20
|
+
attribute :attrib, Attrib, collection: true
|
21
|
+
attribute :permissions, Permissions, collection: true
|
22
|
+
|
23
|
+
xml do
|
24
|
+
root "array"
|
25
|
+
|
26
|
+
map_attribute "content-type", to: :content_type
|
27
|
+
map_attribute "id", to: :id
|
28
|
+
map_attribute "orientation", to: :orientation
|
29
|
+
map_attribute "specific-use", to: :specific_use
|
30
|
+
map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
|
31
|
+
map_element "alt-text", to: :alt_text
|
32
|
+
map_element "long-desc", to: :long_desc
|
33
|
+
map_element "email", to: :email
|
34
|
+
map_element "ext-link", to: :ext_link
|
35
|
+
map_element "uri", to: :uri
|
36
|
+
map_element "alternatives", to: :alternatives
|
37
|
+
map_element "graphic", to: :graphic
|
38
|
+
map_element "media", to: :media
|
39
|
+
map_element "tbody", to: :tbody
|
40
|
+
map_element "attrib", to: :attrib
|
41
|
+
map_element "permissions", to: :permissions
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class Article < Lutaml::Model::Serializable
|
6
|
+
attribute :article_type, :string
|
7
|
+
attribute :dtd_version, :string
|
8
|
+
attribute :id, :string
|
9
|
+
attribute :specific_use, :string
|
10
|
+
attribute :lang, :string, default: -> { "en" }
|
11
|
+
attribute :processing_meta, ProcessingMeta
|
12
|
+
attribute :front, Front
|
13
|
+
attribute :body, Body
|
14
|
+
attribute :back, Back
|
15
|
+
attribute :floats_group, FloatsGroup
|
16
|
+
attribute :sub_article, SubArticle, collection: true
|
17
|
+
attribute :response, Response, collection: true
|
18
|
+
|
19
|
+
xml do
|
20
|
+
root "article"
|
21
|
+
|
22
|
+
map_attribute "article-type", to: :article_type
|
23
|
+
map_attribute "dtd-version", to: :dtd_version
|
24
|
+
map_attribute "id", to: :id
|
25
|
+
map_attribute "specific-use", to: :specific_use
|
26
|
+
map_attribute "lang", to: :lang, render_default: true
|
27
|
+
map_element "processing-meta", to: :processing_meta
|
28
|
+
map_element "front", to: :front
|
29
|
+
map_element "body", to: :body
|
30
|
+
map_element "back", to: :back
|
31
|
+
map_element "floats-group", to: :floats_group
|
32
|
+
map_element "sub-article", to: :sub_article
|
33
|
+
map_element "response", to: :response
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class ArticleCategories < Lutaml::Model::Serializable
|
6
|
+
attribute :id, :string
|
7
|
+
attribute :subj_group, SubjGroup, collection: true
|
8
|
+
attribute :series_title, SeriesTitle, collection: true
|
9
|
+
attribute :series_text, SeriesText, collection: true
|
10
|
+
|
11
|
+
xml do
|
12
|
+
root "article-categories"
|
13
|
+
|
14
|
+
map_attribute "id", to: :id
|
15
|
+
map_element "subj-group", to: :subj_group
|
16
|
+
map_element "series-title", to: :series_title
|
17
|
+
map_element "series-text", to: :series_text
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class ArticleId < Lutaml::Model::Serializable
|
6
|
+
attribute :content, :string
|
7
|
+
attribute :assigning_authority, :string
|
8
|
+
attribute :custom_type, :string
|
9
|
+
attribute :id, :string
|
10
|
+
attribute :pub_id_type, :string
|
11
|
+
attribute :specific_use, :string
|
12
|
+
|
13
|
+
xml do
|
14
|
+
root "article-id"
|
15
|
+
|
16
|
+
map_content to: :content
|
17
|
+
map_attribute "assigning-authority", to: :assigning_authority
|
18
|
+
map_attribute "custom-type", to: :custom_type
|
19
|
+
map_attribute "id", to: :id
|
20
|
+
map_attribute "pub-id-type", to: :pub_id_type
|
21
|
+
map_attribute "specific-use", to: :specific_use
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class ArticleMeta < Lutaml::Model::Serializable
|
6
|
+
attribute :id, :string
|
7
|
+
attribute :article_id, ArticleId, collection: true
|
8
|
+
attribute :article_version, ArticleVersion
|
9
|
+
attribute :article_version_alternatives, ArticleVersionAlternatives
|
10
|
+
attribute :article_categories, ArticleCategories
|
11
|
+
attribute :title_group, TitleGroup
|
12
|
+
attribute :contrib_group, ContribGroup, collection: true
|
13
|
+
attribute :aff, Aff, collection: true
|
14
|
+
attribute :aff_alternatives, AffAlternatives, collection: true
|
15
|
+
attribute :author_notes, AuthorNotes
|
16
|
+
attribute :pub_date, PubDate, collection: true
|
17
|
+
attribute :pub_date_not_available, PubDateNotAvailable
|
18
|
+
attribute :volume, Volume, collection: true
|
19
|
+
attribute :volume_id, VolumeId, collection: true
|
20
|
+
attribute :volume_series, VolumeSeries
|
21
|
+
attribute :issue, Issue, collection: true
|
22
|
+
attribute :issue_id, IssueId, collection: true
|
23
|
+
attribute :issue_title, IssueTitle, collection: true
|
24
|
+
attribute :issue_title_group, IssueTitleGroup, collection: true
|
25
|
+
attribute :issue_sponsor, IssueSponsor, collection: true
|
26
|
+
attribute :issue_part, IssuePart
|
27
|
+
attribute :volume_issue_group, VolumeIssueGroup, collection: true
|
28
|
+
attribute :isbn, Isbn, collection: true
|
29
|
+
attribute :supplement, Supplement
|
30
|
+
attribute :fpage, Fpage
|
31
|
+
attribute :lpage, Lpage
|
32
|
+
attribute :page_range, PageRange
|
33
|
+
attribute :elocation_id, ElocationId
|
34
|
+
attribute :email, Email, collection: true
|
35
|
+
attribute :ext_link, ExtLink, collection: true
|
36
|
+
attribute :uri, Uri, collection: true
|
37
|
+
attribute :product, Product, collection: true
|
38
|
+
attribute :supplementary_material, SupplementaryMaterial, collection: true
|
39
|
+
attribute :history, History
|
40
|
+
attribute :pub_history, PubHistory
|
41
|
+
attribute :permissions, Permissions
|
42
|
+
attribute :self_uri, SelfUri, collection: true
|
43
|
+
attribute :related_article, RelatedArticle, collection: true
|
44
|
+
attribute :related_object, RelatedObject, collection: true
|
45
|
+
attribute :abstract, Abstract, collection: true
|
46
|
+
attribute :trans_abstract, TransAbstract, collection: true
|
47
|
+
attribute :kwd_group, KwdGroup, collection: true
|
48
|
+
attribute :funding_group, FundingGroup, collection: true
|
49
|
+
attribute :support_group, SupportGroup, collection: true
|
50
|
+
attribute :conference, Conference, collection: true
|
51
|
+
attribute :counts, Counts
|
52
|
+
attribute :custom_meta_group, CustomMetaGroup
|
53
|
+
|
54
|
+
xml do
|
55
|
+
root "article-meta"
|
56
|
+
|
57
|
+
map_attribute "id", to: :id
|
58
|
+
map_element "article-id", to: :article_id
|
59
|
+
map_element "article-version", to: :article_version
|
60
|
+
map_element "article-version-alternatives",
|
61
|
+
to: :article_version_alternatives
|
62
|
+
map_element "article-categories", to: :article_categories
|
63
|
+
map_element "title-group", to: :title_group
|
64
|
+
map_element "contrib-group", to: :contrib_group
|
65
|
+
map_element "aff", to: :aff
|
66
|
+
map_element "aff-alternatives", to: :aff_alternatives
|
67
|
+
map_element "author-notes", to: :author_notes
|
68
|
+
map_element "pub-date", to: :pub_date
|
69
|
+
map_element "pub-date-not-available", to: :pub_date_not_available
|
70
|
+
map_element "volume", to: :volume
|
71
|
+
map_element "volume-id", to: :volume_id
|
72
|
+
map_element "volume-series", to: :volume_series
|
73
|
+
map_element "issue", to: :issue
|
74
|
+
map_element "issue-id", to: :issue_id
|
75
|
+
map_element "issue-title", to: :issue_title
|
76
|
+
map_element "issue-title-group", to: :issue_title_group
|
77
|
+
map_element "issue-sponsor", to: :issue_sponsor
|
78
|
+
map_element "issue-part", to: :issue_part
|
79
|
+
map_element "volume-issue-group", to: :volume_issue_group
|
80
|
+
map_element "isbn", to: :isbn
|
81
|
+
map_element "supplement", to: :supplement
|
82
|
+
map_element "fpage", to: :fpage
|
83
|
+
map_element "lpage", to: :lpage
|
84
|
+
map_element "page-range", to: :page_range
|
85
|
+
map_element "elocation-id", to: :elocation_id
|
86
|
+
map_element "email", to: :email
|
87
|
+
map_element "ext-link", to: :ext_link
|
88
|
+
map_element "uri", to: :uri
|
89
|
+
map_element "product", to: :product
|
90
|
+
map_element "supplementary-material", to: :supplementary_material
|
91
|
+
map_element "history", to: :history
|
92
|
+
map_element "pub-history", to: :pub_history
|
93
|
+
map_element "permissions", to: :permissions
|
94
|
+
map_element "self-uri", to: :self_uri
|
95
|
+
map_element "related-article", to: :related_article
|
96
|
+
map_element "related-object", to: :related_object
|
97
|
+
map_element "abstract", to: :abstract
|
98
|
+
map_element "trans-abstract", to: :trans_abstract
|
99
|
+
map_element "kwd-group", to: :kwd_group
|
100
|
+
map_element "funding-group", to: :funding_group
|
101
|
+
map_element "support-group", to: :support_group
|
102
|
+
map_element "conference", to: :conference
|
103
|
+
map_element "counts", to: :counts
|
104
|
+
map_element "custom-meta-group", to: :custom_meta_group
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class ArticleTitle < Lutaml::Model::Serializable
|
6
|
+
include BasicText
|
7
|
+
|
8
|
+
attribute :content, :string
|
9
|
+
attribute :id, :string
|
10
|
+
attribute :lang, :string
|
11
|
+
attribute :break, Break, collection: true
|
12
|
+
|
13
|
+
xml do
|
14
|
+
root "article-title", mixed: true
|
15
|
+
|
16
|
+
map_content to: :content
|
17
|
+
map_attribute "id", to: :id
|
18
|
+
map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
|
19
|
+
map_element "email", to: :email
|
20
|
+
map_element "ext-link", to: :ext_link
|
21
|
+
map_element "uri", to: :uri
|
22
|
+
map_element "inline-supplementary-material",
|
23
|
+
to: :inline_supplementary_material
|
24
|
+
map_element "related-article", to: :related_article
|
25
|
+
map_element "related-object", to: :related_object
|
26
|
+
map_element "bold", to: :bold
|
27
|
+
map_element "fixed-case", to: :fixed_case
|
28
|
+
map_element "italic", to: :italic
|
29
|
+
map_element "monospace", to: :monospace
|
30
|
+
map_element "overline", to: :overline
|
31
|
+
map_element "roman", to: :roman
|
32
|
+
map_element "sans-serif", to: :sans_serif
|
33
|
+
map_element "sc", to: :sc
|
34
|
+
map_element "strike", to: :strike
|
35
|
+
map_element "underline", to: :underline
|
36
|
+
map_element "ruby", to: :ruby
|
37
|
+
map_element "alternatives", to: :alternatives
|
38
|
+
map_element "inline-graphic", to: :inline_graphic
|
39
|
+
map_element "inline-media", to: :inline_media
|
40
|
+
map_element "private-char", to: :private_char
|
41
|
+
map_element "chem-struct", to: :chem_struct
|
42
|
+
map_element "inline-formula", to: :inline_formula
|
43
|
+
map_element "tex-math", to: :tex_math
|
44
|
+
map_element "mml-math", to: :mml_math
|
45
|
+
map_element "abbrev", to: :abbrev
|
46
|
+
map_element "index-term", to: :index_term
|
47
|
+
map_element "index-term-range-end", to: :index_term_range_end
|
48
|
+
map_element "milestone-end", to: :milestone_end
|
49
|
+
map_element "milestone-start", to: :milestone_start
|
50
|
+
map_element "named-content", to: :named_content
|
51
|
+
map_element "styled-content", to: :styled_content
|
52
|
+
map_element "fn", to: :fn
|
53
|
+
map_element "target", to: :target
|
54
|
+
map_element "xref", to: :xref
|
55
|
+
map_element "sub", to: :sub
|
56
|
+
map_element "sup", to: :sup
|
57
|
+
map_element "break", to: :break
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class ArticleVersion < Lutaml::Model::Serializable
|
6
|
+
attribute :content, :string
|
7
|
+
attribute :article_version_type, :string
|
8
|
+
attribute :assigning_authority, :string
|
9
|
+
attribute :content_type, :string
|
10
|
+
attribute :designator, :string
|
11
|
+
attribute :hreflang, :string
|
12
|
+
attribute :id, :string
|
13
|
+
attribute :iso_8601_date, :string
|
14
|
+
attribute :specific_use, :string
|
15
|
+
attribute :vocab, :string
|
16
|
+
attribute :vocab_identifier, :string
|
17
|
+
attribute :vocab_term, :string
|
18
|
+
attribute :vocab_term_identifier, :string
|
19
|
+
|
20
|
+
xml do
|
21
|
+
root "article-version"
|
22
|
+
|
23
|
+
map_content to: :content
|
24
|
+
map_attribute "article-version-type", to: :article_version_type
|
25
|
+
map_attribute "assigning-authority", to: :assigning_authority
|
26
|
+
map_attribute "content-type", to: :content_type
|
27
|
+
map_attribute "designator", to: :designator
|
28
|
+
map_attribute "hreflang", to: :hreflang
|
29
|
+
map_attribute "id", to: :id
|
30
|
+
map_attribute "iso-8601-date", to: :iso_8601_date
|
31
|
+
map_attribute "specific-use", to: :specific_use
|
32
|
+
map_attribute "vocab", to: :vocab
|
33
|
+
map_attribute "vocab-identifier", to: :vocab_identifier
|
34
|
+
map_attribute "vocab-term", to: :vocab_term
|
35
|
+
map_attribute "vocab-term-identifier", to: :vocab_term_identifier
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class ArticleVersionAlternatives < Lutaml::Model::Serializable
|
6
|
+
attribute :id, :string
|
7
|
+
attribute :article_version, ArticleVersion, collection: true
|
8
|
+
|
9
|
+
xml do
|
10
|
+
root "article-version-alternatives"
|
11
|
+
|
12
|
+
map_attribute "id", to: :id
|
13
|
+
map_element "article-version", to: :article_version
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class Attrib < Lutaml::Model::Serializable
|
6
|
+
include BasicText
|
7
|
+
|
8
|
+
attribute :content, :string
|
9
|
+
attribute :id, :string
|
10
|
+
attribute :specific_use, :string
|
11
|
+
attribute :lang, :string
|
12
|
+
|
13
|
+
xml do
|
14
|
+
root "attrib"
|
15
|
+
|
16
|
+
map_content to: :content
|
17
|
+
map_attribute "id", to: :id
|
18
|
+
map_attribute "specific-use", to: :specific_use
|
19
|
+
map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
|
20
|
+
map_element "email", to: :email
|
21
|
+
map_element "ext-link", to: :ext_link
|
22
|
+
map_element "uri", to: :uri
|
23
|
+
map_element "inline-supplementary-material",
|
24
|
+
to: :inline_supplementary_material
|
25
|
+
map_element "related-article", to: :related_article
|
26
|
+
map_element "related-object", to: :related_object
|
27
|
+
map_element "bold", to: :bold
|
28
|
+
map_element "fixed-case", to: :fixed_case
|
29
|
+
map_element "italic", to: :italic
|
30
|
+
map_element "monospace", to: :monospace
|
31
|
+
map_element "overline", to: :overline
|
32
|
+
map_element "roman", to: :roman
|
33
|
+
map_element "sans-serif", to: :sans_serif
|
34
|
+
map_element "sc", to: :sc
|
35
|
+
map_element "strike", to: :strike
|
36
|
+
map_element "underline", to: :underline
|
37
|
+
map_element "ruby", to: :ruby
|
38
|
+
map_element "alternatives", to: :alternatives
|
39
|
+
map_element "inline-graphic", to: :inline_graphic
|
40
|
+
map_element "inline-media", to: :inline_media
|
41
|
+
map_element "private-char", to: :private_char
|
42
|
+
map_element "chem-struct", to: :chem_struct
|
43
|
+
map_element "inline-formula", to: :inline_formula
|
44
|
+
map_element "tex-math", to: :tex_math
|
45
|
+
map_element "mml-math", to: :mml_math
|
46
|
+
map_element "abbrev", to: :abbrev
|
47
|
+
map_element "index-term", to: :index_term
|
48
|
+
map_element "index-term-range-end", to: :index_term_range_end
|
49
|
+
map_element "milestone-end", to: :milestone_end
|
50
|
+
map_element "milestone-start", to: :milestone_start
|
51
|
+
map_element "named-content", to: :named_content
|
52
|
+
map_element "styled-content", to: :styled_content
|
53
|
+
map_element "fn", to: :fn
|
54
|
+
map_element "target", to: :target
|
55
|
+
map_element "xref", to: :xref
|
56
|
+
map_element "sub", to: :sub
|
57
|
+
map_element "sup", to: :sup
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class AuthorComment < Lutaml::Model::Serializable
|
6
|
+
attribute :content_type, :string
|
7
|
+
attribute :id, :string
|
8
|
+
attribute :specific_use, :string
|
9
|
+
attribute :lang, :string
|
10
|
+
attribute :title, Title
|
11
|
+
attribute :p, Paragraph, collection: true
|
12
|
+
|
13
|
+
xml do
|
14
|
+
root "author-comment"
|
15
|
+
|
16
|
+
map_attribute "content-type", to: :content_type
|
17
|
+
map_attribute "id", to: :id
|
18
|
+
map_attribute "specific-use", to: :specific_use
|
19
|
+
map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
|
20
|
+
map_element "title", to: :title
|
21
|
+
map_element "p", to: :p
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class AuthorNotes < Lutaml::Model::Serializable
|
6
|
+
attribute :id, :string
|
7
|
+
attribute :rid, :string
|
8
|
+
attribute :specific_use, :string
|
9
|
+
attribute :label, Label
|
10
|
+
attribute :title, Title
|
11
|
+
attribute :corresp, Corresp, collection: true
|
12
|
+
attribute :fn, Fn, collection: true
|
13
|
+
attribute :p, Paragraph, collection: true
|
14
|
+
|
15
|
+
xml do
|
16
|
+
root "author-notes", ordered: true
|
17
|
+
|
18
|
+
map_attribute "id", to: :id
|
19
|
+
map_attribute "rid", to: :rid
|
20
|
+
map_attribute "specific-use", to: :specific_use
|
21
|
+
map_element "label", to: :label
|
22
|
+
map_element "title", to: :title
|
23
|
+
map_element "p", to: :p
|
24
|
+
map_element "corresp", to: :corresp
|
25
|
+
map_element "fn", to: :fn
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class AwardDesc < Lutaml::Model::Serializable
|
6
|
+
attribute :content, :string
|
7
|
+
attribute :hreflang, :string
|
8
|
+
attribute :id, :string
|
9
|
+
attribute :lang, :string
|
10
|
+
|
11
|
+
xml do
|
12
|
+
root "award-desc"
|
13
|
+
|
14
|
+
map_content to: :content
|
15
|
+
map_attribute "hreflang", to: :hreflang
|
16
|
+
map_attribute "id", to: :id
|
17
|
+
map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class AwardGroup < Lutaml::Model::Serializable
|
6
|
+
attribute :award_type, :string
|
7
|
+
attribute :hreflang, :string
|
8
|
+
attribute :id, :string
|
9
|
+
attribute :rid, :string
|
10
|
+
attribute :specific_use, :string
|
11
|
+
attribute :lang, :string
|
12
|
+
attribute :funding_source, FundingSource, collection: true
|
13
|
+
attribute :support_source, SupportSource, collection: true
|
14
|
+
attribute :award_id, AwardId, collection: true
|
15
|
+
attribute :award_name, AwardName
|
16
|
+
attribute :award_desc, AwardDesc
|
17
|
+
attribute :principal_award_recipient, PrincipalAwardRecipient,
|
18
|
+
collection: true
|
19
|
+
attribute :principal_investigator, PrincipalInvestigator, collection: true
|
20
|
+
|
21
|
+
xml do
|
22
|
+
root "award-group"
|
23
|
+
|
24
|
+
map_attribute "award-type", to: :award_type
|
25
|
+
map_attribute "hreflang", to: :hreflang
|
26
|
+
map_attribute "id", to: :id
|
27
|
+
map_attribute "rid", to: :rid
|
28
|
+
map_attribute "specific-use", to: :specific_use
|
29
|
+
map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
|
30
|
+
map_element "funding-source", to: :funding_source
|
31
|
+
map_element "support-source", to: :support_source
|
32
|
+
map_element "award-id", to: :award_id
|
33
|
+
map_element "award-name", to: :award_name
|
34
|
+
map_element "award-desc", to: :award_desc
|
35
|
+
map_element "principal-award-recipient", to: :principal_award_recipient
|
36
|
+
map_element "principal-investigator", to: :principal_investigator
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class AwardId < Lutaml::Model::Serializable
|
6
|
+
attribute :content, :string
|
7
|
+
attribute :assigning_authority, :string
|
8
|
+
attribute :award_id_type, :string
|
9
|
+
attribute :award_type, :string
|
10
|
+
attribute :hreflang, :string
|
11
|
+
attribute :id, :string
|
12
|
+
attribute :rid, :string
|
13
|
+
attribute :specific_use, :string
|
14
|
+
attribute :lang, :string
|
15
|
+
attribute :bold, Bold, collection: true
|
16
|
+
attribute :fixed_case, FixedCase, collection: true
|
17
|
+
attribute :italic, Italic, collection: true
|
18
|
+
attribute :monospace, Monospace, collection: true
|
19
|
+
attribute :overline, Overline, collection: true
|
20
|
+
attribute :roman, Roman, collection: true
|
21
|
+
attribute :sans_serif, SansSerif, collection: true
|
22
|
+
attribute :sc, Sc, collection: true
|
23
|
+
attribute :strike, Strike, collection: true
|
24
|
+
attribute :underline, Underline, collection: true
|
25
|
+
attribute :ruby, Ruby, collection: true
|
26
|
+
attribute :alternatives, Alternatives, collection: true
|
27
|
+
attribute :inline_graphic, InlineGraphic, collection: true
|
28
|
+
attribute :inline_media, InlineMedia, collection: true
|
29
|
+
attribute :private_char, PrivateChar, collection: true
|
30
|
+
attribute :chem_struct, ChemStruct, collection: true
|
31
|
+
attribute :inline_formula, InlineFormula, collection: true
|
32
|
+
attribute :abbrev, Abbrev, collection: true
|
33
|
+
attribute :index_term, IndexTerm, collection: true
|
34
|
+
attribute :index_term_range_end, IndexTermRangeEnd, collection: true
|
35
|
+
attribute :milestone_end, MilestoneEnd, collection: true
|
36
|
+
attribute :milestone_start, MilestoneStart, collection: true
|
37
|
+
attribute :named_content, NamedContent, collection: true
|
38
|
+
attribute :styled_content, StyledContent, collection: true
|
39
|
+
attribute :sub, Sub, collection: true
|
40
|
+
attribute :sup, Sup, collection: true
|
41
|
+
|
42
|
+
xml do
|
43
|
+
root "award-id"
|
44
|
+
|
45
|
+
map_content to: :content
|
46
|
+
map_attribute "assigning-authority", to: :assigning_authority
|
47
|
+
map_attribute "award-id-type", to: :award_id_type
|
48
|
+
map_attribute "award-type", to: :award_type
|
49
|
+
map_attribute "hreflang", to: :hreflang
|
50
|
+
map_attribute "id", to: :id
|
51
|
+
map_attribute "rid", to: :rid
|
52
|
+
map_attribute "specific-use", to: :specific_use
|
53
|
+
map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
|
54
|
+
map_element "bold", to: :bold
|
55
|
+
map_element "fixed-case", to: :fixed_case
|
56
|
+
map_element "italic", to: :italic
|
57
|
+
map_element "monospace", to: :monospace
|
58
|
+
map_element "overline", to: :overline
|
59
|
+
map_element "roman", to: :roman
|
60
|
+
map_element "sans-serif", to: :sans_serif
|
61
|
+
map_element "sc", to: :sc
|
62
|
+
map_element "strike", to: :strike
|
63
|
+
map_element "underline", to: :underline
|
64
|
+
map_element "ruby", to: :ruby
|
65
|
+
map_element "alternatives", to: :alternatives
|
66
|
+
map_element "inline-graphic", to: :inline_graphic
|
67
|
+
map_element "inline-media", to: :inline_media
|
68
|
+
map_element "private-char", to: :private_char
|
69
|
+
map_element "chem-struct", to: :chem_struct
|
70
|
+
map_element "inline-formula", to: :inline_formula
|
71
|
+
map_element "abbrev", to: :abbrev
|
72
|
+
map_element "index-term", to: :index_term
|
73
|
+
map_element "index-term-range-end", to: :index_term_range_end
|
74
|
+
map_element "milestone-end", to: :milestone_end
|
75
|
+
map_element "milestone-start", to: :milestone_start
|
76
|
+
map_element "named-content", to: :named_content
|
77
|
+
map_element "styled-content", to: :styled_content
|
78
|
+
map_element "sub", to: :sub
|
79
|
+
map_element "sup", to: :sup
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Niso
|
4
|
+
module Jats
|
5
|
+
class AwardName < Lutaml::Model::Serializable
|
6
|
+
attribute :content, :string
|
7
|
+
attribute :hreflang, :string
|
8
|
+
attribute :id, :string
|
9
|
+
attribute :lang, :string
|
10
|
+
|
11
|
+
xml do
|
12
|
+
root "award-name"
|
13
|
+
|
14
|
+
map_content to: :content
|
15
|
+
map_attribute "hreflang", to: :hreflang
|
16
|
+
map_attribute "id", to: :id
|
17
|
+
map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|