Browse Source

added database target search all results

2.x-ebsco
Paul Pound 11 years ago
parent
commit
c98b2225d7
  1. 6
      targets/solr_site/js/solr_site_databases.js

6
targets/solr_site/js/solr_site_databases.js

@ -1,6 +1,8 @@
Drupal.behaviors.roblib_search_solr_site_databases = {
attach: function(context, settings) {
$url = settings.roblib_search_solr_site_databases.search_url;
query = settings.roblib_search_solr_site_results.search_query;
baseUrl = settings.roblib_search_solr_site_results.base_url;
jQuery.getJSON($url, function(data) {
var items = [];
var numberOfDocs = 0;
@ -31,6 +33,10 @@ Drupal.behaviors.roblib_search_solr_site_databases = {
qtipify(divs, content, 'Description');
}
if (numberOfDocs > 0)
{
jQuery('#' + 'roblib-search-solr-site-databases-more').empty().append('<a href="'+ baseUrl + '/search/site/' + query +'?f[0]=bundle%3Adatbase">see all results</a>');
}
});
}

Loading…
Cancel
Save