You are here

protected function views_oai_pmh_plugin_style::get_metadata_prefix in Views OAI-PMH 7.3

Get the metadata prefix corresponding to the given metadata format id.

Get the metadata prefix corresponding to the given metadata format id, based on the plugin's settings.

File

plugins/views_oai_pmh_plugin_style.inc, line 916
Contains the base OAI-PMH style plugin.

Class

views_oai_pmh_plugin_style
Views OAI-PMH_plugin style.

Code

protected function get_metadata_prefix($format_id) {
  if (isset($this->options['metadata_prefix'])) {
    return $this->options['metadata_prefix'][$format_id];
  }
  else {

    // Prefix settings are missing. We're probably dealing with a view that
    // was created before the setting existed.
    return $format_id;
  }
}