/** * Get progress on the current search operation. * * @return float */ protected function getSearchProgress() { $statResponse = $this->connector->stat(); return (double) $statResponse->progress; }
/** * Create the Pazpar2 connector. * * @return Connector */ protected function createConnector() { $connector = new Connector($this->config->General->base_url, $this->serviceLocator->get('VuFind\\Http')->createClient()); $connector->setLogger($this->logger); return $connector; }