diff --git a/targets/eds/js/eds_results.js b/targets/eds/js/eds_results.js index 92a051c..8ef5d46 100644 --- a/targets/eds/js/eds_results.js +++ b/targets/eds/js/eds_results.js @@ -22,7 +22,7 @@ Drupal.behaviors.roblib_search_eds = { jQuery.each(data.queries, function (key7, query) { queries.push(query.query); }) - var query_str = data.queries[0].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='; jQuery.each(data.documents, function (key, val) { diff --git a/targets/eds/js/eds_results_article.js b/targets/eds/js/eds_results_article.js index 0724a5a..6628789 100644 --- a/targets/eds/js/eds_results_article.js +++ b/targets/eds/js/eds_results_article.js @@ -22,7 +22,7 @@ Drupal.behaviors.roblib_search_eds_articles = { jQuery.each(data.queries, function (key7, query) { queries.push(query.query); }) - var query_str = data.queries[0].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&profile=eds&mode=bool&lang=en&bquery='; jQuery.each(data.documents, function (key, val) { id = 'roblib-search-eds-article-' + counter;