thinkos ... it seems to be working now
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 14 Mar 2008 13:28:43 +0000 (13:28 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 14 Mar 2008 13:28:43 +0000 (13:28 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9009 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/result_common.js

index 3810402..2a45756 100644 (file)
@@ -3,7 +3,7 @@ var recordsHandled = 0;
 var recordsCache = [];
 var lowHitCount = 4;
 var isbnList = '';
-var googleBooks = false;
+var googleBooks = true;
 
 var resultFetchAllRecords = false;
 var resultCompiledSearch = null;
@@ -400,10 +400,10 @@ function unhideGoogleBooks (data) {
     for ( var i in data ) {
         if (data[i].preview == 'noview') continue;
 
-        var gbspan = $n('googleBooks-' + i);
-        var gba = $n("googleBooks-link",gbspan)
+        var gbspan = $n(document.documentElement, 'googleBooks-' + i);
+        var gba = $n(gbspan, "googleBooks-link");
 
-        gba..setAttribute(
+        gba.setAttribute(
             'href',
             data[i].info_url
         );