Permalink
Browse files

Add a "New" tag to items grabbed from the Web

  • Loading branch information...
fbennett committed Feb 20, 2013
1 parent 455a5cb commit 5274b6ce5935c526ceb3f11220c541ff9130bb78
Showing with 5 additions and 0 deletions.
  1. +5 −0 chrome/content/zotero/xpcom/translation/translate.js
@@ -578,6 +578,11 @@ Zotero.Translate.Sandbox = {
item.accessDate = "CURRENT_TIMESTAMP";
}
+ // Add a "New" tag to the item
+ if(Zotero.Prefs.get("newWebItemTag")) {
+ item.tags.push(Zotero.Prefs.get("newWebItemTag"));
+ }
+
//consider type-specific "title" alternatives
var altTitle = Zotero.ItemFields.getName(Zotero.ItemFields.getFieldIDFromTypeAndBase(item.itemType, 'title'));
if(altTitle && item[altTitle]) item.title = item[altTitle];

0 comments on commit 5274b6c

Please sign in to comment.