Skip to content

Instantly share code, notes, and snippets.

@egh
Created October 22, 2011 21:18
Show Gist options
  • Save egh/1306506 to your computer and use it in GitHub Desktop.
Save egh/1306506 to your computer and use it in GitHub Desktop.
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