diff --git a/modules/roblib_search_eds/js/eds_results_article.js b/modules/roblib_search_eds/js/eds_results_article.js index 177d700..8f2f7d0 100644 --- a/modules/roblib_search_eds/js/eds_results_article.js +++ b/modules/roblib_search_eds/js/eds_results_article.js @@ -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; diff --git a/modules/roblib_search_eds/js/eds_results_book.js b/modules/roblib_search_eds/js/eds_results_book.js index a4d01a4..6a1ff42 100644 --- a/modules/roblib_search_eds/js/eds_results_book.js +++ b/modules/roblib_search_eds/js/eds_results_book.js @@ -3,7 +3,7 @@ Drupal.behaviors.roblib_search_eds = { if (context == document) { $query = drupalSettings.path.currentPath.replace('roblib_search/', ''); $url = settings.eds_book_search_url + $query; - profile = settings.eds_book_profile; + book_profile = settings.eds_book_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 = { 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=lite&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='+ book_profile + '&mode=bool&lang=en&bquery='; jQuery.each(data.documents, function (key, val) { id = 'roblib-search-eds-' + counter;