diff --git a/targets/eds/css/roblib_search_eds.css b/targets/eds/css/roblib_search_eds.css
index 0df0197..d76c3eb 100644
--- a/targets/eds/css/roblib_search_eds.css
+++ b/targets/eds/css/roblib_search_eds.css
@@ -1,4 +1,4 @@
-/*
+/*
Document : roblib_search_evergreen
Created on : Apr 11, 2013, 2:27:50 PM
Author : ppound
@@ -15,3 +15,8 @@
.eds-label {
font-weight: bolder;
}
+
+.roblib-eds-more-button {
+ text-align: center;
+ background-color: lightblue;
+}
diff --git a/targets/eds/js/eds_results.js b/targets/eds/js/eds_results.js
index ab1bcf7..1ce2744 100644
--- a/targets/eds/js/eds_results.js
+++ b/targets/eds/js/eds_results.js
@@ -45,16 +45,6 @@ Drupal.behaviors.roblib_search_eds = {
items.push(roblib_authors);
items.push('');
- /*if (typeof val.Items.Src !== 'undefined') {
- jQuery.each(val.Items.Src, function (key4, source) {
- items.push('
-
-
+
+
+
+
diff --git a/targets/solr_site/css/roblib_search_solr_site.css b/targets/solr_site/css/roblib_search_solr_site.css
index 7bb9c72..9be64af 100755
--- a/targets/solr_site/css/roblib_search_solr_site.css
+++ b/targets/solr_site/css/roblib_search_solr_site.css
@@ -14,7 +14,7 @@
color: gray;
}
-.roblib-solr-more-results {
+#roblib-solr-more-results-results {
text-align: center;
background-color: lightblue;
}
diff --git a/targets/solr_site/js/solr_site_bestbet.js b/targets/solr_site/js/solr_site_bestbet.js
index 30a4f66..121ad31 100755
--- a/targets/solr_site/js/solr_site_bestbet.js
+++ b/targets/solr_site/js/solr_site_bestbet.js
@@ -1,6 +1,7 @@
Drupal.behaviors.roblib_search_solr_site_bestbet = {
attach: function(context, settings) {
url = settings.roblib_search_solr_site_bestbet.search_url;
+ default_site_type = settings.roblib_search_solr_site_results.default_site_type
jQuery.getJSON(url, function(data) {
var items = [];
var numberOfDocs = 0;
@@ -28,7 +29,6 @@ Drupal.behaviors.roblib_search_solr_site_bestbet = {
});
jQuery('#' + 'roblib-search-content-solr-site-bestbet').empty().append(items.join(''));
- //qtipify(divs, content, 'Best Bet');
}
});
}
diff --git a/targets/solr_site/js/solr_site_results.js b/targets/solr_site/js/solr_site_results.js
index 40e52a7..eef3da9 100644
--- a/targets/solr_site/js/solr_site_results.js
+++ b/targets/solr_site/js/solr_site_results.js
@@ -1,10 +1,10 @@
Drupal.behaviors.roblib_search_solr_site_results = {
- attach: function(context, settings) {
+ attach: function (context, settings) {
url = settings.roblib_search_solr_site_results.search_url;
query = settings.roblib_search_solr_site_results.search_query;
baseUrl = settings.roblib_search_solr_site_results.base_url;
default_site_type = settings.roblib_search_solr_site_results.default_site_type + '/';
- jQuery.getJSON(url, function(data) {
+ jQuery.getJSON(url, function (data) {
var items = [];
total_found = data.response.numFound;
var numberOfDocs = 0;
@@ -21,26 +21,23 @@ Drupal.behaviors.roblib_search_solr_site_results = {
var counter = 0;
var divs = new Array();
var content = new Array();
- jQuery.each(data.response.docs, function(key, val) {
+ jQuery.each(data.response.docs, function (key, val) {
id = 'roblib_search_solr_results_' + counter;
content[counter] = val.teaser;
divs[counter++] = id;
- items.push('
\n\
+ items.push('
');
});
jQuery('#' + 'roblib-search-content-solr-site-results').empty().append(items.join(''));
}
- if (numberOfDocs > 0)
- {
- jQuery('#' + 'roblib-search-solr-site-results-more').empty().append('
see all results ('
- + total_found + ') ');
- jQuery('.' + 'roblib-solr-more-results').empty().append('
see all results ('
- + total_found + ') ');
-
- roblib-solr-more-results
- }
+ if (numberOfDocs > 0) {
+ results_url = '
see all results ('
+ + total_found + ') ';
+ jQuery('#' + 'roblib-search-solr-site-results-more').empty().append(results_url);
+ jQuery('#' + 'roblib-solr-more-results-results').empty().append(results_url);
+ }
});
}
diff --git a/targets/solr_site/roblib_search_solr_site.module b/targets/solr_site/roblib_search_solr_site.module
index a03516f..0cf8870 100755
--- a/targets/solr_site/roblib_search_solr_site.module
+++ b/targets/solr_site/roblib_search_solr_site.module
@@ -253,7 +253,7 @@ function roblib_search_solr_site_block_view($delta = '') {
* The solr search string.
*/
function roblib_search_solr_site_results($query) {
- print roblib_search_solr_site_get_results($query, '');
+ print roblib_search_solr_site_get_results($query, '-bundle:bestbet');
exit();
}
diff --git a/targets/solr_site/theme/roblib-search-solr-site-results.tpl.php b/targets/solr_site/theme/roblib-search-solr-site-results.tpl.php
index 5ff9269..d6b30b3 100644
--- a/targets/solr_site/theme/roblib-search-solr-site-results.tpl.php
+++ b/targets/solr_site/theme/roblib-search-solr-site-results.tpl.php
@@ -20,4 +20,4 @@ if (!isset($type)){
-
+