From 460181eeb28cea2c61d2f02c964d6c750cba95c3 Mon Sep 17 00:00:00 2001 From: Michael Berkowitz Date: Tue, 19 Feb 2008 20:57:42 +0000 Subject: [PATCH] -Actually fixes the ACM translator to gather DOIs. --- scrapers.sql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scrapers.sql b/scrapers.sql index 5fb6d8245..d9e3bd962 100644 --- a/scrapers.sql +++ b/scrapers.sql @@ -22,7 +22,7 @@ -- Set the following timestamp to the most recent scraper update date -REPLACE INTO version VALUES ('repository', STRFTIME('%s', '2008-02-19 21:30:00')); +REPLACE INTO version VALUES ('repository', STRFTIME('%s', '2008-02-19 22:00:00')); REPLACE INTO translators VALUES ('96b9f483-c44d-5784-cdad-ce21b984fe01', '1.0.0b4.r1', '', '2007-06-21 20:00:00', '1', '100', '4', 'Amazon.com', 'Sean Takats', '^https?://(?:www\.)?amazon', 'function detectWeb(doc, url) { @@ -13092,7 +13092,7 @@ function doWeb(doc, url) { } }'); -REPLACE INTO translators VALUES ('e78d20f7-488-4023-831-dfe39679f3f', '1.0.0b3.r1', '', '2008-02-19 21:30:00', '1', '100', '4', 'ACM', 'Simon Kornblith', 'https?://[^/]*portal\.acm\.org[^/]*/(?:results\.cfm|citation\.cfm)', +REPLACE INTO translators VALUES ('e78d20f7-488-4023-831-dfe39679f3f', '1.0.0b3.r1', '', '2008-02-19 22:00:00', '1', '100', '4', 'ACM', 'Simon Kornblith', 'https?://[^/]*portal\.acm\.org[^/]*/(?:results\.cfm|citation\.cfm)', 'function detectWeb(doc, url) { if(url.indexOf("/results.cfm") != -1) { var items = Zotero.Utilities.getItemArray(doc, doc, ''^https?://[^/]+/citation.cfm\\?[^#]+$''); @@ -13179,7 +13179,8 @@ function scrape(doc) { if(abstract) item.abstractNote = abstract; item.attachments = attachments; item.tags = keywords; - item.doi = doi; + item.DOI = doi; + item.url = doc.location.href; item.complete(); }); translator.translate();