Class OAI::Provider::Metadata::Format
In: lib/oai/provider/metadata_format.rb
Parent: Object

Metadata Base Class

MetadataFormat is the base class from which all other format classes should inherit. Format classes provide mapping of record fields into XML.

  • prefix - contains the metadata_prefix used to select the format
  • schema - location of the xml schema
  • namespace - location of the namespace document
  • element_namespace - the namespace portion of the XML elements
  • fields - list of fields in this metadata format

See OAI::Metadata::DublinCore for an example

Methods

encode  

Included Modules

Singleton

Attributes

element_namespace  [RW] 
fields  [RW] 
namespace  [RW] 
prefix  [RW] 
schema  [RW] 

Public Instance methods

Provided a model, and a record belonging to that model this method will return an xml represention of the record. This is the method that should be extended if you need to create more complex xml representations.

[Validate]