Duh. == not = for an equality test
authorDan Scott <dan@coffeecode.net>
Sat, 28 May 2011 04:00:47 +0000 (00:00 -0400)
committerDan Scott <dan@coffeecode.net>
Fri, 3 Jun 2011 15:38:17 +0000 (11:38 -0400)
Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/web/opac/skin/default/js/result_common.js

index 6b50eb1..523ca7c 100644 (file)
@@ -717,8 +717,8 @@ function renderOpenLibraryLinks(response) {
                 /* Find matching items by their fromEdition key */
                 dojo.forEach(results.items, function (item) {
                     /* Populate the links if we have a match */
-                    if (item.fromRecord = oled) {
-                        var lnode = dojo.query('span[name="googleBooksLink-' + isbn + '"');
+                    if (item.fromRecord == oled) {
+                        /* alert for now */
                         alert(item.status + ' ' + item.match + ' ' + item.url);
                     }
                 });