From a18b39dcdf98df8e133a5dd2a603e28524352964 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 23 Mar 2011 00:35:41 +0000 Subject: [PATCH] fix fallback type in RIS and add support for some non-standard types --- translators/RIS.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/translators/RIS.js b/translators/RIS.js index ecc31b7df..4d901cd80 100644 --- a/translators/RIS.js +++ b/translators/RIS.js @@ -9,7 +9,7 @@ "priority":100, "inRepository":true, "displayOptions":{"exportCharset":"UTF-8", "exportNotes":true}, - "lastUpdated":"2011-03-22 22:45:00" + "lastUpdated":"2011-03-23 00:32:48" } function detectImport() { @@ -102,7 +102,12 @@ var inputTypeMap = { PAMP:"manuscript", SER:"book", SLIDE:"artwork", - UNBILL:"manuscript" + UNBILL:"manuscript", + CPAPER:"conferencePaper", + WEB:"webpage", + EDBOOK:"book", + MANSCPT:"manuscript", + GOVDOC:"document" }; function processTag(item, tag, value) { @@ -131,8 +136,8 @@ function processTag(item, tag, value) { if(inputTypeMap[value]) { item.itemType = inputTypeMap[value]; } else { - // default to generic from inputTypeMap - item.itemType = inputTypeMap["GEN"]; + // default to document + item.itemType = "document"; } } } else if(tag == "JO") {