class Datacite in Views OAI-PMH 8
Class DublinCore.
Plugin annotation
@MetadataPrefix(
id = "oai_datacite",
label = "Datacite",
prefix = "oai_datacite",
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\views_oai_pmh\Plugin\MetadataPrefix\Datacite implements MetadataPrefixInterface uses StringTranslationTrait
Expanded class hierarchy of Datacite
File
- src/
Plugin/ MetadataPrefix/ Datacite.php, line 18
Namespace
Drupal\views_oai_pmh\Plugin\MetadataPrefixView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Datacite:: |
public | function |
Overrides MetadataPrefixInterface:: |
|
Datacite:: |
public | function |
Overrides MetadataPrefixInterface:: |
|
Datacite:: |
public | function |
Overrides MetadataPrefixInterface:: |
|
Datacite:: |
public | function |
Overrides MetadataPrefixInterface:: |
|
Datacite:: |
public | function |
Overrides MetadataPrefixInterface:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |