You are here

public function views_oai_pmh_format_oai_dc::__construct in Views OAI-PMH 7.3

Construct.

Overrides views_oai_pmh_format::__construct

File

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

Class

views_oai_pmh_format_oai_dc
Class views_oai_pmh_format_oai_dc.

Code

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',
  );
}