forked from aserg-ufmg/CSIndex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
author_charts.html
93 lines (67 loc) · 3.21 KB
/
author_charts.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!doctype html>
<html lang="en">
<head>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-8249107-7', 'auto');
ga('send', 'pageview');
</script>
<script>
var trackOutboundLink = function(url) {
ga('send', 'event', 'outbound', 'click', url, {
'transport': 'beacon',
'hitCallback': function(){window.open(url);}
});
}
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>CSIndex: Exploring Brazilian Scientific Production in Computer Science</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="libs/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript" src="libs/jquery.csv.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages':['table']});
google.charts.setOnLoadCallback(drawTablePapers);
var corebr_author= sessionStorage.getItem('corebr_author');
var corebr_papers_file = "data/profs/search/" + corebr_author + ".csv";
function drawTablePapers() {
$.get(corebr_papers_file, function(csvString) {
var arrayData = $.csv.toArrays(csvString, {onParseValue: $.csv.hooks.castToScalar});
var data= new google.visualization.DataTable();
data.addColumn('number', 'Year'); // 0
data.addColumn('string', 'Conf'); // 1
data.addColumn('string', 'Title'); // 2
// data.addColumn('string', 'Depts');
data.addColumn('string', 'Authors'); // 3
data.addColumn('string', 'DOI'); // 4
data.addColumn('string', 'top'); // 5
data.addRows(arrayData);
data.sort({column: 0, desc: true});
var table = new google.visualization.Table(document.getElementById('author_chart_papers'));
var formatter = new google.visualization.NumberFormat( {pattern: '####'} );
formatter.format(data, 0); // format year
var formatter = new google.visualization.PatternFormat(
'{0} <a href="{1}" onclick="trackOutboundLink(this.href); return false;">[doi]</a>');
formatter.format(data, [2, 4]);
var formatter2 = new google.visualization.PatternFormat('<img src="figs/{1}.gif">{0}');
formatter2.format(data, [2, 5]);
var view = new google.visualization.DataView(data);
view.setColumns([0,1,2,3]);
table.draw(view, {allowHtml: true, showRowNumber: true, width: '100%', height: '100%'});
});
}
</script>
</head>
<body>
<div id="author_chart_papers"></div>
<script src="libs/popper.min.js"> </script>
<script src="libs/bootstrap.min.js"> </script>
</body>
</html>