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:zotero_2.1_and_zotero_standalone_for_developers [2011/02/02 23:29] – simon | dev:zotero_2.1_and_zotero_standalone_for_developers [2011/02/08 23:48] – simon | ||
---|---|---|---|
Line 12: | Line 12: | ||
< | < | ||
- | ==== Changes to translators ==== | + | ===== Changes to translators |
* Several functions in Zotero.Utilities have been eliminated, as they were essential duplications of built-in JavaScript methods. | * Several functions in Zotero.Utilities have been eliminated, as they were essential duplications of built-in JavaScript methods. | ||
Line 25: | Line 25: | ||
* It is no longer necessary to specify " | * It is no longer necessary to specify " | ||
+ | |||
+ | * Import and export translators now show determinate progress bars. By default, Zotero computes progress by the percentage of the file read for import, or the percentage of items retrieved using Zotero.nextItem() for export. Translators can override this by calling Zotero.setProgress(percentage) to set the percentage the progress bar displays, or Zotero.setProgress(null) to show an indeterminate indicator. | ||
===== Changes to translate interface ===== | ===== Changes to translate interface ===== | ||
Line 31: | Line 33: | ||
< | < | ||
- | ====== Changes | + | |
- | ===== Changes to translation | + | ===== Locate Engines ===== |
+ | |||
+ | Zotero 2.1b6 and later support extensible locate engines. For further details, see [[Creating Locate Engines using OpenSearch]]. | ||
+ | |||
+ | ====== Changes | ||
+ | |||
+ | ===== Changes to translators | ||
Zotero Everywhere will soon allow translators to operate outside of Firefox/ | Zotero Everywhere will soon allow translators to operate outside of Firefox/ | ||
- | * Firefox-specific JavaScript must be avoided. This includes "for each" loops, array comprehension, | + | * Firefox-specific JavaScript must be avoided. This includes |
+ | * "for each" loops | ||
+ | * array comprehensions | ||
+ | * destructuring assignment | ||
+ | * several other features | ||
- | * Zotero.Utilities.retrieveDocument() and Zotero.Utilities.retrieveSource() should be avoided if possible. | + | |
+ | |||
+ | | ||
- | * Translate.getTranslatorObject() should now be called with a callback function as an argument, which will receive the translator object when it is available. | + | * Translate.getTranslatorObject() should now be called with a callback function as an argument, which will receive the translator object when it is available. This is backwards compatible with Zotero 2.1b6 and later. |
- | * 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, | + | * 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, |