From 6e2d1f683ab64fac0275b74cfc6395d3ea219fb9 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Fri, 22 May 2015 22:24:46 -0400 Subject: [PATCH] Get translation at least partly working I'm pretty sure I've only scratched the surface here, but at least basic things work. --- .../zotero/xpcom/translation/translate.js | 11 ++ .../xpcom/translation/translate_item.js | 187 ++++++------------ 2 files changed, 73 insertions(+), 125 deletions(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index ad9310bbc..8067f0512 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -114,6 +114,17 @@ Zotero.Translate.Sandbox = { item[i] = val.trim(); } } + + // Clean empty creators + if (item.creators) { + for (var i=0; i