Re-addresses #843 to handle the difference between %J and %B tags correctly.
This commit is contained in:
parent
77736342b4
commit
1967489a12
14
scrapers.sql
14
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-11-28 16:30:00'));
|
REPLACE INTO version VALUES ('repository', STRFTIME('%s', '2007-11-29 16: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',
|
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) {
|
'function detectWeb(doc, url) {
|
||||||
|
@ -15354,7 +15354,7 @@ function doExport() {
|
||||||
}
|
}
|
||||||
}');
|
}');
|
||||||
|
|
||||||
REPLACE INTO translators VALUES ('881f60f2-0802-411a-9228-ce5f47b64c7d', '1.0.0b4.r5', '', '2007-11-28 16:30:00', '1', '100', '3', 'EndNote/Refer/BibIX', 'Simon Kornblith', 'txt',
|
REPLACE INTO translators VALUES ('881f60f2-0802-411a-9228-ce5f47b64c7d', '1.0.0b4.r5', '', '2007-11-29 16:00:00', '1', '100', '3', 'EndNote/Refer/BibIX', 'Simon Kornblith', 'txt',
|
||||||
'Zotero.configure("dataMode", "line");
|
'Zotero.configure("dataMode", "line");
|
||||||
|
|
||||||
function detectImport() {
|
function detectImport() {
|
||||||
|
@ -15596,9 +15596,13 @@ function doExport() {
|
||||||
if(item[fieldMap[j]]) addTag(j, item[fieldMap[j]]);
|
if(item[fieldMap[j]]) addTag(j, item[fieldMap[j]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
//use input field map
|
//handle J & B tags correctly
|
||||||
for (var k in inputFieldMap) {
|
if (item["publicationTitle"]) {
|
||||||
if(item[inputFieldMap[k]]) addTag(k, item[inputFieldMap[k]]);
|
if (item.itemType == "journalArticle") {
|
||||||
|
addTag("J", item["publicationTitle"]);
|
||||||
|
} else if (item.itemType == "bookSection") {
|
||||||
|
addTag("B", item["publicationTitle"]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// creators
|
// creators
|
||||||
|
|
Loading…
Reference in New Issue
Block a user