From df20b07c8ed1f6c6ab2443b2095dea69385c49cd Mon Sep 17 00:00:00 2001 From: ppound Date: Thu, 23 Sep 2021 15:03:57 -0300 Subject: [PATCH] use https for our proxy in eds target --- targets/eds/js/eds_results_article.js | 4 ++-- targets/eds/roblib_search_eds.module | 6 +++--- targets/eds/theme/roblib-search-eds-articles.tpl.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/targets/eds/js/eds_results_article.js b/targets/eds/js/eds_results_article.js index adb4962..b88695a 100644 --- a/targets/eds/js/eds_results_article.js +++ b/targets/eds/js/eds_results_article.js @@ -2,7 +2,7 @@ Drupal.behaviors.roblib_search_eds_articles = { attach: function (context, settings) { $url = settings.roblib_search_eds_articles.search_url; articles_profile = settings.roblib_search_eds_articles.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; @@ -65,7 +65,7 @@ Drupal.behaviors.roblib_search_eds_articles = { items.push(''); } else { - items.push('
You must login to view this result, click here to login
' );} + items.push('
You must login to view this result, click here to login
' );} }); jQuery('#' + 'roblib-search-content-eds-articles').empty().append(items.join('')); } diff --git a/targets/eds/roblib_search_eds.module b/targets/eds/roblib_search_eds.module index aaded50..9ed5a6d 100644 --- a/targets/eds/roblib_search_eds.module +++ b/targets/eds/roblib_search_eds.module @@ -62,8 +62,8 @@ function roblib_search_eds_config_form($form, &$form_state) { $form['roblib_search_eds_rest_url'] = array( '#type' => 'textfield', '#title' => t('EDS Rest endpoint'), - '#default_value' => variable_get('roblib_search_eds_rest_url', 'http://eds-api.ebscohost.com/edsapi/rest'), - '#description' => t('The base EDS URL, for example http://eds-api.ebscohost.com/edsapi/rest'), + '#default_value' => variable_get('roblib_search_eds_rest_url', 'https://eds-api.ebscohost.com/edsapi/rest'), + '#description' => t('The base EDS URL, for example https://eds-api.ebscohost.com/edsapi/rest'), '#required' => TRUE, ); $form['roblib_search_eds_auth_url'] = array( @@ -339,7 +339,7 @@ function roblib_search_eds_build_config_arr($type) { $config['profile'] = ($type === 'Books') ? variable_get('roblib_search_eds_book_profile', 'apilite') : variable_get('roblib_search_eds_profile', 'edsapi'); $config['auth_url'] = variable_get('roblib_search_eds_auth_url', 'https://eds-api.ebscohost.com/Authservice/rest'); - $config['rest_url'] = variable_get('roblib_search_eds_rest_url', 'http://eds-api.ebscohost.com/edsapi/rest'); + $config['rest_url'] = variable_get('roblib_search_eds_rest_url', 'https://eds-api.ebscohost.com/edsapi/rest'); $config['guest'] = variable_get('roblib_search_eds_guest','y'); return $config; } diff --git a/targets/eds/theme/roblib-search-eds-articles.tpl.php b/targets/eds/theme/roblib-search-eds-articles.tpl.php index 0670c65..26b1dbe 100644 --- a/targets/eds/theme/roblib-search-eds-articles.tpl.php +++ b/targets/eds/theme/roblib-search-eds-articles.tpl.php @@ -22,7 +22,7 @@ /** * Alternate way to create link back to ebscohost.
- +