commit 9ac6d090cc2e1aec924e844ebcb5b9052daad6e8
parent 6609df1dddc86fe7897388c8bdaaa45b2835096d
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 29 Apr 2010 21:53:03 +0000
Allow accessDate to be set explicitly false for web translators
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js
@@ -1425,7 +1425,7 @@ Zotero.Translate.prototype._itemDone = function(item, attachedTo) {
item.itemType = item.complete = undefined;
// automatically set access date if URL is set
- if(item.url && !item.accessDate && this.type == "web") {
+ if(item.url && typeof item.accessDate == 'undefined' && this.type == "web") {
item.accessDate = "CURRENT_TIMESTAMP";
}
@@ -1633,7 +1633,7 @@ Zotero.Translate.prototype._itemDone = function(item, attachedTo) {
// if that fails, use document if possible
mimeType = attachment.document.contentType
}
-
+
// same procedure for title as mime type
if(attachment.title) {
title = attachment.title;