diff --git a/public/img/Abdul_Rahman 2019_10.JPG b/public/img/Abdul_Rahman 2019_10.JPG new file mode 100644 index 0000000000000000000000000000000000000000..591cb0a9c1ff50e05ade4ba21ad18f2ab35b1d6e Binary files /dev/null and b/public/img/Abdul_Rahman 2019_10.JPG differ diff --git a/public/img/Agugiaro_2018_03.JPG b/public/img/Agugiaro_2018_03.JPG new file mode 100644 index 0000000000000000000000000000000000000000..82708393286f7bfc21887b9cac6f98171f744c68 Binary files /dev/null and b/public/img/Agugiaro_2018_03.JPG differ diff --git a/public/img/BAO 2020_07.JPG b/public/img/BAO 2020_07.JPG deleted file mode 100644 index ae39e2155d74ac7a6d865fe1a04e3c090fdce3af..0000000000000000000000000000000000000000 Binary files a/public/img/BAO 2020_07.JPG and /dev/null differ diff --git a/public/img/BAO_2020_07.JPG b/public/img/BAO_2020_07.JPG new file mode 100644 index 0000000000000000000000000000000000000000..25032b6bf0a08141024c514416ee4fa38e6bd94c Binary files /dev/null and b/public/img/BAO_2020_07.JPG differ diff --git a/public/img/Coors 2020_02.JPG b/public/img/Coors 2020_02.JPG deleted file mode 100644 index 7262da70280c5b7da035f21f36363e7a1eb7938a..0000000000000000000000000000000000000000 Binary files a/public/img/Coors 2020_02.JPG and /dev/null differ diff --git a/public/img/Coors_2019_03.JPG b/public/img/Coors_2019_03.JPG new file mode 100644 index 0000000000000000000000000000000000000000..271d9bfbc6e0327890e7e7775a0df7be66e70101 Binary files /dev/null and b/public/img/Coors_2019_03.JPG differ diff --git a/public/img/Coors_2019_04.JPG b/public/img/Coors_2019_04.JPG new file mode 100644 index 0000000000000000000000000000000000000000..f2c4916aed6b07176c7effa3237f51c9919519bc Binary files /dev/null and b/public/img/Coors_2019_04.JPG differ diff --git a/public/img/Coors_2019_08.JPG b/public/img/Coors_2019_08.JPG new file mode 100644 index 0000000000000000000000000000000000000000..efe2bfcd61df688bd94d32cd8927568986434c63 Binary files /dev/null and b/public/img/Coors_2019_08.JPG differ diff --git a/public/img/Coors_2019_10.JPG b/public/img/Coors_2019_10.JPG new file mode 100644 index 0000000000000000000000000000000000000000..a3a175f768e0aa457958e29875037f0c2802978b Binary files /dev/null and b/public/img/Coors_2019_10.JPG differ diff --git a/public/img/Coors_2020_02.JPG b/public/img/Coors_2020_02.JPG new file mode 100644 index 0000000000000000000000000000000000000000..31df44dab87bc82aa3ab785ddd16afd8b6dd1f88 Binary files /dev/null and b/public/img/Coors_2020_02.JPG differ diff --git a/public/img/Dastageeri 2020_09.JPG b/public/img/Dastageeri 2020_09.JPG deleted file mode 100644 index ed3c643fbc870c55dcb58aa5d4382e810d3bacaa..0000000000000000000000000000000000000000 Binary files a/public/img/Dastageeri 2020_09.JPG and /dev/null differ diff --git a/public/img/Dastageeri_2019_10.JPG b/public/img/Dastageeri_2019_10.JPG new file mode 100644 index 0000000000000000000000000000000000000000..912f7181922735e29a031ab9640621383d49ac41 Binary files /dev/null and b/public/img/Dastageeri_2019_10.JPG differ diff --git a/public/img/Dastageeri_2020_09.JPG b/public/img/Dastageeri_2020_09.JPG new file mode 100644 index 0000000000000000000000000000000000000000..dbbb4ac250b1154efa46d0c27c22b71d0890df01 Binary files /dev/null and b/public/img/Dastageeri_2020_09.JPG differ diff --git a/public/img/Deininger 2020_10.JPG b/public/img/Deininger 2020_10.JPG deleted file mode 100644 index 31469fd99a26149eca4b3cdcd2595c4c2d2b0bca..0000000000000000000000000000000000000000 Binary files a/public/img/Deininger 2020_10.JPG and /dev/null differ diff --git a/public/img/Deininger_2020_10.JPG b/public/img/Deininger_2020_10.JPG new file mode 100644 index 0000000000000000000000000000000000000000..0d1601817286dad8f7595ca52dac36b334ddecfd Binary files /dev/null and b/public/img/Deininger_2020_10.JPG differ diff --git a/public/img/Ellul_2019_10.JPG b/public/img/Ellul_2019_10.JPG new file mode 100644 index 0000000000000000000000000000000000000000..4e7f1557d6aeec0bfebe466f9b7c6f5fcf290de5 Binary files /dev/null and b/public/img/Ellul_2019_10.JPG differ diff --git a/public/img/Harbola 2020_09.JPG b/public/img/Harbola 2020_09.JPG deleted file mode 100644 index 09cadb0dcf70f987f059083da51deb374fa9e9f0..0000000000000000000000000000000000000000 Binary files a/public/img/Harbola 2020_09.JPG and /dev/null differ diff --git a/public/img/Harbola_2019_09.JPG b/public/img/Harbola_2019_09.JPG new file mode 100644 index 0000000000000000000000000000000000000000..2254ceee44502591a598b3824a5c67217629894e Binary files /dev/null and b/public/img/Harbola_2019_09.JPG differ diff --git a/public/img/Harbola_2019_10.JPG b/public/img/Harbola_2019_10.JPG new file mode 100644 index 0000000000000000000000000000000000000000..8b919ae4fa5c7355260d7d165cdfac33df9849d5 Binary files /dev/null and b/public/img/Harbola_2019_10.JPG differ diff --git a/public/img/Harbola_2020_09.JPG b/public/img/Harbola_2020_09.JPG new file mode 100644 index 0000000000000000000000000000000000000000..c9f2ac9ff2ae6104d976fcd0776d318e86f7711f Binary files /dev/null and b/public/img/Harbola_2020_09.JPG differ diff --git a/public/img/Kesnar_2019.JPG b/public/img/Kesnar_2019.JPG new file mode 100644 index 0000000000000000000000000000000000000000..919c07a343c84c0b2a8c835754fc4e1a49b96747 Binary files /dev/null and b/public/img/Kesnar_2019.JPG differ diff --git a/public/img/Koukofikis_2020_09.JPG b/public/img/Koukofikis_2020_09.JPG index bfdde25222015fe46ff7c0696b38cecc5e2c012b..6245c067da0a054ed3603e53fa238c4467026f9e 100644 Binary files a/public/img/Koukofikis_2020_09.JPG and b/public/img/Koukofikis_2020_09.JPG differ diff --git a/public/img/Mutani_2018_10.JPG b/public/img/Mutani_2018_10.JPG new file mode 100644 index 0000000000000000000000000000000000000000..ba8c01a8f436e23bfb556f1c0bcfa82f33982aa0 Binary files /dev/null and b/public/img/Mutani_2018_10.JPG differ diff --git a/public/img/Padsala 2020_07.JPG b/public/img/Padsala 2020_07.JPG deleted file mode 100644 index 965c5527811625a49ce64ffeb32dce33f7f79a9e..0000000000000000000000000000000000000000 Binary files a/public/img/Padsala 2020_07.JPG and /dev/null differ diff --git a/public/img/Padsala 2020_09.JPG b/public/img/Padsala 2020_09.JPG deleted file mode 100644 index 86f3aac792814977c7b5c8b45303763414a9146c..0000000000000000000000000000000000000000 Binary files a/public/img/Padsala 2020_09.JPG and /dev/null differ diff --git a/public/img/Padsala_2020_07.JPG b/public/img/Padsala_2020_07.JPG new file mode 100644 index 0000000000000000000000000000000000000000..0883421b32d357845ca89bee55f0fd9b22f33a09 Binary files /dev/null and b/public/img/Padsala_2020_07.JPG differ diff --git a/public/img/Padsala_2020_09.JPG b/public/img/Padsala_2020_09.JPG new file mode 100644 index 0000000000000000000000000000000000000000..06d75a7cf66f437a1c7cdbeb8baa3f58f763ff6b Binary files /dev/null and b/public/img/Padsala_2020_09.JPG differ diff --git a/public/img/Piepereit_2019_09.JPG b/public/img/Piepereit_2019_09.JPG new file mode 100644 index 0000000000000000000000000000000000000000..067fe565f5c2410a0d69bd8359fc2b5cdfd16855 Binary files /dev/null and b/public/img/Piepereit_2019_09.JPG differ diff --git a/public/img/Rawiel_2019_04.JPG b/public/img/Rawiel_2019_04.JPG new file mode 100644 index 0000000000000000000000000000000000000000..bfa55b022b1760d31dd48cc78c349c52d1863f8f Binary files /dev/null and b/public/img/Rawiel_2019_04.JPG differ diff --git a/public/img/Santhanavanich 2020_09.JPG b/public/img/Santhanavanich 2020_09.JPG deleted file mode 100644 index 391242f7b6cb16f48ee032f1bb60de7afef27cfd..0000000000000000000000000000000000000000 Binary files a/public/img/Santhanavanich 2020_09.JPG and /dev/null differ diff --git a/public/img/Santhanavanich_2020_09.JPG b/public/img/Santhanavanich_2020_09.JPG new file mode 100644 index 0000000000000000000000000000000000000000..1f2044d4f420737c8f6749ed06fbcc39066f744d Binary files /dev/null and b/public/img/Santhanavanich_2020_09.JPG differ diff --git a/public/img/Santhanavanich_2020_12.JPG b/public/img/Santhanavanich_2020_12.JPG new file mode 100644 index 0000000000000000000000000000000000000000..15f5003dfc410c19fee028dfc54e4bcfe256ca0d Binary files /dev/null and b/public/img/Santhanavanich_2020_12.JPG differ diff --git a/public/img/Schneider 2020_09.JPG b/public/img/Schneider 2020_09.JPG deleted file mode 100644 index 9380c2fa717f30b619ca9c5649b99a97d4c71649..0000000000000000000000000000000000000000 Binary files a/public/img/Schneider 2020_09.JPG and /dev/null differ diff --git a/public/img/Schneider_2018_02.JPG b/public/img/Schneider_2018_02.JPG new file mode 100644 index 0000000000000000000000000000000000000000..d629bcdd8ec4bab4c89f09e7cd7e9b4ccd01ae76 Binary files /dev/null and b/public/img/Schneider_2018_02.JPG differ diff --git a/public/img/Schneider_2020_09.JPG b/public/img/Schneider_2020_09.JPG new file mode 100644 index 0000000000000000000000000000000000000000..966cbaa89b03a9a4fa6efc3f410e0b39b0709775 Binary files /dev/null and b/public/img/Schneider_2020_09.JPG differ diff --git a/public/img/Sini 2020_09.JPG b/public/img/Sini 2020_09.JPG deleted file mode 100644 index 09f91f9be204ec1cc2f480dde023fbfd6eb3288a..0000000000000000000000000000000000000000 Binary files a/public/img/Sini 2020_09.JPG and /dev/null differ diff --git a/public/img/Sini_2020_09.JPG b/public/img/Sini_2020_09.JPG new file mode 100644 index 0000000000000000000000000000000000000000..dbd76e0f8bb478a2a1d9c6a9a59aa6cebdb65108 Binary files /dev/null and b/public/img/Sini_2020_09.JPG differ diff --git a/public/img/V_Coors_2019_03.JPG b/public/img/V_Coors_2019_03.JPG new file mode 100644 index 0000000000000000000000000000000000000000..c9269796ca964845e29a6592208c8534f921cee9 Binary files /dev/null and b/public/img/V_Coors_2019_03.JPG differ diff --git a/public/img/V_Coors_2019_09.JPG b/public/img/V_Coors_2019_09.JPG new file mode 100644 index 0000000000000000000000000000000000000000..db57fd5288246ddbf70274d9c38de0519a63bca5 Binary files /dev/null and b/public/img/V_Coors_2019_09.JPG differ diff --git a/public/img/V_Coors_2019_10.JPG b/public/img/V_Coors_2019_10.JPG new file mode 100644 index 0000000000000000000000000000000000000000..5370fb223c8e222e3032a8ed7c4c6e7d64bd69c9 Binary files /dev/null and b/public/img/V_Coors_2019_10.JPG differ diff --git a/public/img/V. Coors 2020_02.JPG b/public/img/V_Coors_2020_02.JPG similarity index 100% rename from public/img/V. Coors 2020_02.JPG rename to public/img/V_Coors_2020_02.JPG diff --git "a/public/img/V\303\266gele 2020.JPG" "b/public/img/V\303\266gele 2020.JPG" deleted file mode 100644 index e0081aed93f87fd1bb1a373e4f6dda2abb7a171f..0000000000000000000000000000000000000000 Binary files "a/public/img/V\303\266gele 2020.JPG" and /dev/null differ diff --git "a/public/img/V\303\266gele_2020.JPG" "b/public/img/V\303\266gele_2020.JPG" new file mode 100644 index 0000000000000000000000000000000000000000..b96dc838488e78ac8ded1db077b93008bbd93a96 Binary files /dev/null and "b/public/img/V\303\266gele_2020.JPG" differ diff --git a/public/img/Wate_2019_.JPG b/public/img/Wate_2019_.JPG new file mode 100644 index 0000000000000000000000000000000000000000..5da4563665dcae359a0d0a676aadc50efc641550 Binary files /dev/null and b/public/img/Wate_2019_.JPG differ diff --git a/public/img/Wate_2020.jpg b/public/img/Wate_2020_01.JPG similarity index 100% rename from public/img/Wate_2020.jpg rename to public/img/Wate_2020_01.JPG diff --git a/public/img/Wuerstle 2020_09.JPG b/public/img/Wuerstle 2020_09.JPG deleted file mode 100644 index c5d1257a0f838b89fb9d876494a16f32488595e5..0000000000000000000000000000000000000000 Binary files a/public/img/Wuerstle 2020_09.JPG and /dev/null differ diff --git a/public/img/Wuerstle_2020_09.JPG b/public/img/Wuerstle_2020_09.JPG new file mode 100644 index 0000000000000000000000000000000000000000..1f4fc22d4384150f76d9337557aa90c91eb5e3de Binary files /dev/null and b/public/img/Wuerstle_2020_09.JPG differ diff --git "a/public/img/W\303\274rstle 2020_06.JPG" "b/public/img/W\303\274rstle 2020_06.JPG" deleted file mode 100644 index ea71377ce09d92e56e867fc92d8efe8cc0fa862d..0000000000000000000000000000000000000000 Binary files "a/public/img/W\303\274rstle 2020_06.JPG" and /dev/null differ diff --git "a/public/img/W\303\274rstle_2020_06.JPG" "b/public/img/W\303\274rstle_2020_06.JPG" new file mode 100644 index 0000000000000000000000000000000000000000..9249d9d5cd5aa9d75badd9757db38b31666c020a Binary files /dev/null and "b/public/img/W\303\274rstle_2020_06.JPG" differ diff --git a/public/js/citationSheetParse.js b/public/js/citationSheetParse.js index e4cadb908f1c8c473e314f8d31f80d51684a5a32..28f8b2a07736882e0c88cdb81b8c85912871efcc 100644 --- a/public/js/citationSheetParse.js +++ b/public/js/citationSheetParse.js @@ -4,171 +4,181 @@ var jsonContent = []; var bibAuthors = ""; -var bit1stAuthorLN =""; - - - -/* set up XMLHttpRequest */ +var bit1stAuthorLN = ""; var url = "./content/CitationSheet3.xlsx"; var xmlHttpRequest = new XMLHttpRequest(); -xmlHttpRequest.open("GET", url, true); -xmlHttpRequest.responseType = "arraybuffer"; -xmlHttpRequest.onload = function (e) { - var arraybuffer = xmlHttpRequest.response; - - // convert data to binary string // - var data = new Uint8Array(arraybuffer); - var arr = new Array(); - for (var i = 0; i != data.length; ++i) arr[i] = String.fromCharCode(data[i]); - var bstr = arr.join(""); - - // Call XLSX // - var workbook = XLSX.read(bstr, { - type: "binary" - }); - // DO SOMETHING WITH workbook HERE // - var first_sheet_name = workbook.SheetNames[0]; - // Get worksheet // - var worksheet = workbook.Sheets[first_sheet_name]; - var jsonOutput = XLSX.utils.sheet_to_json(worksheet); - // console.log(jsonOutput); - for (i = 0; i < jsonOutput.length; i++) { - var authors; - if (jsonOutput[i].Authors != undefined){ - authors = jsonOutput[i].Authors.replace("and ", "").trim().split(","); - } - var bibAuthors; - var item = { - "item": { - "title": "", - "project": "", - "authors": [], - "imageLink": "", - "keywords": "", - "journal": { - "name": "journal", - "volume": "", - "year": "", - "pages": "" +var load_excel_citation = function (cb) { + xmlHttpRequest.open("GET", url, true); + xmlHttpRequest.responseType = "arraybuffer"; + xmlHttpRequest.onload = function (e) { + var arraybuffer = xmlHttpRequest.response; + + // convert data to binary string // + var data = new Uint8Array(arraybuffer); + var arr = new Array(); + for (var i = 0; i != data.length; ++i) arr[i] = String.fromCharCode(data[i]); + var bstr = arr.join(""); + + // Call XLSX // + var workbook = XLSX.read(bstr, { + type: "binary" + }); + + // DO SOMETHING WITH workbook HERE // + var first_sheet_name = workbook.SheetNames[0]; + // Get worksheet // + var worksheet = workbook.Sheets[first_sheet_name]; + + var jsonOutput = XLSX.utils.sheet_to_json(worksheet); + // console.log(jsonOutput); + + for (i = 0; i < jsonOutput.length; i++) { + var authors; + if (jsonOutput[i].Authors != undefined) { + authors = jsonOutput[i].Authors.replace("and ", "").trim().split(","); + } + var bibAuthors; + var item = { + "item": { + "title": "", + "project": "", + "authors": [], + "imageLink": "", + "keywords": "", + "journal": { + "name": "journal", + "volume": "", + "year": "", + "pages": "" + }, + "conference": { + "name": "", + "place": "", + "date": "" + }, + "DOI": "", + "publisher": "", + "type": "", + "project": "", + "reviewed": "", + "open": "" + }, - "conference":{ - "name":"", - "place":"", - "date":"" + "links": { + "pdf": "", + "url": "", + "demo": "" }, - "DOI": "", - "publisher":"", - "type":"", - "project":"", - "reviewed":"", - "open":"" - - }, - "links": { - "pdf": "", - "url": "", - "demo": "" - }, - "bibtex" : "" - } - - - bibAuthors = ""; - bit1stAuthorLN =""; - for (j = 0; j < authors.length; j++) { - var author = { - "firstName": "", - "lastName": "" + "bibtex": "" } - if (authors[j].trim().split(" ").length == 1) { - author["firstName"] = authors[j].trim().split(".")[0]; - author["lastName"] = authors[j].trim().split(".")[1]; - item["item"].authors.push(author); - bibAuthors+=authors[j].trim().split(".")[1] + ", "+ authors[j].trim().split(".")[0]+ " and "; - } else if (authors[j].trim().split(" ").length == 2) { - author["firstName"] = authors[j].trim().split(" ")[0]; - author["lastName"] = authors[j].trim().split(" ")[1]; - item["item"].authors.push(author); - bibAuthors+=authors[j].trim().split(" ")[1] + ", "+ authors[j].trim().split(" ")[0]+ " and "; - } else if (authors[j].trim().split(" ").length == 3) { - author["firstName"] = authors[j].trim().split(" ")[0]; - author["lastName"] = authors[j].trim().split(" ")[2]; - item["item"].authors.push(author); - bibAuthors+=authors[j].trim().split(" ")[2] + ", "+ authors[j].trim().split(" ")[0]+ " and "; + + + bibAuthors = ""; + bit1stAuthorLN = ""; + for (j = 0; j < authors.length; j++) { + var author = { + "firstName": "", + "lastName": "" + } + if (authors[j].trim().split(" ").length == 1) { + author["firstName"] = authors[j].trim().split(".")[0]; + author["lastName"] = authors[j].trim().split(".")[1]; + item["item"].authors.push(author); + bibAuthors += authors[j].trim().split(".")[1] + ", " + authors[j].trim().split(".")[0] + " and "; + } else if (authors[j].trim().split(" ").length == 2) { + author["firstName"] = authors[j].trim().split(" ")[0]; + author["lastName"] = authors[j].trim().split(" ")[1]; + item["item"].authors.push(author); + bibAuthors += authors[j].trim().split(" ")[1] + ", " + authors[j].trim().split(" ")[0] + " and "; + } else if (authors[j].trim().split(" ").length == 3) { + author["firstName"] = authors[j].trim().split(" ")[0]; + author["lastName"] = authors[j].trim().split(" ")[2]; + item["item"].authors.push(author); + bibAuthors += authors[j].trim().split(" ")[2] + ", " + authors[j].trim().split(" ")[0] + " and "; + } + } - - } - - if (jsonOutput[i].Keywords != undefined) { - item["item"].keywords = jsonOutput[i].Keywords.split(","); - } else { - item["item"].keywords = jsonOutput[i].Keywords; - } - - if (authors[0].split(" ").length == 3 ){ - bit1stAuthorLN = authors[0].split(" ")[2]; - } else if (authors[0].split(" ").length == 2 ){ - bit1stAuthorLN = authors[0].split(" ")[1]; - } else if (authors[0].split(" ").length == 1 ){ - bit1stAuthorLN = authors[0].split(" ")[0]; - } - - item["item"].title = jsonOutput[i].Titel; - item["item"].project = jsonOutput[i].Project; - item["item"].imageLink = jsonOutput[i]["Path to demo image"] - item["item"].journal.name = jsonOutput[i].Journal; - item["item"].journal.volume = jsonOutput[i].Volume; - item["item"].journal.year = jsonOutput[i].Year; - - item["item"].journal.pages = jsonOutput[i].Pages; - item["item"].conference.name = jsonOutput[i].Conference; - item["item"].conference.place = jsonOutput[i]["City and Country"] - item["item"].conference.date = jsonOutput[i].Date; - item["item"].publisher = jsonOutput[i].Publisher; - item["item"].type = jsonOutput[i]["Type of Work"]; - item["item"].project = jsonOutput[i].Project; - item["item"].reviewed = jsonOutput[i]["Peer-Reviewed"]; - item["item"].open = jsonOutput[i]["Open Access"]; - item["item"].DOI = jsonOutput[i].DOI; - item["links"].pdf = jsonOutput[i].PDF_Link; - 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(); + + if (jsonOutput[i].Keywords != undefined) { + item["item"].keywords = jsonOutput[i].Keywords.split(","); + } else { + item["item"].keywords = jsonOutput[i].Keywords; + } + + if (authors[0].split(" ").length == 3) { + bit1stAuthorLN = authors[0].split(" ")[2]; + } else if (authors[0].split(" ").length == 2) { + bit1stAuthorLN = authors[0].split(" ")[1]; + } else if (authors[0].split(" ").length == 1) { + bit1stAuthorLN = authors[0].split(" ")[0]; + } + + item["item"].title = jsonOutput[i].Titel; + item["item"].project = jsonOutput[i].Project; + item["item"].imageLink = jsonOutput[i]["Path to demo image"] + item["item"].journal.name = jsonOutput[i].Journal; + item["item"].journal.volume = jsonOutput[i].Volume; + item["item"].journal.year = jsonOutput[i].Year; + + item["item"].journal.pages = jsonOutput[i].Pages; + item["item"].conference.name = jsonOutput[i].Conference; + item["item"].conference.place = jsonOutput[i]["City and Country"] + item["item"].conference.date = jsonOutput[i].Date; + item["item"].publisher = jsonOutput[i].Publisher; + item["item"].type = jsonOutput[i]["Type of Work"]; + item["item"].project = jsonOutput[i].Project; + item["item"].reviewed = jsonOutput[i]["Peer-Reviewed"]; + item["item"].open = jsonOutput[i]["Open Access"]; + item["item"].DOI = jsonOutput[i].DOI; + item["links"].pdf = jsonOutput[i].PDF_Link; + 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 + + "},month={" + month + + "},pages={" + jsonOutput[i].Pages + + "},year={" + jsonOutput[i].Year + + "},DOI ={" + jsonOutput[i].DOI + + "},url ={" + jsonOutput[i].URL + + "}}" + + jsonContent.push(item); + } - - - //// 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 + - "},month={"+ month + - "},pages={"+ jsonOutput[i].Pages + - "},year={"+ jsonOutput[i].Year + - "},DOI ={"+ jsonOutput[i].DOI+ - "},url ={"+ jsonOutput[i].URL+ - "}}" - - jsonContent.push(item); - + // console.log(jsonContent); + } - console.log(jsonContent); - + xmlHttpRequest.send(); + cb() // callback } -xmlHttpRequest.send(); - - -// str = str.substring(0, lastIndex); - -// -// ending of xlsx to json coversion -// +// get paper from the Sabo result +load_excel_citation(function () { + stuff_paper = jsonContent; + var new_row = document.getElementById("cont_paper") + new_row.innerHTML = ""; + var arrayLength = stuff_paper.length; + for (var i = 0; i < arrayLength; i++) { + + if (Math.abs(arrayLength - i) <= max_paper_list) { + console.log("close to " + i) + addpaper(stuff_paper[i]); + } + //Do something + } +}) \ No newline at end of file diff --git a/public/js/parse_json_to_bib.js b/public/js/parse_json_to_bib.js deleted file mode 100644 index c1f567fb472ec7e7fe28ba0c34ee97a00d8a1842..0000000000000000000000000000000000000000 --- a/public/js/parse_json_to_bib.js +++ /dev/null @@ -1,3 +0,0 @@ -var json_to_bib = function (json_content) { - // Sabo Add Script here -} \ No newline at end of file diff --git a/public/js/search.js b/public/js/search.js index 1d99093c05db0631983df21c73eb0185d48c6102..6c597e243a48def163d05d10ae73fc5d06d409fd 100644 --- a/public/js/search.js +++ b/public/js/search.js @@ -94,21 +94,8 @@ $(document).ready(function () { // } // }); - // get paper from the Sabo result - stuff_paper = jsonContent; - var new_row = document.getElementById("cont_paper") - new_row.innerHTML = ""; - var arrayLength = stuff_paper.length; - for (var i = 0; i < arrayLength; i++) { - - if (Math.abs(arrayLength - i) <= max_paper_list) { - console.log("close to " + i) - addpaper(stuff_paper[i]); - } - //Do something - } - - json_to_bib(stuff_paper) + + var userLang = navigator.language || navigator.userLanguage;