-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
997538c
commit 165d601
Showing
5 changed files
with
57 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
$(document).ready(function () { | ||
if (top.location.pathname === '/research/') { | ||
var x = new XMLHttpRequest(); | ||
// Change the link to the appropriate one. | ||
x.open("GET", "https://dblp.org/pid/167/1074.xml", true); | ||
x.onreadystatechange = function () { | ||
if (x.readyState == 4 && x.status == 200) { | ||
var publications = x.responseXML; | ||
var r = publications.getElementsByTagName("r"); | ||
var html_str = '<ul>'; | ||
|
||
for (var i = 0; i < r.length; i++) { | ||
html_str += "<li>" | ||
console.log(r[i].innerHTML); | ||
|
||
var authors = r[i].getElementsByTagName('author'); | ||
var authors_str = '' | ||
for (var j = 0; j < authors.length; j++) { | ||
authors_str += authors[j].innerHTML | ||
if (j < authors.length - 1) { | ||
authors_str += ', ' | ||
} else { | ||
authors_str += ';' | ||
} | ||
} | ||
html_str += authors_str | ||
|
||
var title_str = " " + r[i].getElementsByTagName('title')[0].innerHTML; | ||
var doi = r[i].getElementsByTagName('ee')[0].innerHTML; | ||
|
||
html_str += "<strong> <i> <a href='" + doi + "' target='_blank'>" + title_str + "</a> </i> </strong>;" | ||
|
||
var journal = r[i].getElementsByTagName('journal')[0]; | ||
if (!journal) { | ||
var journal = r[i].getElementsByTagName('booktitle')[0]; | ||
} | ||
html_str += " " + journal.innerHTML + " "; | ||
|
||
var year = r[i].getElementsByTagName('year')[0]; | ||
html_str += year.innerHTML + '.'; | ||
|
||
html_str += "</li>"; | ||
} | ||
html_str += "</ul>"; | ||
} | ||
$('#publications').html(html_str); | ||
}; | ||
x.send(null); | ||
} | ||
|
||
|
||
}); | ||
// $(document).ready(function () { | ||
// if (top.location.pathname === '/research/') { | ||
// var x = new XMLHttpRequest(); | ||
// // Change the link to the appropriate one. | ||
// x.open("GET", "######", true); | ||
// x.onreadystatechange = function () { | ||
// if (x.readyState == 4 && x.status == 200) { | ||
// var publications = x.responseXML; | ||
// var r = publications.getElementsByTagName("r"); | ||
// var html_str = '<ul>'; | ||
|
||
// for (var i = 0; i < r.length; i++) { | ||
// html_str += "<li>" | ||
// console.log(r[i].innerHTML); | ||
|
||
// var authors = r[i].getElementsByTagName('author'); | ||
// var authors_str = '' | ||
// for (var j = 0; j < authors.length; j++) { | ||
// authors_str += authors[j].innerHTML | ||
// if (j < authors.length - 1) { | ||
// authors_str += ', ' | ||
// } else { | ||
// authors_str += ';' | ||
// } | ||
// } | ||
// html_str += authors_str | ||
|
||
// var title_str = " " + r[i].getElementsByTagName('title')[0].innerHTML; | ||
// var doi = r[i].getElementsByTagName('ee')[0].innerHTML; | ||
|
||
// html_str += "<strong> <i> <a href='" + doi + "' target='_blank'>" + title_str + "</a> </i> </strong>;" | ||
|
||
// var journal = r[i].getElementsByTagName('journal')[0]; | ||
// if (!journal) { | ||
// var journal = r[i].getElementsByTagName('booktitle')[0]; | ||
// } | ||
// html_str += " " + journal.innerHTML + " "; | ||
|
||
// var year = r[i].getElementsByTagName('year')[0]; | ||
// html_str += year.innerHTML + '.'; | ||
|
||
// html_str += "</li>"; | ||
// } | ||
// html_str += "</ul>"; | ||
// } | ||
// $('#publications').html(html_str); | ||
// }; | ||
// x.send(null); | ||
// } | ||
|
||
|
||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters