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:
parent
80924040fb
commit
8c9f874ce9
1 changed files with 10 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
|
||||
Zotero.configure("dataMode", "block");
|
||||
Zotero.addOption("exportCharset", "UTF-8");
|
||||
Zotero.addOption("exportFileData", false);
|
||||
|
||||
function detectImport() {
|
||||
var maxChars = 1048576; // 1MB
|
||||
|
@ -2072,6 +2073,15 @@ function doExport() {
|
|||
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}");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue