diff --git a/chrome/content/zotero/preferences.xul b/chrome/content/zotero/preferences.xul index 359110961..e5202fc04 100644 --- a/chrome/content/zotero/preferences.xul +++ b/chrome/content/zotero/preferences.xul @@ -49,6 +49,7 @@ To add a new preference: + @@ -88,6 +89,7 @@ To add a new preference: + diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js index a4e679a3b..c3c99846f 100644 --- a/chrome/content/zotero/xpcom/translate.js +++ b/chrome/content/zotero/xpcom/translate.js @@ -1316,7 +1316,10 @@ Zotero.Translate.prototype._itemDone = function(item, attachedTo) { } } - if(item.tags) { + // handle tags, if this is an import translation or automatic tagging is + // enabled in the preferences (as it is by default) + if(item.tags && + (this.type == "import" || Zotero.Prefs.get("automaticTags"))) { for each(var tag in item.tags) { if(typeof(tag) == "string") { // accept strings in tag array as automatic tags, or, if diff --git a/chrome/locale/en-US/zotero/preferences.dtd b/chrome/locale/en-US/zotero/preferences.dtd index 8d8d5ef8a..720fc6e4e 100644 --- a/chrome/locale/en-US/zotero/preferences.dtd +++ b/chrome/locale/en-US/zotero/preferences.dtd @@ -13,6 +13,7 @@ + diff --git a/defaults/preferences/zotero.js b/defaults/preferences/zotero.js index ddf5442db..99c5f000c 100644 --- a/defaults/preferences/zotero.js +++ b/defaults/preferences/zotero.js @@ -14,6 +14,7 @@ pref("extensions.zotero.automaticSnapshots",true); pref("extensions.zotero.downloadAssociatedFiles",false); pref("extensions.zotero.reportTranslationFailure",true); pref("extensions.zotero.enableMacClipboard",false); +pref("extensions.zotero.automaticTags",true); pref("extensions.zotero.lastCreatorFieldMode",0); pref("extensions.zotero.lastRenameAssociatedFile", false);