Updated book title/link when we receive the OL entry for a book
authorMichael Ang <mang@archive.org>
Mon, 29 Nov 2010 22:07:47 +0000 (22:07 +0000)
committerMichael Ang <mang@archive.org>
Mon, 29 Nov 2010 22:07:47 +0000 (22:07 +0000)
BookReader/BookReader.js

index 701a216..ee32dfa 100644 (file)
@@ -4544,7 +4544,7 @@ BookReader.prototype.gotOpenLibraryRecord = function(self, olObject) {
         // $$$mang cleanup
         self.bookUrl = 'http://openlibrary.org' + olObject.key;
         self.bookTitle = olObject['title'];
-        $('#BRreturn a').attr('href', this.bookUrl);
+        $('#BRreturn a').attr( {'href': self.bookUrl, 'title': "Go to this book's page on Open Library" } );
         $('#BookReader .logo').attr('title', 'Go to Open Library'); // i18n
         
         $('#BRinfo').remove();