Browse Source

found some more http calls to the proxy

2.x-ebsco
ppound 3 years ago
parent
commit
3eef911dac
  1. 4
      targets/eds/js/eds_results.js

4
targets/eds/js/eds_results.js

@ -2,7 +2,7 @@ Drupal.behaviors.roblib_search_eds = {
attach: function (context, settings) {
$url = settings.roblib_search_eds.search_url;
profile = settings.roblib_search_eds.eds_profile;
proxy_url = "http://proxy.library.upei.ca/login?url=";
proxy_url = "https://proxy.library.upei.ca/login?url=";
jQuery.getJSON($url, function (data) {
var items = [];
var numberOfDocs = 0;
@ -67,7 +67,7 @@ Drupal.behaviors.roblib_search_eds = {
}
items.push('</div>');
} else {
items.push('<div class ="roblib-search-row roblib-eds-unauthorized" id="\' + id + \'">You must login to view this result, <a href="http://proxy.library.upei.ca/login?url=' + href_str + query_str + '" id="eds-unauthorized-result">click here to login</a></div>' );
items.push('<div class ="roblib-search-row roblib-eds-unauthorized" id="\' + id + \'">You must login to view this result, <a href="https://proxy.library.upei.ca/login?url=' + href_str + query_str + '" id="eds-unauthorized-result">click here to login</a></div>' );
}
});
jQuery('#' + 'roblib-search-content-eds').empty().append(items.join(''));

Loading…
Cancel
Save