www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit bb07710b342c22082d676d6e126dac3c0a53e95e
parent 45f84fb31f4d2a962c1379960f7d0101270940c3
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon, 14 Aug 2006 05:23:39 +0000

okay, i actually tested it this time, so i'm pretty sure i got all the bugs out. no, i am not just cheating to get closer to the illusive r500.


Diffstat:
Mscrapers.sql | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/scrapers.sql b/scrapers.sql @@ -2918,20 +2918,19 @@ function doExport() { originInfo += <publisher>{item.distributor}</publisher>; } if(item.date) { - if(inArray(item.itemType, ["book", "bookSection"]) { + if(Scholar.Utilities.inArray(item.itemType, ["book", "bookSection"])) { // Assume year is copyright date var dateType = "copyrightDate"; - } else if(inArray(item.itemType, ["journalArticle", "magazineArticle", "newspaperArticle"])) { + } else if(Scholar.Utilities.inArray(item.itemType, ["journalArticle", "magazineArticle", "newspaperArticle"])) { // Assume date is date issued var dateType = "dateIssued"; } else { // Assume date is date created var dateType = "dateCreated"; } - originInfo += <{dateType} encoding="iso8601">{item.date}</{dateType}>; - } - if(item.lastModified) { - originInfo += <dateModified encoding="iso8601">{item.lastModified}</dateModified>; + var tag = <{dateType}>{item.date}</{dateType}>; + tag.@encoding = "iso8601"; + originInfo += tag; } if(item.accessDate) { originInfo += <dateCaptured encoding="iso8601">{item.accessDate}</dateCaptured>;