Sha256: 466b6ea6830aa85d7f77a458a1a686e6c3eb5be8bdddf4993992ce6b15c5d6d0

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class JournalMeta < Lutaml::Model::Serializable
      attribute :id, :string
      attribute :journal_id, JournalId, collection: true
      attribute :journal_title_group, JournalTitleGroup, collection: true
      attribute :contrib_group, ContribGroup, collection: true
      attribute :aff, Aff, collection: true
      attribute :aff_alternatives, AffAlternatives, collection: true
      attribute :issn, Issn, collection: true
      attribute :issn_l, IssnL
      attribute :isbn, Isbn, collection: true
      attribute :publisher, Publisher
      attribute :notes, Notes, collection: true
      attribute :self_uri, SelfUri, collection: true

      xml do
        root "journal-meta"

        map_attribute "id", to: :id
        map_element "journal-id", to: :journal_id
        map_element "journal-title-group", to: :journal_title_group
        map_element "contrib-group", to: :contrib_group
        map_element "aff", to: :aff
        map_element "aff-alternatives", to: :aff_alternatives
        map_element "issn", to: :issn
        map_element "issn-l", to: :issn_l
        map_element "isbn", to: :isbn
        map_element "publisher", to: :publisher
        map_element "notes", to: :notes
        map_element "self-uri", to: :self_uri
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
niso-jats-0.1.1 lib/niso/jats/journal_meta.rb