closes #503, add pref to automatically grab tags

This commit is contained in:
Simon Kornblith 2007-01-30 03:15:34 +00:00
parent 90623de366
commit 8ee2b529ae
4 changed files with 8 additions and 1 deletions

View File

@ -49,6 +49,7 @@ To add a new preference:
<preference id="pref-parseEndNoteMIMETypes" name="extensions.zotero.parseEndNoteMIMETypes" type="bool" onchange="Zotero.Ingester.MIMEHandler.init()"/>
<preference id="pref-automaticSnapshots" name="extensions.zotero.automaticSnapshots" type="bool"/>
<preference id="pref-downloadAssociatedFiles" name="extensions.zotero.downloadAssociatedFiles" type="bool"/>
<preference id="pref-automaticTags" name="extensions.zotero.automaticTags" type="bool"/>
<preference id="pref-openURL-resolver" name="extensions.zotero.openURL.resolver" type="string"/>
<preference id="pref-openURL-version" name="extensions.zotero.openURL.version" type="string"/>
</preferences>
@ -88,6 +89,7 @@ To add a new preference:
<checkbox label="&zotero.preferences.parseEndnote;" preference="pref-parseEndNoteMIMETypes"/>
<checkbox label="&zotero.preferences.automaticSnapshots;" preference="pref-automaticSnapshots"/>
<checkbox label="&zotero.preferences.downloadAssociatedFiles;" preference="pref-downloadAssociatedFiles"/>
<checkbox label="&zotero.preferences.automaticTags;" preference="pref-automaticTags"/>
</groupbox>
<groupbox>

View File

@ -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

View File

@ -13,6 +13,7 @@
<!ENTITY zotero.preferences.parseEndnote "Use Zotero for downloaded EndNote files">
<!ENTITY zotero.preferences.automaticSnapshots "Automatically take snapshots when creating items from web pages">
<!ENTITY zotero.preferences.downloadAssociatedFiles "Automatically attach associated PDFs and other files when saving items">
<!ENTITY zotero.preferences.automaticTags "Automatically tag items with keywords and subject headings">
<!ENTITY zotero.preferences.openurl.caption "OpenURL">
<!ENTITY zotero.preferences.openurl.custom "Custom...">
<!ENTITY zotero.preferences.openurl.server "Resolver:">

View File

@ -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);