Permalink
Browse files

Add doi field in BibTeX and BibLaTeX export (#1572)

See #1570.
  • Loading branch information...
zuphilip authored and adam3smith committed Mar 4, 2018
1 parent 4f13d7f commit 01f5b5ca2e7514f0ca260578774f1277b730fbec
Showing with 6 additions and 5 deletions.
  1. +3 −2 BibLaTeX.js
  2. +3 −3 BibTeX.js
View
@@ -15,7 +15,7 @@
"exportFileData": false,
"useJournalAbbreviation": false
},
"lastUpdated": "2017-08-28 10:55:00"
"lastUpdated": "2018-03-03 14:00:00"
}
@@ -57,7 +57,8 @@ var revExtraIds = {
MR: 'mrnumber',
Zbl: 'zmnumber',
PMCID: 'pmcid',
PMID: 'pmid'
PMID: 'pmid',
DOI: 'doi'
};
// Imported by BibTeX. Exported by BibLaTeX only
View
@@ -19,7 +19,7 @@
"inRepository": true,
"translatorType": 3,
"browserSupport": "gcsv",
"lastUpdated": "2017-12-27 22:23:20"
"lastUpdated": "2018-03-03 13:10:16"
}
function detectImport() {
@@ -117,8 +117,8 @@ var extraIdentifiers = {
//ssrn? http://cyber.law.harvard.edu/cybersecurity/Guidelines_for_adding_Bibliography_entries
};
// Make a reverse map for convenience
var revExtraIds = {};
// Make a reverse map for convenience with additional DOI handling
var revExtraIds = {'DOI': 'doi'};
for(var field in extraIdentifiers) {
revExtraIds[extraIdentifiers[field]] = field;
}

0 comments on commit 01f5b5c

Please sign in to comment.