You are here

class DublinCore in Views OAI-PMH 8

Class DublinCore.

Plugin annotation


@MetadataPrefix(
  id     = "oai_dc",
  label  = "Dublin Core",
  prefix = "oai_dc",
)

Hierarchy

Expanded class hierarchy of DublinCore

File

src/Plugin/MetadataPrefix/DublinCore.php, line 17

Namespace

Drupal\views_oai_pmh\Plugin\MetadataPrefix
View source
class DublinCore extends PluginBase implements MetadataPrefixInterface {

  /**
   *
   */
  public function getSchema() : string {
    return 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd';
  }

  /**
   *
   */
  public function getNamespace() : string {
    return 'http://www.openarchives.org/OAI/2.0/oai_dc/';
  }

  /**
   *
   */
  public function getRootNodeName() : string {
    return 'oai_dc:dc';
  }

  /**
   *
   */
  public function getRootNodeAttributes() : array {
    return [
      '@xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
      '@xsi:schemaLocation' => 'http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd',
      '@xmlns:oai_dc' => 'http://www.openarchives.org/OAI/2.0/oai_dc/',
      '@xmlns:dc' => 'http://purl.org/dc/elements/1.1/',
    ];
  }

  /**
   *
   */
  public function getElements() : array {
    return [
      '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
DublinCore::getElements public function Overrides MetadataPrefixInterface::getElements
DublinCore::getNamespace public function Overrides MetadataPrefixInterface::getNamespace
DublinCore::getRootNodeAttributes public function Overrides MetadataPrefixInterface::getRootNodeAttributes
DublinCore::getRootNodeName public function Overrides MetadataPrefixInterface::getRootNodeName
DublinCore::getSchema public function Overrides MetadataPrefixInterface::getSchema
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 92