From 06387f1d8d89cabe8ef27105b2a05b806694fcbf Mon Sep 17 00:00:00 2001 From: Sean Aery Date: Mon, 26 Feb 2024 16:34:36 -0500 Subject: [PATCH] Remove deprecated/duplicate JS file for Google Books preview. --- .../trln_argon/google_books_preview.js.erb | 52 ------------------- 1 file changed, 52 deletions(-) delete mode 100644 app/assets/javascripts/trln_argon/google_books_preview.js.erb diff --git a/app/assets/javascripts/trln_argon/google_books_preview.js.erb b/app/assets/javascripts/trln_argon/google_books_preview.js.erb deleted file mode 100644 index 835b58bd..00000000 --- a/app/assets/javascripts/trln_argon/google_books_preview.js.erb +++ /dev/null @@ -1,52 +0,0 @@ -Blacklight.onLoad(function() { - $(window).on('load', function() { - var previewAvailable = function (item) { - try { - return $.inArray(item.accessInfo.viewability, ['PARTIAL', 'ALL_PAGES']) >= 0; - } catch(e) { - } - return false; - }; - - var getPreviewLink = function(data) { - if ( data.items && data.items.length > 0 ) { - try { - for(var i=0, n=data.items.length; i'>"); - $("#google-books-preview-image").after( - ' Preview this title via Google Book Search '); - } - }); - } - }); - } - } - }); -});