From 7685a0f1913a34dcf9d52dacb3ae9afb0e3553bc Mon Sep 17 00:00:00 2001 From: Sean Takats Date: Fri, 21 Aug 2009 14:31:27 +0000 Subject: [PATCH] No longer escapes DOIs in order to avoid problems with illegal characters. Thanks, ijvm (http://forums.zotero.org/discussion/31/2/bibtex-export/) --- translators/BibTeX.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translators/BibTeX.js b/translators/BibTeX.js index 614176688d..b4c0467252 100644 --- a/translators/BibTeX.js +++ b/translators/BibTeX.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":200, "inRepository":true, - "lastUpdated":"2009-07-04 05:00:00" + "lastUpdated":"2009-08-21 15:00:00" } Zotero.configure("dataMode", "block"); @@ -1811,7 +1811,7 @@ function writeField(field, value, isMacro) { if(!isMacro) Zotero.write("{"); // url field is preserved, for use with \href and \url // Other fields (DOI?) may need similar treatment - if(field != "url") { + if(!((field == "url") || (field == "doi"))) { // I hope these are all the escape characters! value = value.replace(/[|\<\>\~\^\\]/g, mapEscape).replace(/([\#\$\%\&\_])/g, "\\$1"); // Case of words with uppercase characters in non-initial positions is preserved with braces.