Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.
Go to file
Dan Stillman 27cb099c82 Allow asynchronous item saving in import translators
This allows for imported items to be saved individually instead of being
saved in a batch after processing the entire imported file (which for
large imports would hang the UI, even if the actual saving was
asynchronous). This also fixes the progress meter during asynchronous
saves.

To take advantage of this, import translators will need to return a
promise when available (using the native Promise object) from doImport()
and wait for optional promises from item.complete().

The logic here can probably be streamlined further. (E.g., we might be
able to say that item.complete() always returns a promise.) It's
complicated by the fact that, at the moment, Promise isn't available in
child sandboxes, though this can probably be fixed.

Tests forthcoming, but they require a translator that supports this,
which needs to be committed separately.

View with -w for a cleaner diff.
2017-02-08 14:56:44 -05:00
chrome Allow asynchronous item saving in import translators 2017-02-08 14:56:44 -05:00
components Fix handling of some old-style URLs in zotero:// protocol handler 2017-02-08 00:20:52 -05:00
defaults/preferences "Import"/"Import from Clipboard" shortcut key changes 2017-01-19 15:28:27 -05:00
resource Add text color buttons to notes, and move direction to context menu 2017-02-03 15:33:05 -05:00
styles@361dab8015 Update submodules 2017-01-10 01:57:50 -05:00
test Fix additional file sync error with no remote stored hash 2017-02-08 14:12:16 -05:00
translators@d8a5aa8cf5 Update translators 2017-01-27 17:46:25 -05:00
.gitattributes Fix enforcing of Unix newlines for SQL files 2016-02-26 18:37:44 -05:00
.gitmodules Add Chai-as-Promised 2015-09-18 03:34:03 -05:00
.travis.yml Enable 45 ESR for Travis, since it's still used on Windows 2017-01-24 02:53:26 -05:00
chrome.manifest Add Ukrainian locale 2014-05-16 14:51:49 -04:00
CONTRIBUTING.md Create CONTRIBUTING.md 2016-02-08 19:28:05 -05:00
COPYING Switch client code license to Affero GPL version 3 2011-05-18 18:34:22 +00:00
install.rdf Update Fx minVersion to 45 2016-12-13 09:12:55 -05:00
README.md Merge branch '4.0' 2015-11-01 21:22:13 -05:00
update.rdf Update Fx minVersion to 45 2016-12-13 09:12:55 -05:00

Zotero

Build Status

Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.

Please post feature requests or bug reports to the Zotero Forums. If you're having trouble with Zotero, see Getting Help.

For more information on how to use this source code, see the Zotero wiki.