forked from aserg-ufmg/CSIndex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
authors.html
181 lines (139 loc) · 6.22 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
<!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>
<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">
<link href="./css/dashboard.css" rel="stylesheet">
<style media="screen">
body,html { height: 80%; }
.icon { margin-right: 5px; }
.autocomplete-suggestions {
text-align: left; cursor: default; border: 1px solid #ccc; border-top: 0; background: #fff; box-shadow: -1px 1px 3px rgba(0,0,0,.1);
position: absolute; display: none; z-index: 9999; max-height: 254px; overflow: hidden; overflow-y: auto; box-sizing: border-box;
}
.autocomplete-suggestion { position: relative; padding: 0 .6em; line-height: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.02em; color: #333; }
.autocomplete-suggestion b { font-weight: normal; color: #1f8dd6; }
.autocomplete-suggestion.selected { background: #f0f0f0; }
</style>
<script src="libs/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="libs/jquery.csv.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/JavaScript-autoComplete/1.0.4/auto-complete.min.js"></script>
<script type="text/javascript">
sessionStorage.setItem('corebr_author', 'empty');
var url = new URL(window.location.href);
var author = url.searchParams.get("p");
if (author != null) {
sessionStorage.setItem('corebr_author', author);
}
</script>
<script type="text/javascript">
$(document).ready(function(){
var author= sessionStorage.getItem('corebr_author');
if (author !== "empty") {
document.getElementById("app-input").value= author.split("-").join(" ");
}
var file = 'data/profs/all-authors.csv';
String.prototype.replaceAll = function(search, replacement) {
var target = this;
return target.split(search).join(replacement);
};
$.get(file, function(data) {
var list = data.split('\n').map(function(c){ return c.trim(); });
new autoComplete({
selector: '#app-input',
minChars: 4,
source: function(term, suggest){
var suggestions = list.filter(function(city) { return (city.toLowerCase().indexOf(term.toLowerCase().trim()) >= 0); });
suggest(suggestions);
},
onSelect: function(event, term, item) {
ga('send', 'event', 'Author Search', term);
term2= term.replaceAll(" ", "-");
sessionStorage.setItem('corebr_author', term2);
window.history.pushState('', '', '?p=' + term2);
document.getElementById('author-charts-frame').contentWindow.location.reload(true);
}
});
});
//$('#search-btn').click(function() {
//var author = $('#app-input').val();
//document.getElementById('author-charts-frame').contentWindow.location.reload(true);
// author.replace(" ", "-");
// sessionStorage.setItem('corebr_author', author);
// alert('Search: ' + value);
//});
});
</script>
</head>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-dark fixed-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">CSIndex</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 <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="authors.html">Author Pages</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">
<p></p>
<p>
<b>Only Brazilian faculties with papers in tracked conferences have pages on CSIndex.</b> Author pages
have a permanent URL; so you can link to them (copy the URL in the address bar of the browser).
</p>
</div>
</div>
<div class="row">
<div class="col-sm-8">
<div class="input-group h-20 border-primary justify-content-center">
<input id="app-input" type="text" class="form-control"
placeholder="Enter the name of a Brazilian faculty" aria-label="Author" aria-describedby="basic-addon2">
</div>
<p></p>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<iframe name="frame-results" id="author-charts-frame" height=500 width=1080 src="author_charts.html"></iframe>
<p class="text-center">
<small>CSIndex is maintained by <a href="http://aserg.labsoft.dcc.ufmg.br/">ASERG/DCC/UFMG</a>,
under a <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0.
</a>license.
See <a href="faq.html">FAQ</a> for details.
</small> </p>
</div>
</div>
</div>
<script src="libs/popper.min.js"> </script>
<script src="libs/bootstrap.min.js"></script>
</body>
</html>