Sha256: 3c43d53e007953fc76db98694bf1605c23e060e8eaed42c652d730b2be8e9596

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class VolumeIssueGroup < Lutaml::Model::Serializable
      attribute :content_type, :string
      attribute :id, :string
      attribute :specific_use, :string
      attribute :lang, :string
      attribute :volume, Volume, collection: true
      attribute :volume_id, VolumeId, collection: true
      attribute :volume_series, VolumeSeries
      attribute :issue, Issue, collection: true
      attribute :issue_id, IssueId, collection: true
      attribute :issue_title, IssueTitle, collection: true
      attribute :issue_title_group, IssueTitleGroup, collection: true
      attribute :issue_sponsor, IssueSponsor, collection: true
      attribute :issue_part, IssuePart

      xml do
        root "volume-issue-group"

        map_attribute "content-type", to: :content_type
        map_attribute "id", to: :id
        map_attribute "specific-use", to: :specific_use
        map_attribute "lang", to: :lang, namespace: "http://www.w3.org/XML/1998/namespace", prefix: "xml"
        map_element "volume", to: :volume
        map_element "volume-id", to: :volume_id
        map_element "volume-series", to: :volume_series
        map_element "issue", to: :issue
        map_element "issue-id", to: :issue_id
        map_element "issue-title", to: :issue_title
        map_element "issue-title-group", to: :issue_title_group
        map_element "issue-sponsor", to: :issue_sponsor
        map_element "issue-part", to: :issue_part
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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