diff --git a/chrome/chromeFiles/content/scholar/xpcom/search.js b/chrome/chromeFiles/content/scholar/xpcom/search.js index 15014fe4d..335f3071b 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/search.js +++ b/chrome/chromeFiles/content/scholar/xpcom/search.js @@ -308,7 +308,7 @@ Scholar.Search.prototype._buildQuery = function(){ case 'collectionID': condSQL += "collectionID "; if (tables[i][j]['operator']=='isNot'){ - sql += "NOT "; + condSQL += "NOT "; } // Add given collection id condSQL += "IN (?,"; @@ -376,7 +376,7 @@ Scholar.Search.prototype._buildQuery = function(){ break; case 'is': - sql += '=?'; + condSQL += '=?'; condSQLParams.push(tables[i][j]['value']); break; @@ -386,7 +386,7 @@ Scholar.Search.prototype._buildQuery = function(){ break; case 'greaterThan': - sql += '>?'; + condSQL += '>?'; condSQLParams.push({int:tables[i][j]['value']}); break;