Browse Source

fixed bug with islandscholar target when using jquery 1 7

2.x-ebsco
Paul Pound 11 years ago
parent
commit
83cc4fd169
  1. 8
      targets/islandscholar/js/islandscholar_results.js

8
targets/islandscholar/js/islandscholar_results.js

@ -17,10 +17,10 @@ Drupal.behaviors.roblib_search_islandscholar = {
var divs = new Array();
var content = new Array();
jQuery.each(data.response.docs, function(key, val) {
id = 'roblib_search_islandscholar_' + counter;
id = 'roblib-search-islandscholar-' + counter;
content[counter] = '';
if(typeof val['mods.abstract'] !== 'undefined' ){
content[counter] = val['mods.abstract'];
content[counter] = val['mods.abstract'][0];
}
divs[counter++] = id;
items.push('<div class ="roblib-search-row" id="' + id + '">\n\
@ -99,13 +99,13 @@ Drupal.behaviors.roblib_search_islandscholar = {
jQuery('#roblib-search-content-islandscholar').empty().append(items.join(''));
qtipify(divs, content, 'Abstract');
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-islandscholar-more').empty().append('<a id="islandscholar-see-more-result"' +
' href="http://www.islandscholar.ca/islandora/solr/search/' + query + '">see all ' + number + ' results</a>');
qtipify(divs, content, 'Abstract');
//items = showMoreItems(items, number);
}
});
}

Loading…
Cancel
Save