You are here

function views_oai_pmh_plugin_style::render_content in Views OAI-PMH 7.2

Same name and namespace in other branches
  1. 6.2 plugins/views_oai_pmh_plugin_style.inc \views_oai_pmh_plugin_style::render_content()
  2. 6 plugins/views_oai_pmh_plugin_style.inc \views_oai_pmh_plugin_style::render_content()
  3. 7 plugins/views_oai_pmh_plugin_style.inc \views_oai_pmh_plugin_style::render_content()
1 call to views_oai_pmh_plugin_style::render_content()
views_oai_pmh_plugin_style::render in plugins/views_oai_pmh_plugin_style.inc
Render the display in this style.

File

plugins/views_oai_pmh_plugin_style.inc, line 44
Definition of the views_oai_pmh_plugin_style class.

Class

views_oai_pmh_plugin_style
@file Definition of the views_oai_pmh_plugin_style class.

Code

function render_content() {
  switch ($this->oai_args['verb']) {
    case 'Identify':
      if (empty($this->display->handler->oai_errors)) {
        return theme('views_oai_pmh_identify_body', array(
          'view' => $this->view,
        ));
      }
      break;
    case "ListIdentifiers":
      return $this
        ->render_identifiers();
      break;
    case 'ListMetadataFormats':
      return theme('views_oai_pmh_metadataformats_body');
    case 'GetRecord':
    case 'ListRecords':
      return $this
        ->render_records();
    case 'ListSets':
    default:
  }
}