diff --git a/module/VuFind/src/VuFind/RecordTab/CollectionList.php b/module/VuFind/src/VuFind/RecordTab/CollectionList.php index 31b29c4b5f0271e59bb073a01cf7afa16b60e55c..6656f0d73eedcc585186f56aa4f3e2bd90de267a 100644 --- a/module/VuFind/src/VuFind/RecordTab/CollectionList.php +++ b/module/VuFind/src/VuFind/RecordTab/CollectionList.php @@ -63,6 +63,13 @@ class CollectionList extends AbstractBase */ protected $recommendManager; + /** + * Search class id + * + * @var string + */ + protected $searchClassId = 'SolrCollection'; + /** * Constructor * @@ -116,7 +123,7 @@ class CollectionList extends AbstractBase $listener->attach($runner->getEventManager()->getSharedManager()); }; $this->results - = $this->runner->run($request, 'SolrCollection', $cb); + = $this->runner->run($request, $this->searchClassId, $cb); } return $this->results; } diff --git a/module/VuFind/src/VuFind/Search/Factory/SolrDefaultBackendFactory.php b/module/VuFind/src/VuFind/Search/Factory/SolrDefaultBackendFactory.php index 55f9cd0cabdf6ad38e9f4ed5c84881c0032c6cb9..5d9b2232ae42952d87b82f6daee4b858cf9b4fa3 100644 --- a/module/VuFind/src/VuFind/Search/Factory/SolrDefaultBackendFactory.php +++ b/module/VuFind/src/VuFind/Search/Factory/SolrDefaultBackendFactory.php @@ -43,6 +43,13 @@ use VuFindSearch\Backend\Solr\Response\Json\RecordCollectionFactory; */ class SolrDefaultBackendFactory extends AbstractSolrBackendFactory { + /** + * Method for creating a record driver. + * + * @var string + */ + protected $createRecordMethod = 'getSolrRecord'; + /** * Constructor */ @@ -78,7 +85,8 @@ class SolrDefaultBackendFactory extends AbstractSolrBackendFactory $backend = parent::createBackend($connector); $manager = $this->serviceLocator ->get(\VuFind\RecordDriver\PluginManager::class); - $factory = new RecordCollectionFactory([$manager, 'getSolrRecord']); + $factory + = new RecordCollectionFactory([$manager, $this->createRecordMethod]); $backend->setRecordCollectionFactory($factory); return $backend; }