Browse Source

encode the query portion of data object returned from ebsco so we can use it in our url back to ebsco

2.x-ebsco
ppound 6 years ago
parent
commit
62c2f1f426
  1. 2
      targets/eds/js/eds_results.js
  2. 2
      targets/eds/js/eds_results_article.js

2
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) {

2
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;

Loading…
Cancel
Save