Browse Source

minor changes to eds module

2.x-ebsco
Paul Pound 11 years ago
parent
commit
d370535bc3
  1. 2
      targets/eds/js/eds_results_article.js
  2. 3
      targets/eds/roblib_search_eds.module

2
targets/eds/js/eds_results_article.js

@ -61,7 +61,7 @@ Drupal.behaviors.roblib_search_eds_articles = {
})
var query_str = data.queries[0].query;
var href_str = 'http://search.ebscohost.com/login.aspx?direct=true&site=ehost-live&scope=site&type=1&custid=uprince&groupid=main&profid=eds&mode=bool&lang=en&bquery=';
jQuery('#roblib-search-eds-article-more').empty().append('<a href="'+href_str+query_str+'" id="see_all_results">See all ' + data.recordCount + ' results</a>');
jQuery('#roblib-search-eds-article-more').empty().append('<a href="'+href_str+query_str+'" id="eds-article-see-all-results">See all ' + data.recordCount + ' results</a>');
});
}

3
targets/eds/roblib_search_eds.module

@ -224,8 +224,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);
$query = $query;
$params = "query=OR,$query&includefacets=y&$limiters&resultsperpage=$number_per_page";
$params = "query=AND,$query&includefacets=n&$limiters&resultsperpage=$number_per_page";
$output = $eds_api->apiSearch($params);
return json_encode($output);
}

Loading…
Cancel
Save