|
|
@ -224,8 +224,7 @@ function roblib_search_eds_get_results($query = NULL, $type = NULL) { |
|
|
|
$eds_api = new EBSCOAPI($config); |
|
|
|
$eds_api = new EBSCOAPI($config); |
|
|
|
$number_per_page = variable_get('roblib_search_eds_num_results', '5'); |
|
|
|
$number_per_page = variable_get('roblib_search_eds_num_results', '5'); |
|
|
|
$query = urlencode($query); |
|
|
|
$query = urlencode($query); |
|
|
|
$query = $query; |
|
|
|
$params = "query=AND,$query&includefacets=n&$limiters&resultsperpage=$number_per_page"; |
|
|
|
$params = "query=OR,$query&includefacets=y&$limiters&resultsperpage=$number_per_page"; |
|
|
|
|
|
|
|
$output = $eds_api->apiSearch($params); |
|
|
|
$output = $eds_api->apiSearch($params); |
|
|
|
return json_encode($output); |
|
|
|
return json_encode($output); |
|
|
|
} |
|
|
|
} |
|
|
|