From 7d31e7ebcbf012e2ff8dc0cd433afcda463fd46e Mon Sep 17 00:00:00 2001 From: Michael Berkowitz Date: Tue, 1 Jul 2008 18:34:44 +0000 Subject: [PATCH] -Adds Sean's change to BibTeX translator. --- scrapers.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scrapers.sql b/scrapers.sql index 9ef6f0be1..9a008339d 100644 --- a/scrapers.sql +++ b/scrapers.sql @@ -23757,7 +23757,7 @@ function doExport() { } }'); -REPLACE INTO translators VALUES ('9cb70025-a888-4a29-a210-93ec52da40d4', '1.0.0b4.r1', '', '2008-05-20 06:00:00', '1', '200', '3', 'BibTeX', 'Simon Kornblith', 'bib', +REPLACE INTO translators VALUES ('9cb70025-a888-4a29-a210-93ec52da40d4', '1.0.0b4.r1', '', '2008-07-01 14:30:13', '1', '200', '3', 'BibTeX', 'Simon Kornblith', 'bib', 'Zotero.configure("dataMode", "block"); Zotero.addOption("UTF8", true); @@ -25348,7 +25348,9 @@ function processField(item, field, value) { } } else if (field == "comment") { item.notes.push({note:value}); - } + } else if(field == "pdf") { // new code to handle PDF import. absolute file path should be specified in bibtex + item.attachments = [{url:"file://"+value, mimeType:"application/pdf"}]; + } } function getFieldValue(read) {