Remove broken old JavaScript in Google Book preview code
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 12 Aug 2010 07:42:20 +0000 (07:42 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 12 Aug 2010 07:42:20 +0000 (07:42 +0000)
I /think/ this was supposed to change the title of the "Preview" link to
"Read this online" or the like in the case that the full text is available,
but it was relying on a function that didn't exist (setText) and trying
to reference an ID that didn't exists. So it broke in those rare cases
where Google Books did provide the full text.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17181 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/craftsman/js/rdetail.js
Open-ILS/web/opac/skin/default/js/rdetail.js

index 2455b29..b627289 100644 (file)
@@ -1089,11 +1089,6 @@ function GBPreviewCallback(GBPBookInfo) {
        }
 
        if ( GBPBook.preview != "noview" ) {
-               if ( GBPBook.preview == 'full' ) {
-                       setText( $('rdetail_preview_link'), $('rdetail_preview_full_text').innerHTML );
-                       $('rdetail_preview_link_a').title = $('rdetail_preview_title').innerHTML;      
-               }
-
                // Add a button below the book cover image to load the preview.
                GBPBadge = document.createElement( 'img' );
                GBPBadge.src = 'http://books.google.com/intl/en/googlebooks/images/gbs_preview_button1.gif';
index 73d8026..93bdeef 100644 (file)
@@ -1088,11 +1088,6 @@ function GBPreviewCallback(GBPBookInfo) {
        }
 
        if ( GBPBook.preview != "noview" ) {
-               if ( GBPBook.preview == 'full' ) {
-                       setText( $('rdetail_preview_link'), $('rdetail_preview_full_text').innerHTML );
-                       $('rdetail_preview_link_a').title = $('rdetail_preview_title').innerHTML;      
-               }
-
                // Add a button below the book cover image to load the preview.
                GBPBadge = document.createElement( 'img' );
                GBPBadge.src = 'http://books.google.com/intl/en/googlebooks/images/gbs_preview_button1.gif';