diff --git a/targets/eds/js/eds_results.js b/targets/eds/js/eds_results.js index f3e9f76..befdaa1 100644 --- a/targets/eds/js/eds_results.js +++ b/targets/eds/js/eds_results.js @@ -75,8 +75,9 @@ Drupal.behaviors.roblib_search_eds = { //var host = "http://eds-api.ebscohost.com"; //var get = "/edsapi/rest/Search?query=history&searchmode=all&resultsperpage=20&pagenumber=1&sort=relevance&highlight=y&includefacets=y&facetfilter=1%2cSourceType%3aMagazines%2cSourceType%3aNews%2cSourceType%3aAcademic+Journals%2cSourceType%3aConference+Materials&view=detailed"; var href_str = 'http://search.ebscohost.com/login.aspx?direct=true&site=ehost-live&scope=site&type=1&custid=uprince&groupid=main&profid=' + profile + '&mode=bool&lang=en&bquery='; - jQuery('#roblib-search-eds-more').empty().append('See all results (' + data.recordCount + ')'); - jQuery('#roblib-eds-books-more-results').empty().append('See all results (' + data.recordCount + ')'); + jQuery('#roblib-search-eds-more').empty().append('See all results (' + data.recordCount + ')'); + jQuery('#roblib-eds-books-more-results').empty().append('See all results (' + data.recordCount + ')'); + jQuery('#roblib-eds-books-toc').empty().append('Books (' + data.recordCount + ')'); }); } diff --git a/targets/eds/js/eds_results_article.js b/targets/eds/js/eds_results_article.js index 83add91..fd28ac6 100644 --- a/targets/eds/js/eds_results_article.js +++ b/targets/eds/js/eds_results_article.js @@ -73,8 +73,8 @@ Drupal.behaviors.roblib_search_eds_articles = { var query_str = data.queries[0].query; var href_str = 'http://search.ebscohost.com/login.aspx?direct=true&site=ehost-live&scope=site&type=1&custid=uprince&groupid=main&profid=' + profile + '&mode=bool&lang=en&bquery='; jQuery('#roblib-search-eds-article-more').empty().append('See all results (' + data.recordCount + ')'); - jQuery('#roblib-eds-articles-more-results').empty().append('See all results (' + data.recordCount + ')'); - + jQuery('#roblib-eds-articles-more-results').empty().append('See all results (' + data.recordCount + ')'); + jQuery('#roblib-eds-articles-toc').empty().append('Articles (' + data.recordCount + ')'); }); } } diff --git a/targets/eds/theme/roblib-search-eds-articles.tpl.php b/targets/eds/theme/roblib-search-eds-articles.tpl.php index 6b09c1c..0670c65 100644 --- a/targets/eds/theme/roblib-search-eds-articles.tpl.php +++ b/targets/eds/theme/roblib-search-eds-articles.tpl.php @@ -17,6 +17,7 @@
+ + diff --git a/targets/passthru_results/css/roblib_search_islandscholar.css b/targets/passthru_results/css/roblib_search_islandscholar.css new file mode 100644 index 0000000..97e358e --- /dev/null +++ b/targets/passthru_results/css/roblib_search_islandscholar.css @@ -0,0 +1,27 @@ +/* + Document : roblib_search_evergreen + Created on : Apr 11, 2013, 2:27:50 PM + Author : ppound + Description: + Purpose of the stylesheet follows. +*/ + + .islandscholar-citation, .islandscholar-author{ + font-size: smaller; + } +.islandscholar-hostTitle{ + font-size: smaller; + font-style: italic; +} +.islandscholar-genre, .islandscholar-volume{ + padding-left: 10px; font-size: smaller; +} + +.islandscholar-authors, .islandscholar-source { + padding-left: 10px; +} + +.islandscholar-label { + font-size: smaller; font-weight: bolder; +} + diff --git a/targets/passthru_results/js/islandscholar_results.js b/targets/passthru_results/js/islandscholar_results.js new file mode 100644 index 0000000..e90a2c0 --- /dev/null +++ b/targets/passthru_results/js/islandscholar_results.js @@ -0,0 +1,99 @@ +Drupal.behaviors.roblib_search_islandscholar = { + attach: function (context, settings) { + url = settings.roblib_search_islandscholar.search_url; + jQuery.getJSON(url, function (data) { + var items = []; + var numberOfDocs = 0; + try { + numberOfDocs = data.response.docs.length; + } catch (err) { + // do nothing leave docLength at 0 + } + if (numberOfDocs < 1) { + jQuery('#' + 'roblib-search-content-islandscholar').empty().append('No Results'); + jQuery('.' + 'pane-roblib-search-islandscholar-roblib-islandscholar-results').hide(); + } else { + var counter = 0; + var divs = new Array(); + var content = new Array(); + jQuery.each(data.response.docs, function (key, val) { + id = 'roblib-search-islandscholar-' + counter; + content[counter] = ''; + if (typeof val['mods_abstract_s'] !== 'undefined') { + content[counter] = val['mods_abstract_s'][0]; + } else { + content[counter] = 'No abstract available'; + } + divs[counter++] = id; + items.push('+provides an Islandscholar target for the Roblib search module +
' + ); + } +} + diff --git a/targets/passthru_results/theme/roblib-search-islandscholar.tpl.php b/targets/passthru_results/theme/roblib-search-islandscholar.tpl.php new file mode 100644 index 0000000..208a523 --- /dev/null +++ b/targets/passthru_results/theme/roblib-search-islandscholar.tpl.php @@ -0,0 +1,13 @@ + +