From a8603e7c59c70940430545e176cb7f82ca8b0e05 Mon Sep 17 00:00:00 2001 From: Dorian Merz <merz@ub.uni-leipzig.de> Date: Wed, 21 Apr 2021 10:01:13 +0200 Subject: [PATCH] refs #19708 [fid_bbi] render searchbox on Records/Home --- themes/fid_bbi/templates/layout/layout.phtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/themes/fid_bbi/templates/layout/layout.phtml b/themes/fid_bbi/templates/layout/layout.phtml index 88fbf693f84..ac3f0390dd1 100644 --- a/themes/fid_bbi/templates/layout/layout.phtml +++ b/themes/fid_bbi/templates/layout/layout.phtml @@ -10,7 +10,11 @@ // 3. It is set to a custom string; we should display the provided version // Set up default search box if no data was provided from the template; // this covers case 1. Cases 2 and 3 are then covered by logic below. - if ($this->templateName === 'advanced' || !isset($this->layout()->searchbox)) { + if ( + $this->templateName === 'advanced' + || $this->templateDir === 'records' + || !isset($this->layout()->searchbox) + ) { $this->layout()->searchbox = $this->render('search/searchbox.phtml'); } ?> -- GitLab