Browse Source

limit site results to everythign except guides databases and bestbets

2.x-ebsco
Paul Pound 11 years ago
parent
commit
150a2c8914
  1. 3
      targets/solr_site/js/solr_site_results.js
  2. 1
      targets/solr_site/roblib_search_solr_site.module

3
targets/solr_site/js/solr_site_results.js

@ -24,10 +24,9 @@ Drupal.behaviors.roblib_search_solr_site = {
});
jQuery('#roblib-search-content-solr-site').empty().append(items.join(''));
var number = data.response.numFound;
//var query = encodeURIComponent(data.responseHeader.params.q);//.'milk';
var scholarUrl = "http://www.islandscholar.ca/islandora/solr/search/"
jQuery('#' + 'roblib-search-solr-site-more').empty().append('<a id="solr-site-see-more-result"' +
'href="search/site/' + query + '">see all ' + number + ' results</a>');
'href="/search/site/' + query + '">see all ' + number + ' results</a>');
}

1
targets/solr_site/roblib_search_solr_site.module

@ -150,6 +150,7 @@ function roblib_search_solr_site_get_search_url($query){
$data = array(
'wt' => 'json',
'q' => $query ,
'fq' => '-bundle:guide OR -bundle:bestbet OR -bundle:database',
'rows' => $num_results,
);
$url = url($solr_url . '/select', array('query' => $data));

Loading…
Cancel
Save