You are here

class Datacite in Views OAI-PMH 8

Class DublinCore.

Plugin annotation


@MetadataPrefix(
  id     = "oai_datacite",
  label  = "Datacite",
  prefix = "oai_datacite",
)

Hierarchy

Expanded class hierarchy of Datacite

File

src/Plugin/MetadataPrefix/Datacite.php, line 18

Namespace

Drupal\views_oai_pmh\Plugin\MetadataPrefix
View source
class Datacite extends PluginBase implements MetadataPrefixInterface {
  use StringTranslationTrait;

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

  /**
   *
   */
  public function getRootNodeAttributes() : array {
    return [];
  }

  /**
   *
   */
  public function getSchema() : string {
    return 'http://schema.datacite.org/oai/oai-1.1/oai.xsd';
  }

  /**
   *
   */
  public function getNamespace() : string {
    return 'http://schema.datacite.org/oai/oai-1.1/';
  }

  /**
   *
   */
  public function getElements() : array {
    return [
      'none' => $this
        ->t('- None -'),
      'titles>title' => 'titles > title',
      'publisher' => 'publisher',
      'subjects>subject' => 'subjects>subject',
      'subjects>subject@subjectScheme' => 'subjects>subject@subjectScheme',
      'dates>date' => 'dates>date',
      'dates>date@dateType' => 'dates>date@dateType',
      'descriptions>description' => 'descriptions>description',
      'descriptions>description@descriptionType' => 'descriptions>description@descriptionType',
      'publicationYear' => 'publicationYear',
      'identifier' => 'identifier',
      'identifier@identifierType' => 'identifier@identifierType',
      'creators>creator>creatorName' => 'creators>creator>creatorName',
      'creators>creator>nameIdentifier' => 'creators>creator>nameIdentifier',
      'creators>creator>nameIdentifier@nameIdentifierScheme' => 'creators>creator>nameIdentifier@nameIdentifierScheme',
      'creators>creator>nameIdentifier@schemeURI' => 'creators>creator>nameIdentifier@schemeURI',
      'contributors>contributor>contributorName' => 'contributors>contributor>contributorName',
      'contributors>contributor>contributorName@contributorType' => 'contributors>contributor>contributorName@contributorType',
      'contributors>contributor>nameIdentifier' => 'contributors>contributor>nameIdentifier',
      'contributors>contributor>nameIdentifier@nameIdentifierScheme' => 'contributors>contributor>nameIdentifier@nameIdentifierScheme',
      'contributors>contributor>nameIdentifier@schemeURI' => 'contributors>contributor>nameIdentifier@schemeURI',
      'resourceType' => 'resourceType',
      'resourceType@resourceTypeGeneral' => 'resourceType@resourceTypeGeneral',
      'rightsList>rights' => 'rightsList>rights',
      'rightsList>rights@rightsURI' => 'rightsList>rights@rightsURI',
    ];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Datacite::getElements public function Overrides MetadataPrefixInterface::getElements
Datacite::getNamespace public function Overrides MetadataPrefixInterface::getNamespace
Datacite::getRootNodeAttributes public function Overrides MetadataPrefixInterface::getRootNodeAttributes
Datacite::getRootNodeName public function Overrides MetadataPrefixInterface::getRootNodeName
Datacite::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
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.