diff --git a/module/VuFind/src/VuFind/Controller/AbstractRecord.php b/module/VuFind/src/VuFind/Controller/AbstractRecord.php index 53f56576088349f25038bad779d8c49a1315fa6a..5ad9aa364cde17db2dabf2dc93d0e3518e1f9ed0 100644 --- a/module/VuFind/src/VuFind/Controller/AbstractRecord.php +++ b/module/VuFind/src/VuFind/Controller/AbstractRecord.php @@ -58,7 +58,7 @@ class AbstractRecord extends AbstractBase protected function createViewModel($params = null) { $view = parent::createViewModel($params); - $view->searchClassId = $this->searchClassId; + $this->layout()->searchClassId = $view->searchClassId = $this->searchClassId; if (!is_null($this->driver)) { $view->driver = $this->driver; }