commit LeanneJParry's patch to allow BibTeX file export in JabRef format (http://forums.zotero.org/discussion/10825/?Focus=65967#Comment_65967)

This commit is contained in:
Simon Kornblith 2010-07-12 11:57:55 +00:00
parent 80924040fb
commit 8c9f874ce9

View file

@ -13,6 +13,7 @@
Zotero.configure("dataMode", "block"); Zotero.configure("dataMode", "block");
Zotero.addOption("exportCharset", "UTF-8"); Zotero.addOption("exportCharset", "UTF-8");
Zotero.addOption("exportFileData", false);
function detectImport() { function detectImport() {
var maxChars = 1048576; // 1MB var maxChars = 1048576; // 1MB
@ -2072,6 +2073,15 @@ function doExport() {
writeField("annote", note["note"]); writeField("annote", note["note"]);
} }
} }
if(Zotero.getOption("exportFileData")) {
if(item.attachments) {
for each(var attachment in item.attachments) {
writeField("file", ":" + attachment.path + ":" + attachment.mimeType);
}
}
}
Zotero.write("\n}"); Zotero.write("\n}");
} }
} }