|
|
|
@ -3,7 +3,7 @@ Drupal.behaviors.roblib_search_eds_articles = {
|
|
|
|
|
if (context == document) { |
|
|
|
|
$query = drupalSettings.path.currentPath.replace('roblib_search/', ''); |
|
|
|
|
$url = settings.eds_article_search_url + $query; |
|
|
|
|
profile = settings.eds_article_profile; |
|
|
|
|
article_profile = settings.eds_article_profile; |
|
|
|
|
proxy_url = "https://proxy.library.upei.ca/login?url="; |
|
|
|
|
jQuery.getJSON($url, function (data) { |
|
|
|
|
var items = []; |
|
|
|
@ -25,7 +25,7 @@ Drupal.behaviors.roblib_search_eds_articles = {
|
|
|
|
|
queries.push(query.query); |
|
|
|
|
}) |
|
|
|
|
var query_str = encodeURI(data.queries[0].query); |
|
|
|
|
var href_str = 'https://search.ebscohost.com/login.aspx?direct=true&site=eds-live&scope=site&type=1&custid=uprince&groupid=main&profid=edsapi&mode=bool&lang=en&bquery='; |
|
|
|
|
var href_str = 'https://search.ebscohost.com/login.aspx?direct=true&site=eds-live&scope=site&type=1&custid=uprince&groupid=main&profid=' + article_profile + '&mode=bool&lang=en&bquery='; |
|
|
|
|
jQuery.each(data.documents, function (key, val) { |
|
|
|
|
id = 'roblib-search-eds-article-' + counter; |
|
|
|
|
divs[counter++] = id; |
|
|
|
|