From 5149b37eba5cd5e8984adc1c93d3fa8612700e8e Mon Sep 17 00:00:00 2001
From: Dorian Merz <merz@ub.uni-leipzig.de>
Date: Thu, 18 Feb 2021 15:31:25 +0100
Subject: [PATCH] refs #18784 [fid_bbi] pass relevant variables to searchbox
 template

---
 themes/fid_bbi/templates/search/results.phtml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/themes/fid_bbi/templates/search/results.phtml b/themes/fid_bbi/templates/search/results.phtml
index d765ab96a22..06f104a19c0 100644
--- a/themes/fid_bbi/templates/search/results.phtml
+++ b/themes/fid_bbi/templates/search/results.phtml
@@ -15,7 +15,19 @@ $this->headTitle($title);
 
 $this->layout()->searchbox = $this->context($this)->renderInContext(
   'search/searchbox.phtml',
-  ['lookfor' => $lookfor]
+  [
+      'lookfor' => $lookfor,
+      'searchIndex' => $this->params->getSearchHandler(),
+      'searchType' => $this->params->getSearchType(),
+      'searchId' => $this->results->getSearchId(),
+      'searchClassId' => $this->params->getSearchClassId(),
+      'checkboxFilters' => $this->params->getCheckboxFacets(),
+      'filterList' => $this->params->getFilters(),
+      'hasDefaultsApplied' => $this->params->hasDefaultsApplied(),
+      'selectedShards' => $this->params->getSelectedShards(),
+      'ignoreHiddenFiltersInRequest' => isset($this->ignoreHiddenFiltersInRequest) ? $this->ignoreHiddenFiltersInRequest : false,
+      'ignoreHiddenFilterMemory' => isset($this->ignoreHiddenFilterMemory) ? $this->ignoreHiddenFilterMemory : false,
+  ]
 );
 
 // Enable cart if appropriate
-- 
GitLab