@ -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>' ) ;
}
} ) ;
}