diff --git a/module/VuFind/src/VuFind/Search/SolrAuthor/Params.php b/module/VuFind/src/VuFind/Search/SolrAuthor/Params.php index 65938234da242532093394bc6f76340f2e570454..72923ad6006961eaeea4a8b409a85dfe8d6d7da6 100644 --- a/module/VuFind/src/VuFind/Search/SolrAuthor/Params.php +++ b/module/VuFind/src/VuFind/Search/SolrAuthor/Params.php @@ -54,9 +54,11 @@ class Params extends \VuFind\Search\Solr\Params return false; } - // Force the search to be a phrase: - $lookfor = '"' . str_replace('"', '\"', $lookfor) . '"'; - + // Force the search to be a phrase if it is not already: + if (!preg_match('/^".*"$/', $lookfor)) { + $lookfor = '"' . str_replace('"', '\"', $lookfor) . '"'; + } + // Set the search (handler is always Author for this module): $this->setBasicSearch($lookfor, 'Author'); return true;