Skip to content

Commit

Permalink
allow multi-attachment import from Sente
Browse files Browse the repository at this point in the history
  • Loading branch information
adam3smith committed Jun 1, 2014
1 parent 87e9787 commit 2f27576
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BibTeX.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"inRepository": true,
"translatorType": 3,
"browserSupport": "gcsv",
"lastUpdated": "2014-06-01 01:53:29"
"lastUpdated": "2014-06-01 15:20:32"
}

function detectImport() {
Expand Down Expand Up @@ -1796,8 +1796,8 @@ function processField(item, field, value) {
item.notes.push({note:Zotero.Utilities.text2html(value)});
} else if (field == "pdf" || field == "path" /*Papers2 compatibility*/) {
item.attachments = [{path:value, mimeType:"application/pdf"}];
} else if (field == "sentelink") { // the reference manager 'Sente' has a unique file scheme in exported BibTeX
item.attachments = [{path:value.split(",")[0], mimeType:"application/pdf"}];
} else if (field == "sentelink") { // the reference manager 'Sente' has a unique file scheme in exported BibTeX; it can occur multiple times
item.attachments.push({path:value.split(",")[0], mimeType:"application/pdf"});
} else if (field == "file") {
var start = 0, attachment;
value = value.replace(/\$\\backslash\$/g, '\\') // Mendeley invention?
Expand Down

0 comments on commit 2f27576

Please sign in to comment.