Skip to content

Instantly share code, notes, and snippets.

@egh
Created October 22, 2011 21:18

Revisions

  1. egh revised this gist Oct 22, 2011. 1 changed file with 8 additions and 5 deletions.
    13 changes: 8 additions & 5 deletions template.js
    Original file line number Diff line number Diff line change
    @@ -2,12 +2,15 @@
    itemType : 'journalArticle',
    detect : 'always'
    title : FW.Xpath(/.../).text().trim(),
    attachments : [{
    url: FW.Url(),
    title: "...",
    type: "text/html" }],
    creators : FW.Xpath(/.../).text().trim().
    cleanAuthor("author"),
    date : FW.Xpath(/.../).text(),
    publicationTitle : "..."
    volume : FW.Xpath(/.../).text(),
    issue : FW.Xpath(/.../).text(),
    publicationTitle : "...",
    attachments : [{
    url: FW.Url(),
    title: "...",
    type: "text/html"
    }],
    });
  2. egh revised this gist Oct 22, 2011. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions template.js
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,13 @@
    FW.Scraper({
    itemType : 'journalArticle',
    detect : 'always'
    title : FW.Xpath('...').text().trim(),
    title : FW.Xpath(/.../).text().trim(),
    attachments : [{
    url: FW.Url(),
    title: "...",
    type: "text/html" }],
    creators : FW.Xpath('...').text().trim().
    creators : FW.Xpath(/.../).text().trim().
    cleanAuthor("author"),
    date : FW.Xpath('...').text(),
    date : FW.Xpath(/.../).text(),
    publicationTitle : "..."
    });
  3. egh created this gist Oct 22, 2011.
    13 changes: 13 additions & 0 deletions template.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    FW.Scraper({
    itemType : 'journalArticle',
    detect : 'always'
    title : FW.Xpath('...').text().trim(),
    attachments : [{
    url: FW.Url(),
    title: "...",
    type: "text/html" }],
    creators : FW.Xpath('...').text().trim().
    cleanAuthor("author"),
    date : FW.Xpath('...').text(),
    publicationTitle : "..."
    });