|
|
|
@ -151,6 +151,17 @@ function roblib_search_eds_theme() {
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function roblib_search_eds_preprocess_panels_pane(&$variables, $hook){ |
|
|
|
|
if($variables['pane']->subtype == 'roblib_search_eds-roblib_search_eds_articles'){ |
|
|
|
|
$variables['title_prefix'] = '<div class="roblib-search-eds-articles-header">'; |
|
|
|
|
$variables['title_suffix'] ='</div>'; |
|
|
|
|
} |
|
|
|
|
if($variables['pane']->subtype == 'roblib_search_eds-roblib_search_eds_results'){ |
|
|
|
|
$variables['title_prefix'] = '<div class="roblib-search-eds-media-header">'; |
|
|
|
|
$variables['title_suffix'] ='</div>'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function roblib_search_eds_block_info() { |
|
|
|
|
|
|
|
|
|
$blocks['roblib_search_eds_results'] = array( |
|
|
|
@ -224,7 +235,7 @@ function roblib_search_eds_get_results($query = NULL, $type = NULL) {
|
|
|
|
|
$eds_api = new EBSCOAPI($config); |
|
|
|
|
$number_per_page = variable_get('roblib_search_eds_num_results', '5'); |
|
|
|
|
$query = urlencode($query); |
|
|
|
|
$params = "query=AND,$query&includefacets=n&$limiters&resultsperpage=$number_per_page"; |
|
|
|
|
$params = "query=AND,$query&view=detailed&includefacets=n&$limiters&resultsperpage=$number_per_page"; |
|
|
|
|
$output = $eds_api->apiSearch($params); |
|
|
|
|
return json_encode($output); |
|
|
|
|
} |
|
|
|
|