Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dev:client_coding:changes_in_zotero_2.1_and_zotero_standalone [2011/07/24 22:19] – simon | dev:client_coding:changes_in_zotero_2.1_and_zotero_standalone [2011/08/21 04:35] – simon | ||
---|---|---|---|
Line 36: | Line 36: | ||
===== Locate Engines ===== | ===== Locate Engines ===== | ||
- | Zotero 2.1b6 and later support extensible locate engines. For further details, see [[Creating Locate Engines using OpenSearch]]. | + | Zotero 2.1b6 and later support extensible locate engines. For further details, see [[dev: |
====== Changes in Zotero 2.1.9 (not yet released) ====== | ====== Changes in Zotero 2.1.9 (not yet released) ====== | ||
Line 47: | Line 47: | ||
* < | * < | ||
* < | * < | ||
- | |||
- | ====== Changes in Zotero 2.2 ====== | ||
- | |||
- | * Calling Zotero.done() and Zotero.wait() during translation is no longer necessary. Zotero.done() is still used to indicate item type in translators that implement asynchronous detection (currently only unAPI). | ||
- | |||
- | ====== Changes for Zotero Connectors ====== | ||
- | |||
- | ===== Changes to translators ===== | ||
- | Zotero Everywhere will soon allow translators to operate outside of Firefox/ | ||
- | |||
- | * Firefox-specific JavaScript, with the exception of "for each", must be avoided. This includes | ||
- | * array comprehensions | ||
- | * destructuring assignment | ||
- | * several other features | ||
- | |||
- | * E4X functionality is not available. As of Zotero 2.1b6, Zotero also offers DOM XML interfaces to translators. Current trunk builds offer cross-browser utility functions for working with XPaths detailed above, which greatly simplify migration away from E4X. | ||
- | | ||
- | * Zotero.Utilities.retrieveDocument() and Zotero.Utilities.retrieveSource() should be avoided. Zotero.Utilities.retrieveDocument() will throw an error outside of Firefox, whereas Zotero.Utilities.retrieveSource() will freeze the main thread and will not work across domains. Code should be rewritten to use Zotero.Utilities.processDocuments(), | ||
- | |||
- | * Translate# | ||
- | * In Chrome and Safari, the " | ||
- | |||
- | * Translators should not expect a return value from Translate# | ||
- | |||
- | * Zotero.selectItems() should now be called with a callback function as an argument, which will receive the list of selected items when it is available. Translators may still use Zotero.selectItems() synchronously, |