diff --git a/module/VuFind/src/VuFind/RecordDriver/PluginManager.php b/module/VuFind/src/VuFind/RecordDriver/PluginManager.php index 407e0284bf2bf60971fe2d4a4e2cd5cd4d3de5e9..5d86f67b28e62e07906459ae51114b67f59f7a01 100644 --- a/module/VuFind/src/VuFind/RecordDriver/PluginManager.php +++ b/module/VuFind/src/VuFind/RecordDriver/PluginManager.php @@ -89,8 +89,12 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager */ public function getSolrRecord($data) { - $key = 'Solr' . ucwords($data['recordtype']); - $recordType = $this->has($key) ? $key : 'SolrDefault'; + if(isset($data['recordtype'])) { + $key = 'Solr' . ucwords($data['recordtype']); + $recordType = $this->has($key) ? $key : 'SolrDefault'; + } else { + $recordType = 'SolrDefault'; + } // Build the object: $driver = $this->get($recordType);