function views_oai_pmh_plugin_display::execute in Views OAI-PMH 7
Same name and namespace in other branches
- 6.2 plugins/views_oai_pmh_plugin_display.inc \views_oai_pmh_plugin_display::execute()
- 6 plugins/views_oai_pmh_plugin_display.inc \views_oai_pmh_plugin_display::execute()
- 7.3 plugins/views_oai_pmh_plugin_display.inc \views_oai_pmh_plugin_display::execute()
- 7.2 plugins/views_oai_pmh_plugin_display.inc \views_oai_pmh_plugin_display::execute()
Execute this display handler.
Overrides views_plugin_display_page::execute
File
- plugins/
views_oai_pmh_plugin_display.inc, line 130 - Contains the OAI-PMH display plugin.
Class
- views_oai_pmh_plugin_display
- We are based on a feed display for compatibility.
Code
function execute() {
// if ($this->oai_compression) {
// ob_start('ob_gzhandler');
// }
// if (isset ( $this->oai_args ['resumptionToken'] ) && isset ( $this->oai_args ['resumptionToken'] ['query'] )) {
// $this->view->build_info = $this->oai_args ['resumptionToken'] ['query'];
// $this->view->build();
// $this->view->query->pager->set_current_page ( $this->oai_args ['resumptionToken'] ['current_page'] + 1 );
// }
drupal_add_http_header('Content-Type', 'text/xml');
print $this->view
->render();
// if ($this->oai_compression) {
// ob_end_flush();
// }
}