Skip to content

Instantly share code, notes, and snippets.

@egh

egh/template.js

Created Oct 22, 2011
Embed
What would you like to do?
Zotero translator framework template
FW.Scraper({
itemType : 'journalArticle',
detect : 'always'
title : FW.Xpath(/.../).text().trim(),
creators : FW.Xpath(/.../).text().trim().
cleanAuthor("author"),
date : FW.Xpath(/.../).text(),
volume : FW.Xpath(/.../).text(),
issue : FW.Xpath(/.../).text(),
publicationTitle : "...",
attachments : [{
url: FW.Url(),
title: "...",
type: "text/html"
}],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment