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
}
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';
}
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';