Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
dev:how_to_write_a_zotero_translator_2nd_edition [2010/10/19 23:23] – rmzelle | dev:how_to_write_a_zotero_translator_2nd_edition [2017/11/12 19:53] – external edit 127.0.0.1 |
---|
| <html><p id="zotero-5-update-warning" style="color: red; font-weight: bold">We’re |
| in the process of updating the documentation for |
| <a href="https://www.zotero.org/blog/zotero-5-0">Zotero 5.0</a>. Some documentation |
| may be outdated in the meantime. Thanks for your understanding.</p></html> |
| |
| |
====== How to Write a Zotero Translator, 2nd Edition ====== | ====== How to Write a Zotero Translator, 2nd Edition ====== |
| |
| **Note**: This guide's advice on translator code [[https://github.com/zotero/translators/pull/1282#issuecomment-287574730|may be outdated]]. Instead, model your code on [[https://github.com/zotero/translators/pulls|recently updated translators]], [[https://github.com/zuphilip/translators/wiki/Common-code-blocks-for-translators|common code templates]], [[https://www.zotero.org/support/dev/translators/coding|the translator coding documentation]], and search for answers in the [[https://forums.zotero.org/discussions|Zotero Forums]] and [[https://github.com/zotero/translators/issues|on GitHub]]. |
| |
===== Table of Contents ===== | ===== Table of Contents ===== |
| |
[[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 1|Chapter 1: Introduction]] | * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 1|Chapter 1: Introduction]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 2|Chapter 2: General Troubleshooting Guidelines]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 3|Chapter 3: Required Software (all free)]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 4|Chapter 4: The DOM & HTML]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 5|Chapter 5: XPaths (Directions)]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 6|Chapter 6: JavaScript Basics & Variables]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 7|Chapter 7: JavaScript Methods & Math]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 8|Chapter 8: JavaScript If Statements]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 9|Chapter 9: JavaScript Loops]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 10|Chapter 10: JavaScript Functions]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 11|Chapter 11: XPath Objects (Containers)]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 12|Chapter 12: Regular Expressions]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 13|Chapter 13: Scaffold Metadata Tab]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 14|Chapter 14: Scaffold DetectWeb Tab]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 15|Chapter 15: Scraping the Search Results Page: doWeb Function]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 16|Chapter 16: Scraping the Individual Entry Page: Scrape Function]] |
| * [[dev/How to Write a Zotero Translator, 2nd Edition/Chapter 17|Chapter 17: Common Problems when Scraping an Individual Entry Page]] |
| |
This tutorial is an adaptation of '[[http://niche-canada.org/zotero-guide|How to Write a Zotero Translator]]' (2009) by Adam Crymble. The 2nd Edition has been created to bring the tutorial up-to-date with Zotero 2.x translator development. | This tutorial is an adaptation of '[[http://niche-canada.org/zotero-guide|How to Write a Zotero Translator]]' (2009) by Adam Crymble. The 2nd Edition has been created to bring the tutorial up-to-date with Zotero 2.x translator development. |
| |