You are here

class views_oai_pmh_format_oai_dc in Views OAI-PMH 7.3

Class views_oai_pmh_format_oai_dc.

Hierarchy

Expanded class hierarchy of views_oai_pmh_format_oai_dc

File

includes/formats/oai_dc.inc, line 11
Definition of the OAI Dublin Core (DC) data format.

View source
class views_oai_pmh_format_oai_dc extends views_oai_pmh_format {

  /**
   * Construct.
   */
  public function __construct() {
    parent::__construct('oai_dc', t('Dublin Core'));
    $this->schema = 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd';
    $this->namespaces = array(
      'xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
      'oai_dc' => 'http://www.openarchives.org/OAI/2.0/oai_dc/',
      'dc' => 'http://purl.org/dc/elements/1.1/',
    );
    $this->metadata_namespace_prefix = 'oai_dc';
    $this->root_element = 'oai_dc:dc';
    $this->root_attributes = array(
      'xmlns:xsi' => $this->namespaces['xsi'],
      'xsi:schemaLocation' => $this->namespaces['oai_dc'] . '    ' . $this->schema,
      'xmlns:oai_dc' => $this->namespaces['oai_dc'],
      'xmlns:dc' => $this->namespaces['dc'],
    );
    $this->elements = array(
      'none' => t('- None -'),
      'dc:title' => 'dc:title',
      'dc:creator' => 'dc:creator',
      'dc:subject' => 'dc:subject',
      'dc:description' => 'dc:description',
      'dc:publisher' => 'dc:publisher',
      'dc:contributor' => 'dc:contributor',
      'dc:date' => 'dc:date',
      'dc:type' => 'dc:type',
      'dc:format' => 'dc:format',
      'dc:identifier' => 'dc:identifier',
      'dc:source' => 'dc:source',
      'dc:language' => 'dc:language',
      'dc:relation' => 'dc:relation',
      'dc:coverage' => 'dc:coverage',
      'dc:rights' => 'dc:rights',
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
views_oai_pmh_format::$attributes public property An array describing the attributes that are allowed.
views_oai_pmh_format::$elements public property An array describing the mapping options, tags or attributes.
views_oai_pmh_format::$id public property Identifier (or prefix, in OAI-PMH's terminology) for this metadata format.
views_oai_pmh_format::$label public property A descriptive name of the data format.
views_oai_pmh_format::$metadata_namespace_prefix public property The prefix of the metadata namespace for this format.
views_oai_pmh_format::$namespaces public property The XML namespaces required by this metadata format.
views_oai_pmh_format::$root_attributes public property The attributes to assign to the root tag.
views_oai_pmh_format::$root_element public property The element that acts as the root of each OAI record in the generated XML.
views_oai_pmh_format::$schema public property The schema for this format.
views_oai_pmh_format::get_metadata_namespace public function Return the metadata namespace.
views_oai_pmh_format_oai_dc::__construct public function Construct. Overrides views_oai_pmh_format::__construct