forked from rahulgopinath/rahulgopinath.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbib.html
46 lines (45 loc) · 1.42 KB
/
bib.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
layout: page
title: Bibliography
tagline: .
group: navigation
menu: Links
weight: 9
exclude: true
---
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="/resources/bibtexParse.js"></script>
<script>
$(document).ready(function(){
years = {}
$.ajax({
url : "/resources/references.bib",
async:false,
success : function(result){
bibliography = bibtexParse.toJSON(result);
for(b of bibliography) {
years[b.entryTags.Year] = years[b.entryTags.Year] || []
years[b.entryTags.Year].push(b)
}
document.getElementById("mutationbib").innerHTML = "";
for (y of Object.keys(years).reverse()) {
bibs = years[y]
//console.log(y);
document.getElementById("mutationbib").innerHTML += "<p>";
document.getElementById("mutationbib").innerHTML += "<h4>" + y + "</h4>";
document.getElementById("mutationbib").innerHTML += "<ul>";
for (b of bibs) {
//b.citationKey + " "
txt = (b.entryTags.Author + "<br/>" + b.entryTags.Title);
document.getElementById("mutationbib").innerHTML += "<li>" + txt.replace(/[{}\/\\]+/g,'') + "<br/></li>";
}
document.getElementById("mutationbib").innerHTML += "</ul>";
document.getElementById("mutationbib").innerHTML += "</p>";
}
}
});
});
</script>
<h2>Mutation Publications</h2>
<div id="mutationbib">
</div>