Commit a6a4bbc9 authored by Joe TS Dell's avatar Joe TS Dell
Browse files

update

parent f4fc8a0d
......@@ -413,7 +413,6 @@
<script src="js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/0.8.2/css/flag-icon.min.css">
<script src="js/config.js"></script>
<script src="js/citationSheetParse.js"></script>
<script src="js/language.js"></script>
<script src="js/add_content.js"></script>
<script src="js/add_paper.js"></script>
......@@ -423,6 +422,7 @@
<link rel="stylesheet" href="./css/search.css">
<link rel="stylesheet" href="./css/language.css">
<script src="js/search.js"></script>
<script src="js/citationSheetParse.js"></script>
</body>
......
......@@ -7,7 +7,6 @@ function addpaper(item) {
var authors = "";
for (var i = 0; i < item.item.authors.length; i++) {
console.log(i);
authors += item.item.authors[i].lastName + ", " + item.item.authors[i].firstName.substring(0, 1) + "., "
//Do something
}
......@@ -15,7 +14,6 @@ function addpaper(item) {
// check if there is keywords in item
if (item.item.keywords !== undefined) {
for (var i = 0; i < item.item.keywords.length; i++) {
console.log(i);
keywords += '<span class="badge badge-pill badge-light">' + item.item.keywords[i] + '</span>'
//Do something
}
......
......@@ -158,13 +158,15 @@ var load_excel_citation = function (cb) {
"}}"
jsonContent.push(item);
if (i == jsonOutput.length - 1) {
cb() // callback
}
}
// console.log(jsonContent);
}
xmlHttpRequest.send();
cb() // callback
}
// get paper from the Sabo result
......@@ -176,7 +178,6 @@ load_excel_citation(function () {
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
......
......@@ -159,7 +159,6 @@ function searchToggle_paper(obj, evt) {
var arrayLength = stuff_paper.length;
for (var i = 0; i < arrayLength; i++) {
if (Math.abs(arrayLength - i) <= 2) {
console.log("close to " + i)
addpaper(stuff_paper[i]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment