From 4157ab9e483404aea9766a3767668c5450dd2148 Mon Sep 17 00:00:00 2001 From: ppound Date: Mon, 24 Jun 2019 10:24:04 -0300 Subject: [PATCH] changes requested by Melissa in redmine 7658 to Add parentheses to bento box searches sent to EBSCO --- targets/eds/roblib_search_eds.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/eds/roblib_search_eds.module b/targets/eds/roblib_search_eds.module index eb24b67..aaded50 100644 --- a/targets/eds/roblib_search_eds.module +++ b/targets/eds/roblib_search_eds.module @@ -267,7 +267,7 @@ function roblib_search_eds_get_results($query = NULL, $type = 'Articles') { $config = roblib_search_eds_build_config_arr($type); $number_per_page = variable_get('roblib_search_eds_num_results', '5'); - $query .= $limiters; + $query = '(' . $query . ') ' . $limiters; $search = array('lookfor' => $query, 'type' => 'ALLFields', 'index' => 'AllFields', 'q' => 'ebsco/results', 'op' => 'Search'); $eds_api = new EBSCOAPI($config); $is_local_ip = $eds_api->connector()->isGuestIPAddress($_SERVER["REMOTE_ADDR"]);