From adac1fca75513cb57ef80d0cab587535e527457b Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Thu, 17 Oct 2024 11:20:40 -0300 Subject: [PATCH] remove non upei guest links for off campus users --- modules/roblib_search_eds/js/eds_results_article.js | 8 ++++---- modules/roblib_search_eds/js/eds_results_book.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/roblib_search_eds/js/eds_results_article.js b/modules/roblib_search_eds/js/eds_results_article.js index 8f2f7d0..489ebc8 100644 --- a/modules/roblib_search_eds/js/eds_results_article.js +++ b/modules/roblib_search_eds/js/eds_results_article.js @@ -74,10 +74,10 @@ Drupal.behaviors.roblib_search_eds_articles = { } var non_upei_link = ''; var upei_link = 'SEE ALL (' + data.recordCount + ') '; - if (!data.is_local_ip) { - non_upei_link = '[Non-UPEI]'; - upei_link = upei_link + non_upei_link; - } + // if (!data.is_local_ip) { + // non_upei_link = '[Non-UPEI]'; + // upei_link = upei_link + non_upei_link; + // } jQuery('#roblib-search-eds-article-more').empty().append(upei_link); jQuery('#roblib-eds-articles-more-results').empty().append(upei_link); jQuery('#roblib-eds-articles-toc').empty().append('Articles (' + data.recordCount + ')'); diff --git a/modules/roblib_search_eds/js/eds_results_book.js b/modules/roblib_search_eds/js/eds_results_book.js index 6a1ff42..61fe43c 100644 --- a/modules/roblib_search_eds/js/eds_results_book.js +++ b/modules/roblib_search_eds/js/eds_results_book.js @@ -76,10 +76,10 @@ Drupal.behaviors.roblib_search_eds = { } var non_upei_link = ''; var upei_link = 'SEE ALL (' + data.recordCount + ') '; - if (!data.is_local_ip) { - non_upei_link = '[Non-UPEI]'; - upei_link = upei_link + non_upei_link; - } + // if (!data.is_local_ip) { + // non_upei_link = '[Non-UPEI]'; + // upei_link = upei_link + non_upei_link; + // } jQuery('#roblib-search-eds-more').empty().append(upei_link); jQuery('#roblib-eds-books-more-results').empty().append(upei_link); jQuery('#roblib-eds-books-toc').empty().append('Books (' + data.recordCount + ')');