You are here

oai_dc.inc in Views OAI-PMH 7.3

Definition of the OAI Dublin Core (DC) data format.

File

includes/formats/oai_dc.inc
View source
<?php

/**
 * @file
 * Definition of the OAI Dublin Core (DC) data format.
 */

/**
 * Class views_oai_pmh_format_oai_dc.
 */
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',
    );
  }

}

Classes

Namesort descending Description
views_oai_pmh_format_oai_dc Class views_oai_pmh_format_oai_dc.