Skip to content

Instantly share code, notes, and snippets.

@egh
Created October 22, 2011 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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