Create Translator for Zotero Connector, to scrape citation data from Sandpoints Journal Entries #11
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Drawwell/SandpointsTheme#11
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. 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: