From a18b6e7e92166bbd2f9b2424e2aea1e44962d0ae Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Tue, 15 Jan 2019 12:23:45 -0500 Subject: [PATCH] Add autocomplete auto submit to EDS.ini and default to true in logic. --- config/vufind/EDS.ini | 3 +++ module/VuFind/src/VuFind/Search/Base/Options.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/vufind/EDS.ini b/config/vufind/EDS.ini index 07bf4aa9ecd..0354ae03da0 100644 --- a/config/vufind/EDS.ini +++ b/config/vufind/EDS.ini @@ -222,6 +222,9 @@ enabled = true ; Define a default_handler default_handler = Eds +; Auto-submit autocomplete on click or enter +auto_submit = true + ; In this section, set the key equal to a search type from [Basic_Searches] and ; the value equal to an autocomplete handler in order to customize autocompletion ; behavior when that search type is selected. (default: Eds:rawqueries) diff --git a/module/VuFind/src/VuFind/Search/Base/Options.php b/module/VuFind/src/VuFind/Search/Base/Options.php index 4efcedbd2f8..882024b6624 100644 --- a/module/VuFind/src/VuFind/Search/Base/Options.php +++ b/module/VuFind/src/VuFind/Search/Base/Options.php @@ -231,7 +231,7 @@ abstract class Options implements TranslatorAwareInterface * * @var bool */ - protected $autocompleteAutoSubmit = false; + protected $autocompleteAutoSubmit = true; /** * Configuration file to read global settings from -- GitLab