diff --git a/module/VuFind/src/VuFind/Search/Solr/Results.php b/module/VuFind/src/VuFind/Search/Solr/Results.php index 3ccb043499628da70cc50ac03d2a12137b247ece..06b9a0a1df04f5c9859e775dd7e458c4b714940a 100644 --- a/module/VuFind/src/VuFind/Search/Solr/Results.php +++ b/module/VuFind/src/VuFind/Search/Solr/Results.php @@ -57,7 +57,7 @@ class Results extends BaseResults * * @return \VuFind\Connection\Solr */ - public static function getSolrConnection($shards = null, $index = 'Solr') + public function getSolrConnection($shards = null, $index = 'Solr') { // Turn on all shards by default if none are specified (we need to be sure // that any given ID will yield results, even if not all shards are on by @@ -91,7 +91,7 @@ class Results extends BaseResults */ protected function performSearch() { - $solr = static::getSolrConnection($this->getParams()->getSelectedShards()); + $solr = $this->getSolrConnection($this->getParams()->getSelectedShards()); // Collect the search parameters: $overrideQuery = $this->getParams()->getOverrideQuery(); @@ -455,7 +455,7 @@ class Results extends BaseResults */ public function getRecord($id) { - $solr = static::getSolrConnection(); + $solr = $this->getSolrConnection(); // Check if we need to apply hidden filters: $options = SearchOptions::getInstance( @@ -513,7 +513,7 @@ class Results extends BaseResults */ public function getSimilarRecords($id) { - $solr = static::getSolrConnection($this->getParams()->getSelectedShards()); + $solr = $this->getSolrConnection($this->getParams()->getSelectedShards()); $filters = $this->getOptions()->getHiddenFilters(); $extras = empty($filters) ? array() : array('fq' => $filters); $rawResponse = $solr->getMoreLikeThis($id, $extras); diff --git a/module/VuFind/src/VuFind/Search/SolrAuth/Results.php b/module/VuFind/src/VuFind/Search/SolrAuth/Results.php index 239caa23a74c2a950be48d3cd5e90be83d67bfe5..c27ffc2073a2df5765b1be66cb0588dce70b81ff 100644 --- a/module/VuFind/src/VuFind/Search/SolrAuth/Results.php +++ b/module/VuFind/src/VuFind/Search/SolrAuth/Results.php @@ -61,7 +61,7 @@ class Results extends SolrResults * * @return \VuFind\Connection\Solr */ - public static function getSolrConnection($shards = null, $index = 'SolrAuth') + public function getSolrConnection($shards = null, $index = 'SolrAuth') { return parent::getSolrConnection($shards, $index); } diff --git a/module/VuFind/src/VuFind/Search/SolrReserves/Results.php b/module/VuFind/src/VuFind/Search/SolrReserves/Results.php index cc41c406ba1698b501e27914337903f709d98be5..f4115e5c802d0cbad8c7c6acd110ba818d7ea9bd 100644 --- a/module/VuFind/src/VuFind/Search/SolrReserves/Results.php +++ b/module/VuFind/src/VuFind/Search/SolrReserves/Results.php @@ -50,9 +50,8 @@ class Results extends \VuFind\Search\Solr\Results * * @return \VuFind\Connection\Solr */ - public static function getSolrConnection($shards = null, - $index = 'SolrReserves' - ) { + public function getSolrConnection($shards = null, $index = 'SolrReserves') + { return parent::getSolrConnection($shards, $index); }