From e391844acd8881fe1c1a77bb6f78243c8356fab3 Mon Sep 17 00:00:00 2001 From: Sean Takats Date: Mon, 27 Nov 2006 14:15:27 +0000 Subject: [PATCH] closes #387 year in date field is truncated. --- scrapers.sql | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scrapers.sql b/scrapers.sql index 2e6448a07..3ec205cdb 100644 --- a/scrapers.sql +++ b/scrapers.sql @@ -1,4 +1,4 @@ --- 113 +-- 114 -- ***** BEGIN LICENSE BLOCK ***** -- @@ -22,7 +22,7 @@ -- Set the following timestamp to the most recent scraper update date -REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-11-26 23:50:00')); +REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-11-27 09:20:00')); REPLACE INTO translators VALUES ('96b9f483-c44d-5784-cdad-ce21b984fe01', '1.0.0b3.r1', '', '2006-11-26 09:05:00', 1, 100, 4, 'Amazon', 'Sean Takats', '^http://(?:www\.)amazon', 'function detectWeb(doc, url) { @@ -7143,7 +7143,7 @@ function doExport() { } }'); -REPLACE INTO translators VALUES ('a6ee60df-1ddc-4aae-bb25-45e0537be973', '1.0.0b3.r1', '', '2006-10-02 17:00:00', 1, 100, 1, 'MARC', 'Simon Kornblith', 'marc', +REPLACE INTO translators VALUES ('a6ee60df-1ddc-4aae-bb25-45e0537be973', '1.0.0b3.r1', '', '2006-11-27 09:20:00', 1, 100, 1, 'MARC', 'Simon Kornblith', 'marc', 'function detectImport() { var marcRecordRegexp = /^[0-9]{5}[a-z ]{3}$/ var read = Zotero.read(8); @@ -7258,6 +7258,8 @@ record.prototype.importBinary = function(record) { } this.directory[tag].push([fieldPosition, fieldLength]); } + //strip any nulls that we added above + this.content = this.content.replace("\x00", "", "g"); } // add a field to this record