Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
dev:translator_development_outside_scaffold [2010/07/24 16:56] – added tomrochewiki | dev:translator_development_outside_scaffold [2010/07/24 17:05] – sync with my emacs buffer tomrochewiki | ||
---|---|---|---|
Line 35: | Line 35: | ||
=== Translator file location === | === Translator file location === | ||
- | Zotero installs its translators and related code as files in the subdirectory | + | Zotero installs its translators and related code as files in the subdirectory |
* if the path to your Firefox profile=< | * if the path to your Firefox profile=< | ||
* if the path to your Zotero=< | * if the path to your Zotero=< | ||
Line 44: | Line 44: | ||
At the highest level, a Zotero translator (for versions >= 2.0) consists of | At the highest level, a Zotero translator (for versions >= 2.0) consists of | ||
- | * a single [[translators_reference_guide# | + | * a single [[translators_reference_guide# |
* non-metadata code, consisting of | * non-metadata code, consisting of | ||
- | * a //detectWeb// function. This must return a string corresponding to a defined Zotero type. For a list of Zotero type names, see the values of the //itemTypes.//* properties in [[https:// | + | * a '' |
- | * a //doWeb// function. This actually writes an item corresponding to your web resource to your Zotero repository. | + | * a '' |
==== Translator development tools ==== | ==== Translator development tools ==== | ||
Line 58: | Line 58: | ||
===== Create or modify a translator file ===== | ===== Create or modify a translator file ===== | ||
+ | |||
+ | One can | ||
+ | * create a new translator file by copy/ | ||
+ | * work directly on an existing translator file (e.g. to fix a bug or add an feature) without modifying the '' | ||
===== Edit, run, test, debug ===== | ===== Edit, run, test, debug ===== |