-
Notifications
You must be signed in to change notification settings - Fork 21
/
authors.html
315 lines (265 loc) · 11.1 KB
/
authors.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<!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>
<link rel="shortcut icon" type="image/x-icon" href="figs/csindexbr-favicon.ico">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="libs/jquery-3.4.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 = location.search.split('p=')[1];
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});
citations = 0;
top_papers = 0;
arrayData2 = [];
for (var i = 0; i < arrayData.length; i++) {
if (arrayData[i][7] == "no_arxiv") {
arrayData[i][7] = "";
} else {
arrayData[i][7] = "<a href=\"" + arrayData[i][7] + "\" target=\"_blank\" onclick=\"trackOutboundLink(this.href); return false;\">[arxiv]</a>";
}
cit = parseInt(arrayData[i][8]);
if (!isNaN(cit)) {
citations = citations + cit;
}
if (arrayData[i][5] == "top") {
top_papers++;
}
arrayData2.push(arrayData[i]);
}
papers = arrayData.length
if (papers == 1) {
msg = " 1 paper"
}
else {
msg = papers + " papers"
}
if (top_papers == 1) {
msg = msg + '; 1 top-paper (<img src="figs/top.gif">)';
}
if (top_papers > 1) {
msg = msg + '; ' + top_papers + ' top-papers (<img src="figs/top.gif">)';
}
// msg = msg + citations + " citations (since 2015)";
//if (citations > 0) {
// avg = ((1.0 * citations) / papers).toFixed(1);
// msg = msg + "; " + avg + " citations/paper";
// }
document.getElementById("author_stats").innerHTML = msg;
var data= new google.visualization.DataTable();
data.addColumn('number', 'Year'); // 0 - Year
data.addColumn('string', 'Venue'); // 1 - Venue
data.addColumn('string', 'Title/Authors'); // 2 - Title
data.addColumn('string', ''); // 3 - Authors
data.addColumn('string', ''); // 4 - DOI
data.addColumn('string', ''); // 5 - top
data.addColumn('string', ''); // 6 - type
data.addColumn('string', ''); // 7 - type={no_arxiv,arxiv_url}
data.addColumn('number', 'Citations'); // 8 - citations
data.addRows(arrayData2);
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.NumberFormat('<font size="3"> <b>{0}</b> <br> </font>');
//formatter.format(data, 1);
var formatter = new google.visualization.PatternFormat(
'<b>{0}</b> <br> {1} <a href="{2}" onclick="trackOutboundLink(this.href); return false;">[doi]</a> {3}');
formatter.format(data, [2,3,4,7]);
var formatter2 = new google.visualization.PatternFormat('<img src="figs/{0}.gif">');
formatter2.format(data, [5]);
var view = new google.visualization.DataView(data);
// view.setColumns([6,1,0,5,2,8]);
view.setColumns([6,1,0,5,2]); // citações foram removidas (i=8)
var table2= view.toDataTable();
table2.sort({column: 1, desc: false});
table2.sort({column: 2, desc: true});
table.draw(table2, {allowHtml: true, showRowNumber: true, width: '100%', height: '100%'});
});
}
</script>
</head>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-dark static-top bg-dark">
<button class="navbar-toggler d-lg-none" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="index.html">CSIndexbr <font size="1">BETA</font></a>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="authors2.html">Faculty <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="depts2.html">Departments</a>
</li>
<li class="nav-item">
<a class="nav-link" href="statistics.html">Statistics</a>
</li>
<li class="nav-item">
<a class="nav-link" href="faq.html">FAQ</a>
</li>
</ul>
</div>
</nav>
</header>
<div class="container">
<div class="row">
<div class="col-sm-12">
<h2 id="author_name"> author </h2>
<h7 id="author_stats"> stats </h7>
<p></p>
<div id="author_chart_papers"></div>
<p class="text-center">
<!-----
<small>
<b>Tip:</b> click on column headers to sort.
</small>
----->
<h7 id="dblp_link"></h7>
</p>
</div>
</div>
</div>
<script>
var author = corebr_author.split("-").join(" ");
function instToLink(inst) {
if (inst === 'COPPE/UFRJ') {
return '<a href="https://csindexbr.org/depts.html?d=coppeufrj">COPPE/UFRJ';
}
else if (inst === 'DCC/UFRJ') {
return '<a href="https://csindexbr.org/depts.html?d=dccufrj">DCC/UFRJ';
}
else if (inst === 'ICMC/USP') {
return '<a href="https://csindexbr.org/depts.html?d=icmcusp">ICMC/USP';
}
else if (inst === 'IME/USP') {
return '<a href="https://csindexbr.org/depts.html?d=imeusp">IME/USP';
}
else if (inst === 'PUC-RS') {
return '<a href="https://csindexbr.org/depts.html?d=puc-rs">PUC-RS';
}
else if (inst === 'PUC-Rio') {
return '<a href="https://csindexbr.org/depts.html?d=puc-rio">PUC-Rio';
}
else if (inst === 'UERJ') {
return '<a href="https://csindexbr.org/depts.html?d=uerj">UERJ';
}
else if (inst === 'UFABC') {
return '<a href="https://csindexbr.org/depts.html?d=ufabc">UFABC';
}
else if (inst === 'UFAM') {
return '<a href="https://csindexbr.org/depts.html?d=ufam">UFAM';
}
else if (inst === 'UFBA') {
return '<a href="https://csindexbr.org/depts.html?d=ufba">UFBA';
}
else if (inst === 'UFC') {
return '<a href="https://csindexbr.org/depts.html?d=ufc">UFC';
}
else if (inst === 'UFCG') {
return '<a href="https://csindexbr.org/depts.html?d=ufcg">UFCG';
}
else if (inst === 'UFES') {
return '<a href="https://csindexbr.org/depts.html?d=ufes">UFES';
}
else if (inst === 'UFF') {
return '<a href="https://csindexbr.org/depts.html?d=uff">UFF';
}
else if (inst === 'UFMG') {
return '<a href="https://csindexbr.org/depts.html?d=ufmg">UFMG';
}
else if (inst === 'UFPE') {
return '<a href="https://csindexbr.org/depts.html?d=ufpe">UFPE';
}
else if (inst === 'UFPR') {
return '<a href="https://csindexbr.org/depts.html?d=ufpr">UFPR';
}
else if (inst === 'UFRGS') {
return '<a href="https://csindexbr.org/depts.html?d=ufrgs">UFRGS';
}
else if (inst === 'UFRN') {
return '<a href="https://csindexbr.org/depts.html?d=ufrn">UFRN';
}
else if (inst === 'UFSC') {
return '<a href="https://csindexbr.org/depts.html?d=ufsc">UFSC';
}
else if (inst === 'UFSCar') {
return '<a href="https://csindexbr.org/depts.html?d=ufscar">UFSCar';
}
else if (inst === 'UFU') {
return '<a href="https://csindexbr.org/depts.html?d=ufu">UFU';
}
else if (inst === 'UNICAMP') {
return '<a href="https://csindexbr.org/depts.html?d=unicamp">UNICAMP';
}
else if (inst === 'UNIFESP') {
return '<a href="https://csindexbr.org/depts.html?d=unifesp">UNIFESP';
}
else if (inst === 'UTFPR') {
return '<a href="https://csindexbr.org/depts.html?d=utfpr">UTFPR';
}
else if (inst === 'UnB') {
return '<a href="https://csindexbr.org/depts.html?d=unb">UnB';
}
else if (inst === 'UFPA') {
return '<a href="https://csindexbr.org/depts.html?d=ufpa">UFPA';
}
return inst;
}
$.get("data/all-researchers.csv", function(csvString) {
var data = $.csv.toArrays(csvString, {onParseValue: $.csv.hooks.castToScalar});
for (var i = 0; i < data.length; i++) {
if (data[i][0] === author) {
document.title = 'CSIndexbr - ' + author + ' - ' + data[i][1];
// document.description = 'List of papers published by ' + author;
txt1 = 'List of scientific papers published by ' + author + ', including citation counts and links to arXiv preprints.';
document.getElementsByTagName('meta')["description"].content = txt1;
inst2 = data[i][1];
inst2 = instToLink(inst2);
inst = '<font size="4"> (' + inst2 + ')</font>';
document.getElementById("author_name").innerHTML = author + inst;
dblp_pid = data[i][2];
dblp = '<small><b>See also</b> the full list of papers at ';
event = '" onclick="trackOutboundLink(this.href); return false;"';
dblp = dblp + '<a href="https://dblp.org/pid/' + dblp_pid;
dblp = dblp + event + '>DBLP</a></small>';
document.getElementById("dblp_link").innerHTML = dblp;
break;
}
}
});
ga('send', 'event', 'Author Search', author);
</script>
<script src="libs/popper.min.js"> </script>
<script src="libs/bootstrap.min.js"> </script>
</body>
</html>