Citoid/Zotero's Tech Talk
Context
[edit]On February 29, 2016 a Tech Talk was hosted about "Automated citations in Wikipedia: Citoid and the technology behind it", presented by Sebastian Karcher (Syracuse University, Zotero).
Here's the summary he provided: <<The talk provides a very brief introduction to Marielle Volz's Citoid, the tool providing Wikipedia's new automated citations.I then focus on the technology underlying Citoid, Zotero translators, and discuss how interested users/developers can help improve that functionality to better serve the Wikipedia community.>>
Slides, video, IRC log
[edit]![](http://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Translators-citoid.pdf/page1-220px-Translators-citoid.pdf.jpg)
About Sebastian
[edit]Linklist
[edit]Citoid Demo
[edit]https://en.wikipedia.org/wiki/User:Sebastiankarcher/sandbox
http://www.nytimes.com/2009/03/29/weekinreview/29cohen.html
http://www.jstor.org/stable/40503515
Citoid Documentation
[edit]https://en.wikipedia.org/wiki/Wikipedia:TWL/Citoid#Testing
https://github.com/wikimedia/citoid
Tools/Development Environment
[edit]https://www.mozilla.org/en-US/firefox/new/
https://www.zotero.org/download/
https://www.zotero.org/support/dev/translators/scaffold
Sample Translators
[edit]Full list: https://github.com/zotero/translators
Scrape: https://github.com/zotero/translators/blob/master/FAZ.NET.js
Use metadata:https://github.com/zotero/translators/blob/master/PLoS%20Journals.js
Framework (easier to write, but less flexible, not covered)
https://github.com/zotero/translators/blob/master/The%20Atlantic.js
Working on today
[edit]http://www.pagina12.com.ar/diario/sociedad/3-268645-2015-03-21.html
http://www.pagina12.com.ar/buscador/resultado.php?q=wikipedia
Help Resources
[edit]- Automated Tests:
chrome://zotero/content/tools/testTranslators/testTranslators.html
(works only in Firefox) - Documentation: https://www.zotero.org/support/dev/translators/coding
- Help on xpaths (archived): http://archive.oreilly.com/pub/a/perl/excerpts/system-admin-with-perl/ten-minute-xpath-utorial.html (mostly xml)
- javascript: you don’t need much. Codeacademy’s javascript course is good, e.g.
- regular expressions “regex”: e.g. http://regexone.com/ is one option. There are many…
- Zotero developer group: https://groups.google.com/forum/#!forum/zotero-dev(make your code available)
- Or just submit your code as a pull request to https://github.com/zotero/translators/ — we’ll work with you
- After you have created a translator, please file a task against Citoid in Phabricator to request to pull it into Citoid (example).