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:translators:scaffold [2017/11/12 19:53] – external edit 127.0.0.1 | dev:translators:scaffold [2018/02/09 03:06] – Update further, add new screenshot zuphilip | ||
---|---|---|---|
Line 7: | Line 7: | ||
====== Scaffold - an IDE for Zotero translators ====== | ====== Scaffold - an IDE for Zotero translators ====== | ||
- | Translators are stored as individual JavaScript files in the " | + | Translators are stored as individual JavaScript files with additional metadata at the top and tests at the bottom |
Scaffold supports editing and testing web translators and import translators. Search and export translators can not yet be tested using the IDE. | Scaffold supports editing and testing web translators and import translators. Search and export translators can not yet be tested using the IDE. | ||
+ | |||
+ | |||
===== Installation ===== | ===== Installation ===== | ||
- | * [[https:// | + | Scaffold does run within Zotero 5.0 as an [[:plugins|plugin]], which is installed by the following steps: |
- | Scaffold 3 includes support for the [[dev:translators: | + | * Download the XPI file of the [[https:// |
+ | * Open Zotero | ||
+ | * Tools -> Add-ons -> (gear wheel) -> Install Add-on From File | ||
+ | |||
+ | Previously to Zotero | ||
- | Scaffold does not run in Zotero Standalone. | ||
- | **Note:** Scaffold will not work correctly when Zotero Standalone is open, as Zotero in Firefox will switch to " | ||
===== Interface ===== | ===== Interface ===== | ||
- | After installation, | + | After installation, |
Selecting the Tools menu's " | Selecting the Tools menu's " | ||
- | {{:dev:scaffold2.0-metadata.png? | + | {{:dev:translators: |
==== Top buttons ==== | ==== Top buttons ==== | ||
Line 36: | Line 40: | ||
{{: | {{: | ||
- | Saves and runs the '' | + | Saves and runs the '' |
{{: | {{: | ||
- | Saves and runs the '' | + | Saves and runs the '' |
+ | |||
+ | {{: | ||
+ | Saves and runs the '' | ||
+ | |||
+ | {{: | ||
+ | Saves and runs the '' | ||
==== Tabs ==== | ==== Tabs ==== | ||
Line 45: | Line 56: | ||
**Metadata** \\ Shows the translator metadata. Translator IDs can be generated via the " | **Metadata** \\ Shows the translator metadata. Translator IDs can be generated via the " | ||
- | **Code** \\ The text box in this tab contains the translator' | + | **Code** \\ The text box in this tab contains the translator' |
+ | |||
+ | **Import** \\ For import translator you can copy here test data to import. | ||
+ | |||
+ | **Tests**\\ This tab contains the data for all test cases saved with the translator, which is currently open. | ||
+ | |||
+ | **Testing**\\ This is a list of all test cases for the current translator, which you can run, check or update. | ||
- | {{: | + | **Browser**\\ You can open specified URLs in the browser tab and then test the detection and data extraction for that website. |
==== Debug Output ==== | ==== Debug Output ==== | ||
Line 108: | Line 125: | ||
In the translator load window, import translators are arranged in alphabetical order at the bottom of the list. | In the translator load window, import translators are arranged in alphabetical order at the bottom of the list. | ||
- | **Note:** The screenshots on this page do not reflect the changes made in Scaffold 2.1.2 to add support for import translators. | ||
===== Scaffold Troubleshooting ===== | ===== Scaffold Troubleshooting ===== |