Permalink
Browse files

Update BibLaTeX translator - nodate, notitle, noauthor (#1671)

Same like BibTeX
  • Loading branch information...
mhellmeier authored and zuphilip committed Jun 7, 2018
1 parent 49754cb commit f3b2bd0a7f67fa7c07fc1d1090c0e3c8a2fb0934
Showing with 4 additions and 4 deletions.
  1. +4 −4 BibLaTeX.js
View
@@ -15,7 +15,7 @@
"exportFileData": false,
"useJournalAbbreviation": false
},
"lastUpdated": "2018-03-03 14:00:00"
"lastUpdated": "2018-06-04 15:00:00"
}
@@ -354,13 +354,13 @@ var citeKeyConversions = {
if (item.creators && item.creators[0] && item.creators[0].lastName) {
return item.creators[0].lastName.toLowerCase().replace(/ /g, "_").replace(/,/g, "");
}
return "";
return "noauthor";
},
"t": function (flags, item) {
if (item["title"]) {
return item["title"].toLowerCase().replace(citeKeyTitleBannedRe, "").split(/\s+/g)[0];
}
return "";
return "notitle";
},
"y": function (flags, item) {
if (item.date) {
@@ -369,7 +369,7 @@ var citeKeyConversions = {
return date.year;
}
}
return "????";
return "nodate";
}
}

0 comments on commit f3b2bd0

Please sign in to comment.