From f75560b40e158777afc09fa8ff2151e2ee38b6ca Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 14 Sep 2012 13:35:47 -0400 Subject: [PATCH] Fixed problem with inappropriate search boxes in author module. --- themes/blueprint/templates/author/results.phtml | 4 ++-- themes/blueprint/templates/author/search.phtml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/blueprint/templates/author/results.phtml b/themes/blueprint/templates/author/results.phtml index f3f1b4ce64b..10f0bfe757c 100644 --- a/themes/blueprint/templates/author/results.phtml +++ b/themes/blueprint/templates/author/results.phtml @@ -7,8 +7,8 @@ // Set up page title: $this->headTitle($this->translate('Author Search Results')); - // Set up empty search box: - $this->layout()->searchbox = $this->render('search/searchbox.phtml'); + // Set up empty search box (we want Author search boxes to point at the Solr search screen): + $this->layout()->searchbox = $this->context($this)->renderInContext('search/searchbox.phtml', array('searchClassId' => 'Solr')); // Set up breadcrumbs: $this->layout()->breadcrumbs = '<em>' . $this->results->getParams()->getDisplayQuery() . '</em>'; diff --git a/themes/blueprint/templates/author/search.phtml b/themes/blueprint/templates/author/search.phtml index 53883d4c7d5..f9499982f7e 100644 --- a/themes/blueprint/templates/author/search.phtml +++ b/themes/blueprint/templates/author/search.phtml @@ -15,8 +15,8 @@ // Set up page title: $this->headTitle($this->translate('Author Browse')); - // Set up empty search box: - $this->layout()->searchbox = $this->render('search/searchbox.phtml'); + // Set up empty search box pointing at Solr module: + $this->layout()->searchbox = $this->context($this)->renderInContext('search/searchbox.phtml', array('searchClassId' => 'Solr')); // Set up breadcrumbs: $this->layout()->breadcrumbs = '<em>' . $this->translate('Author Results for') . ' ' . $this->results->getParams()->getDisplayQuery() . '</em>'; -- GitLab