public function views_oai_pmh_plugin_style::query in Views OAI-PMH 7.3
Query.
Overrides views_plugin_style::query
File
- plugins/
views_oai_pmh_plugin_style.inc, line 155 - Contains the base OAI-PMH style plugin.
Class
- views_oai_pmh_plugin_style
- Views OAI-PMH_plugin style.
Code
public function query() {
global $base_url;
if (!isset($this->request)) {
// Initialize the request from URL arguments.
$this->request = new views_oai_pmh_request($base_url . base_path() . $this->display->handler
->get_path(), $this
->get_metadata_prefixes(), isset($this->view->live_preview) && $this->view->live_preview);
}
// Perform the query action specified by the requested OAI-PMH verb.
if ($this->request->verb && !$this->request->errors) {
$callback = $this->request->callback . '_query';
if (method_exists($this, $callback)) {
call_user_func(array(
$this,
$callback,
));
}
}
if ($this->request->errors) {
// Avoid execution of the view's query.
$this->view->executed = TRUE;
}
}