diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js index a7de969cf..85ed93ed1 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/data_access.js +++ b/chrome/chromeFiles/content/scholar/xpcom/data_access.js @@ -971,6 +971,12 @@ Scholar.Item.prototype.addTag = function(tag){ } Scholar.Item.prototype.getTags = function(){ + var sql = "SELECT tag FROM tags WHERE tagID IN " + + "(SELECT tagID FROM itemTags WHERE itemID=" + this.getID() + ")"; + return Scholar.DB.columnQuery(sql); +} + +Scholar.Item.prototype.getTagIDs = function(){ var sql = "SELECT tagID FROM itemTags WHERE itemID=" + this.getID(); return Scholar.DB.columnQuery(sql); }