Browse Source

added the more results to the bottom of the solr site results

2.x-ebsco
Paul Pound 7 years ago
parent
commit
da99c61dda
  1. 13
      targets/solr_site/css/roblib_search_solr_site.css
  2. 4
      targets/solr_site/js/solr_site_results.js
  3. 2
      targets/solr_site/theme/roblib-search-solr-site-results.tpl.php

13
targets/solr_site/css/roblib_search_solr_site.css

@ -1,11 +1,3 @@
/*
Document : roblib_search_evergreen
Created on : Apr 11, 2013, 2:27:50 PM
Author : ppound
Description:
Purpose of the stylesheet follows.
*/
.solr-site-results {
white-space: nowrap;
@ -22,5 +14,10 @@
color: gray;
}
.roblib-solr-more-results {
text-align: center;
background-color: lightblue;
}

4
targets/solr_site/js/solr_site_results.js

@ -36,6 +36,10 @@ Drupal.behaviors.roblib_search_solr_site_results = {
{
jQuery('#' + 'roblib-search-solr-site-results-more').empty().append('<a href="'+ baseUrl + '/search/' + default_site_type + query +'"' + '>see all results ('
+ total_found + ') </a>');
jQuery('.' + 'roblib-solr-more-results').empty().append('<a href="'+ baseUrl + '/search/' + default_site_type + query +'"' + '>see all results ('
+ total_found + ') </a>');
roblib-solr-more-results
}
});
}

2
targets/solr_site/theme/roblib-search-solr-site-results.tpl.php

@ -19,3 +19,5 @@ if (!isset($type)){
<div class ="roblib-search-content solr-site-<?php echo $type;?>" id="roblib-search-content-solr-site-<?php echo $type;?>">
<img src="<?php print (empty($spinner_path) ? ' ' : $spinner_path); ?>"/>
</div>
<div class="roblib-solr-more-results roblib-solr-more-button button"></div>

Loading…
Cancel
Save