RIS update from Sean (pushed to repo) (ignore some extra whitespace differences)
This commit is contained in:
parent
1112fcf1ff
commit
61dba96bf8
15
scrapers.sql
15
scrapers.sql
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
-- Set the following timestamp to the most recent scraper update date
|
-- Set the following timestamp to the most recent scraper update date
|
||||||
REPLACE INTO version VALUES ('repository', STRFTIME('%s', '2007-01-18 23:00:00'));
|
REPLACE INTO version VALUES ('repository', STRFTIME('%s', '2007-01-20 00:20:00'));
|
||||||
|
|
||||||
REPLACE INTO translators VALUES ('96b9f483-c44d-5784-cdad-ce21b984fe01', '1.0.0b3.r1', '', '2006-12-15 03:40:00', 1, 100, 4, 'Amazon.com', 'Sean Takats', '^https?://(?:www\.)?amazon',
|
REPLACE INTO translators VALUES ('96b9f483-c44d-5784-cdad-ce21b984fe01', '1.0.0b3.r1', '', '2006-12-15 03:40:00', 1, 100, 4, 'Amazon.com', 'Sean Takats', '^https?://(?:www\.)?amazon',
|
||||||
'function detectWeb(doc, url) {
|
'function detectWeb(doc, url) {
|
||||||
|
@ -8153,7 +8153,7 @@ function doImport() {
|
||||||
}
|
}
|
||||||
}');
|
}');
|
||||||
|
|
||||||
REPLACE INTO translators VALUES ('32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7', '1.0.0b3.r1', '', '2007-01-12 00:30:00', 1, 100, 3, 'RIS', 'Simon Kornblith', 'ris',
|
REPLACE INTO translators VALUES ('32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7', '1.0.0b3.r1', '', '2007-01-20 00:20:00', '1', '100', '3', 'RIS', 'Simon Kornblith', 'ris',
|
||||||
'Zotero.configure("dataMode", "line");
|
'Zotero.configure("dataMode", "line");
|
||||||
Zotero.addOption("exportNotes", true);
|
Zotero.addOption("exportNotes", true);
|
||||||
|
|
||||||
|
@ -8189,7 +8189,6 @@ function detectImport() {
|
||||||
var inputFieldMap = {
|
var inputFieldMap = {
|
||||||
TI:"title",
|
TI:"title",
|
||||||
CT:"title",
|
CT:"title",
|
||||||
JO:"publicationTitle",
|
|
||||||
CY:"place"
|
CY:"place"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8197,6 +8196,7 @@ var inputFieldMap = {
|
||||||
var typeMap = {
|
var typeMap = {
|
||||||
book:"BOOK",
|
book:"BOOK",
|
||||||
bookSection:"CHAP",
|
bookSection:"CHAP",
|
||||||
|
conferencePaper:"CONF",
|
||||||
journalArticle:"JOUR",
|
journalArticle:"JOUR",
|
||||||
magazineArticle:"MGZN",
|
magazineArticle:"MGZN",
|
||||||
newspaperArticle:"NEWS",
|
newspaperArticle:"NEWS",
|
||||||
|
@ -8210,7 +8210,7 @@ var typeMap = {
|
||||||
};
|
};
|
||||||
|
|
||||||
// supplements outputTypeMap for importing
|
// supplements outputTypeMap for importing
|
||||||
// TODO: BILL, CASE, COMP, CONF, DATA, HEAR, MUSIC, PAT, SOUND, STAT
|
// TODO: BILL, CASE, COMP, DATA, HEAR, MUSIC, PAT, SOUND, STAT
|
||||||
var inputTypeMap = {
|
var inputTypeMap = {
|
||||||
ABST:"journalArticle",
|
ABST:"journalArticle",
|
||||||
ADVS:"film",
|
ADVS:"film",
|
||||||
|
@ -8250,6 +8250,12 @@ function processTag(item, tag, value) {
|
||||||
item.itemType = inputTypeMap["GEN"];
|
item.itemType = inputTypeMap["GEN"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if(tag == "JO") {
|
||||||
|
if (item.itemType == "conferencePaper"){
|
||||||
|
item.conferenceName = value;
|
||||||
|
} else {
|
||||||
|
item.publicationTitle = value;
|
||||||
|
}
|
||||||
} else if(tag == "BT") {
|
} else if(tag == "BT") {
|
||||||
// ignore, unless this is a book or unpublished work, as per spec
|
// ignore, unless this is a book or unpublished work, as per spec
|
||||||
if(item.itemType == "book" || item.itemType == "manuscript") {
|
if(item.itemType == "book" || item.itemType == "manuscript") {
|
||||||
|
@ -8368,7 +8374,6 @@ function completeItem(item) {
|
||||||
}
|
}
|
||||||
item.backupPublicationTitle = undefined;
|
item.backupPublicationTitle = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
item.complete();
|
item.complete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user