fix parse error

This commit is contained in:
Simon Kornblith 2010-11-06 07:48:58 +00:00
parent b8d89b9d60
commit 8005ed59e4

View file

@ -61,7 +61,7 @@ var typeMap = {
artwork:"ART", artwork:"ART",
report:"RPRT", report:"RPRT",
bill:"BILL", bill:"BILL",
case:"CASE", "case":"CASE",
hearing:"HEAR", hearing:"HEAR",
patent:"PAT", patent:"PAT",
statute:"STAT", statute:"STAT",
@ -545,9 +545,9 @@ function doExport() {
if(item.abstractNote) { if(item.abstractNote) {
addTag("N2", item.abstractNote.replace(/(?:\r\n?|\n)/g, "\r\n")); addTag("N2", item.abstractNote.replace(/(?:\r\n?|\n)/g, "\r\n"));
} }
else if(item.abstract) { else if(item["abstract"]) {
// patent type has abstract // patent type has abstract
addTag("N2", item.abstract.replace(/(?:\r\n?|\n)/g, "\r\n")); addTag("N2", item["abstract"].replace(/(?:\r\n?|\n)/g, "\r\n"));
} }
// tags // tags