From f94242f7ad36cef71864d419938201b04befa128 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 5 Mar 2011 04:10:29 +0000 Subject: [PATCH] Fix Date Published in Timeline --- chrome/content/zotero/xpcom/timeline.js | 18 ++++++++++-------- components/zotero-protocol-handler.js | 9 ++------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/chrome/content/zotero/xpcom/timeline.js b/chrome/content/zotero/xpcom/timeline.js index ca07421d8..642d32d60 100644 --- a/chrome/content/zotero/xpcom/timeline.js +++ b/chrome/content/zotero/xpcom/timeline.js @@ -30,17 +30,19 @@ Zotero.Timeline = new function () { function generateXMLDetails(items, dateType) { var escapeXML = Zotero.Utilities.htmlSpecialChars; - + var content = '\n'; - for each(var arr in items) { - if (arr[dateType]) { - var item = Zotero.Items.get(arr.itemID); - var theDate =(dateType == 'date') ? Zotero.Date.multipartToSQL(arr[dateType]):arr[dateType]; - content += '