You are here

class Jats in Views OAI-PMH 8

Class Jats.

Plugin annotation


@MetadataPrefix(
  id     = "oai_jats",
  label  = "Jats",
  prefix = "oai_jats",
)

Hierarchy

Expanded class hierarchy of Jats

File

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

Namespace

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

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

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

  /**
   *
   */
  public function getSchema() : string {
    return 'https://jats.nlm.nih.gov/publishing/1.1/xsd/JATS-journalpublishing1.xsd';
  }

  /**
   *
   */
  public function getNamespace() : string {
    return 'https://jats.nlm.nih.gov/publishing/1.1/';
  }

  /**
   *
   */
  public function getElements() : array {
    return [
      'none' => $this
        ->t('- None -'),
      '@xmlns' => $this
        ->t('(Root attribute) xmlns'),
      '@xmlns:xlink' => $this
        ->t('(Root attribute) xmlns:xlink'),
      '@dtd-version' => $this
        ->t('(Root attribute) dtd-version'),
      '@specific-use' => $this
        ->t('(Root attribute) specific-use'),
      '@article-type' => $this
        ->t('(Root attribute) article-type'),
      '@xml:lang' => $this
        ->t('(Root attribute) xml:lang'),
      'front>journal-meta>journal-id' => 'front > journal-meta > journal-id',
      'front>journal-meta>journal-id@journal-id-type' => 'front > journal-meta > journal-id@journal-id-type',
      'front>journal-meta>journal-title-group>journal-title' => 'front > journal-meta > journal-title-group > journal-title',
      'front>journal-meta>journal-title-group>journal-subtitle' => 'front > journal-meta > journal-title-group > journal-subtitle',
      'front>journal-meta>journal-title-group>abbrev-journal-title' => 'front > journal-meta > journal-title-group > abbrev-journal-title',
      'front>journal-meta>contrib-group@content-type' => 'front > journal-meta > contrib-group@content-type',
      'front>journal-meta>contrib-group>contrib@contrib-type' => 'front > journal-meta > contrib@contrib-type',
      'front>journal-meta>contrib-group>contrib>name>surname' => 'front > journal-meta > contrib > name > surname',
      'front>journal-meta>contrib-group>contrib>name>given-names' => 'front > journal-meta > contrib > name > given-names',
      'front>journal-meta>contrib-group>contrib>role' => 'front > journal-meta > contrib > role',
      'front>journal-meta>issn' => 'front > journal-meta > issn',
      'front>journal-meta>issn@pub-type' => 'front > journal-meta > issn@pub-type',
      'front>journal-meta>publisher>publisher-name' => 'front > journal-meta > publisher > publisher-name',
      'front>article-meta>article-id' => 'front > article-meta > article-id',
      'front>article-meta>article-id@pub-id-type' => 'front > article-meta > article-id@pub-id-type',
      'front>article-meta>article-categories>subj-group@subj-group-type' => 'front > article-meta > article-categories > subj-group@subj-group-type',
      'front>article-meta>article-categories>subj-group>subject' => 'front > article-meta > article-categories > subj-group > subject',
      'front>article-meta>article-categories>subj-group>subj-group@subj-group-type' => 'front > article-meta > article-categories > subj-group > subj-group@subj-group-type',
      'front>article-meta>article-categories>subj-group>subj-group>subject' => 'front > article-meta > article-categories > subj-group > subj-group > subject',
      'front>article-meta>title-group>article-title' => 'front > article-meta > title-group > article-title',
      'front>article-meta>title-group>article-title@xml:lang' => 'front > article-meta > title-group > article-title@xml:lang',
      'front>article-meta>title-group>subtitle' => 'front > article-meta > title-group > subtitle',
      'front>article-meta>title-group>subtitle@xml:lang' => 'front > article-meta > title-group > subtitle@xml:lang',
      'front>article-meta>volume' => 'front > article-meta > volume',
      'front>article-meta>contrib-group@content-type' => 'front > article-meta > contrib-group@content-type',
      'front>article-meta>contrib-group>contrib@contrib-type' => 'front > article-meta > contrib-group > contrib@contrib-type',
      'front>article-meta>contrib-group>contrib@id' => 'front > article-meta > contrib-group > contrib@id',
      'front>article-meta>contrib-group>contrib>name>surname' => 'front > article-meta > contrib-group > contrib > name > surname',
      'front>article-meta>contrib-group>contrib>name>given-names' => 'front > article-meta > contrib-group > contrib > name > given-names',
      'front>article-meta>contrib-group>contrib>xref@rid' => 'front > article-meta > contrib-group > contrib > xref@rid',
      'front>article-meta>contrib-group>contrib>xref@ref-type' => 'front > article-meta > contrib-group > contrib > xref@ref-type',
      'front>article-meta>contrib-group>contrib>contrib-id' => 'front > article-meta > contrib-group > contrib > contrib-id',
      'front>article-meta>contrib-group>contrib>contrib-id@contrib-id-type' => 'front > article-meta > contrib-group > contrib > contrib-id@contrib-id-type',
      'front>article-meta>aff' => 'front > article-meta > aff',
      'front>article-meta>institution' => 'front > article-meta > aff > institution',
      'front>article-meta>contrib-group>contrib>bio' => 'front > article-meta > contrib-group > contrib > bio',
      'front>article-meta>contrib-group>contrib>bio@xml:lang' => 'front > article-meta > contrib-group > contrib > bio@xml:lang',
      'front>article-meta>pub-date>season' => 'front > article-meta > pub-date > season',
      'front>article-meta>pub-date@publication-format' => 'front > article-meta > pub-date@publication-format',
      'front>article-meta>pub-date@date-type' => 'front > article-meta > pub-date@date-type',
      'front>article-meta>pub-date>day' => 'front > article-meta > pub-date > day',
      'front>article-meta>pub-date>month' => 'front > article-meta > pub-date > month',
      'front>article-meta>pub-date>year' => 'front > article-meta > pub-date > year',
      'front>article-meta>issue' => 'front > article-meta > issue',
      'front>article-meta>issue@seq' => 'front > article-meta > issue@seq',
      'front>article-meta>issue-id' => 'front > article-meta > issue-id',
      'front>article-meta>issue-id@pub-id-type' => 'front > article-meta > issue-id@pub-id-type',
      'front>article-meta>issue-title' => 'front > article-meta > issue-title',
      'front>article-meta>fpage' => 'front > article-meta > fpage',
      'front>article-meta>lpage' => 'front > article-meta > lpage',
      'front>article-meta>permissions>copyright-statement' => 'front > article-meta > permissions > copyright-statement',
      'front>article-meta>permissions>copyright-year' => 'front > article-meta > permissions > copyright-year',
      'front>article-meta>permissions>copyright-holder' => 'front > article-meta > permissions > copyright-holder',
      'front>article-meta>permissions>licence@xlink:href' => 'front > article-meta > permissions > licence@xlink:href',
      'front>article-meta>permissions>licence>licence-p>graphic@xlink:href' => 'front > article-meta > permissions > licence > licence-p > graphic@xlink:href',
      'front>article-meta>abstract' => 'front > article-meta > abstract',
      'front>article-meta>abstract@xml:lang' => 'front > article-meta > abstract@xml:lang',
      'front>article-meta>abstract>p' => 'front > article-meta > abstract > p',
      'front>article-meta>trans-abstract@xml:lang' => 'front > article-meta > trans-abstract@xml:lang',
      'front>article-meta>trans-abstract>p' => 'front > article-meta > trans-abstract > p',
      'front>article-meta>related-object' => 'front > article-meta > related-object',
      'front>article-meta>related-object@content-type' => 'front > article-meta > related-object@content-type',
      'front>article-meta>related-object@document-type' => 'front > article-meta > related-object@document-type',
      'body' => 'body',
      'body>p' => 'body > p',
      'back>ref-list>ref@id' => 'back > ref-list > ref@id',
      'back>ref-list>ref>element-citation>styled-content' => 'back > ref-list > ref > element-citation > styled-content',
      'back>ref-list>ref>element-citation>styled-content@specific-use' => 'back > ref-list > ref > element-citation > styled-content@specific-use',
      'back>ref-list>ref>element-citation>pub-id' => 'back > ref-list > ref > element-citation > pub-id',
      'back>ref-list>ref>element-citation>pub-id@pub-id-type' => 'back > ref-list > ref > element-citation > pub-id@pub-id-type',
    ];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Jats::getElements public function Overrides MetadataPrefixInterface::getElements
Jats::getNamespace public function Overrides MetadataPrefixInterface::getNamespace
Jats::getRootNodeAttributes public function Overrides MetadataPrefixInterface::getRootNodeAttributes
Jats::getRootNodeName public function Overrides MetadataPrefixInterface::getRootNodeName
Jats::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.