Create Translator for Zotero Connector, to scrape citation data from Sandpoints Journal Entries
#11
Open
opened 10 months ago by anybody
·
2 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Translators for Zotero Connector (Zotero browser toolbar which grabs citation information from websites), are programmed in Javascript, via the Scaffold IDE included in Zotero Tools/Developer/Translator Editor.
It seems it's not difficult to create one, nevertheless we should think of a solution that is forward compatible for future Sandpoints projects.
Zotero Translators - The missing manual
https://www.zotero.org/support/dev/translators_reference_guide
Zotero guide for web translators
https://www.zotero.org/support/dev/translators/coding#web_translators
Guide for writing and testing a translator with Scaffold in Zotero:
https://www.zotero.org/support/dev/translators/scaffold
Required metadata for Journal articles:
https://aurimasv.github.io/z2csl/typeMap.xml#map-journalArticle
I put together a Zotero Translator that half-works for Dotawo (for scraping citation data out of articles). The Javascript file is attached.
It only works for Single entries, but it can be made to scrape multiple entries from the Sitemap or individual Issues.
Notes:
Issues:
Successfully Scraped (automatically):
Dynamically scraped:
Manually added:
Alright, it seems I got the translator to work for:
Citation info works well, with two issues:
Marcell if we check and polish this, we can push to Zotero Translator repo. Javascript attached
Edit/install translator:
Tools/Developer/ Translator Editor
Browser
tab, paste and enter a URL to test-scrape.Magnifying lens
icon to detectLightning
icon to execute the translator on the URL.Update Translators
. Any code change, andsave to Zotero
will require toUpdate Translators
.Only install translator to your Zotero: