Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:translators:scaffold [2022/11/24 04:05] – [Debug Output] dstillman | dev:translators:scaffold [2024/04/26 06:57] (current) – [Scaffold - an IDE for Zotero translators] dstillman | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Scaffold - an IDE for Zotero translators ====== | ====== Scaffold - an IDE for Zotero translators ====== | ||
- | Translators are stored as individual JavaScript files with additional metadata at the top and tests at the bottom in the " | + | [[dev: |
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. | ||
Line 19: | Line 19: | ||
==== Top buttons ==== | ==== Top buttons ==== | ||
- | {{: | + | {{: |
Opens the "Load Translator" | Opens the "Load Translator" | ||
Line 112: | Line 112: | ||
===== Scaffold Troubleshooting ===== | ===== Scaffold Troubleshooting ===== | ||
- | * **Why does my translator work in Scaffold but not when I click on the toolbar icon in my browser?** | ||
- | Scaffold runs the functions '' | ||
- | This can differ from the active document | + | **Why does my translator work in Scaffold but not when I click the Save to Zotero button in my browser? |
+ | Scaffold runs the functions | ||
- | * **Why won't my attachments save?** | + | These results can differ when the '' |
- | * **Why do some fields show in the output pane but not in the created item?** | + | |
- | The output pane in Scaffold shows the item object | + | |
- | The attachment information in the output pane of Scaffold merely says what Zotero is going to try to save; as the attachments are saved, they may be discarded if their actual MIME type differs from the one specified, as can happen when PDFs or other attachments are hidden by providers behind an interstitial terms or copyright notice page. | + | **Why won't my attachments |
- | Fields that are not allowed for the specified item type will be discarded, even if they show up in the output pane of Scaffold. | + | The output pane in Scaffold shows the item object as Zotero is about to save it. It does not in fact save the object. |
+ | |||
+ | **Why do some fields show in the output pane but not in the created item?** | ||
+ | |||
+ | As an item is saved, the contents of some fields may change. | ||
+ | |||
+ | The attachment information in the output pane of Scaffold merely says what Zotero is going to try to save; as the attachments are saved, they may be discarded if their actual content type differs from the one specified, as can happen when PDFs or other attachments are hidden by providers behind an interstitial terms or copyright notice page. | ||
+ | |||
+ | Fields that are not allowed for the specified item type will be added to the Extra field, even if they show up in the output pane of Scaffold. | ||
====== Further Reading ====== | ====== Further Reading ====== | ||
More detailed instructions are available at [[https:// | More detailed instructions are available at [[https:// |