diff --git a/public/js/citationSheetParse.js b/public/js/citationSheetParse.js index f174465b94bcce808b5daa38d96ac53e7fd7cc8f..e4cadb908f1c8c473e314f8d31f80d51684a5a32 100644 --- a/public/js/citationSheetParse.js +++ b/public/js/citationSheetParse.js @@ -52,7 +52,6 @@ xmlHttpRequest.onload = function (e) { "name": "journal", "volume": "", "year": "", - "month": "", "pages": "" }, "conference":{ @@ -124,10 +123,6 @@ xmlHttpRequest.onload = function (e) { item["item"].journal.volume = jsonOutput[i].Volume; item["item"].journal.year = jsonOutput[i].Year; - if (jsonOutput[i].Date != undefined){ - item["item"].journal.month = jsonOutput[i].Date.split(",")[0].trim(); - } - item["item"].journal.pages = jsonOutput[i].Pages; item["item"].conference.name = jsonOutput[i].Conference; item["item"].conference.place = jsonOutput[i]["City and Country"] @@ -142,13 +137,20 @@ xmlHttpRequest.onload = function (e) { item["links"].url = jsonOutput[i].URL; item["links"].demo = jsonOutput[i].Demo; + + var month = ""; + if (jsonOutput[i].Date != undefined){ + month = jsonOutput[i].Date.split(",")[0].trim(); + } + + //// BibTex ///////////////////// item["bibtex"] = "@article{"+ bit1stAuthorLN + jsonOutput[i].Year +","+ "title={"+ jsonOutput[i].Titel + "},author={"+ bibAuthors.trim().substring(0, bibAuthors.trim().lastIndexOf(" ")) + "},journal={"+ jsonOutput[i].Journal + "},volume={"+ jsonOutput[i].Volume + - // "},number={"+ jsonOutput[i].Number + "},month={"+ month + "},pages={"+ jsonOutput[i].Pages + "},year={"+ jsonOutput[i].Year + "},DOI ={"+ jsonOutput[i].DOI+