Sha256: 021a6f18d47689c39672a57aa720ef5512cb5c6897162591c61e8ceb92c04bc4

Contents?: true

Size: 797 Bytes

Versions: 6

Compression:

Stored size: 797 Bytes

Contents

require 'logger'
require 'rexml/formatters/transitive' # unaccountably, xml/mapping doesn't do this
require 'xml/mapping_extensions'

# Module for working with the [DataCite metadata schema](https://schema.datacite.org/)
module Datacite
  # Maps DataCite XML to Ruby objects
  module Mapping

    DATACITE_3_NAMESPACE = XML::MappingExtensions::Namespace.new(
      uri: 'http://datacite.org/schema/kernel-3',
      schema_location: 'http://schema.datacite.org/meta/kernel-3/metadata.xsd'
    )

    DATACITE_4_NAMESPACE = XML::MappingExtensions::Namespace.new(
      uri: 'http://datacite.org/schema/kernel-4',
      schema_location: 'http://schema.datacite.org/meta/kernel-4/metadata.xsd'
    )

    Dir.glob(File.expand_path('../mapping/*.rb', __FILE__)).sort.each(&method(:require))

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datacite-mapping-0.2.5 lib/datacite/mapping.rb
datacite-mapping-0.2.4 lib/datacite/mapping.rb
datacite-mapping-0.2.3 lib/datacite/mapping.rb
datacite-mapping-0.2.2 lib/datacite/mapping.rb
datacite-mapping-0.2.1 lib/datacite/mapping.rb
datacite-mapping-0.2.0 lib/datacite/mapping.rb