This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
forked from Eshijalote/DK_PersonalSite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Academic-Papers.html
382 lines (312 loc) · 14.7 KB
/
Academic-Papers.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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>Professor Dean Karlan</title>
<link href="images/favicon.ico" rel="shortcut icon" type="image/icon"/>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,700,800" rel="stylesheet">
<link href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" rel="stylesheet">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet">
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script src="js/tabulator.min.js" type="text/javascript"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.14.0/css/mdb.min.css" rel="stylesheet">
<style>
.container {
max-width: 100%;
padding-left: 10px;
padding-right: 10px;
}
</style>
<link href="css/style.css" rel="stylesheet">
</head>
<body id="body">
<header class="header fixed-top">
<nav class="navbar navbar-expand-lg navbar-light bg-light ">
<a class="navbar-brand logo-wrap" href="index.html">
<span style="font-weight:600; font-size:25px; color: #e9e9e9">Professor Dean Karlan</span>
</a>
<button aria-controls="menu" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler" data-target="#menu"
data-toggle="collapse" type="button">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="menu">
<ul class="navbar-nav ml-auto mt-lg-0 ">
<li class="js_nav-item nav-item"><a class="nav-link nav-item-child nav-item-hover"
href="index.html">Home</a>
</li>
<li class="js_nav-item nav-item"><a class="nav-link nav-item-child nav-item-hover"
download="Dean Karlan"
href="https://drive.google.com/file/d/1klr4amsGQiRd1-GQgl9wvYz988Md7pvq/view?usp=sharing">CV</a></li>
<li class="js_nav-item nav-item dropdown">
<a aria-expanded="false" aria-haspopup="true"
class="nav-link nav-item-child nav-item-hover dropdown-toggle active" data-toggle="dropdown" href="#" id="navbarDropdown">
Publications
</a>
<div aria-labelledby="navbarDropdown" class="dropdown-menu">
<a class="dropdown-item nav-link nav-item-child nav-item-hover active"
href="Academic-Papers.html">Academic Papers</a>
<a class="dropdown-item nav-link nav-item-child nav-item-hover" href="Academic-Reviews.html">Academic Reviews</a>
<a class="dropdown-item nav-link nav-item-child nav-item-hover" href="Policy-Papers.html">Policy
Papers</a>
<a class="dropdown-item nav-link nav-item-child nav-item-hover" href="Op-Eds.html">Op-Eds</a>
</div>
</li>
<li class="js_nav-item nav-item"><a class="nav-link nav-item-child nav-item-hover"
href="books.html">Books</a>
</li>
<li class="js_nav-item nav-item"><a class="nav-link nav-item-child nav-item-hover"
href="pictures.html">Photos</a>
</li>
</ul>
</div>
</nav>
</header>
<main role="main">
<section id="books" style="padding-top: 95px;">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="books-container">
<div class="title-container">
<h2 class="section-title">Academic Papers</h2><br/><br/>
</div>
<div class="table-controls" style="display: block">
<div style="display: inline-flex;">
<span>
<label>Sort by: </label>
<select id="sort-field">
<option value="date">Date</option>
<option value="citation">Citation Count</option>
<option value="citationYear">Citation/Year</option>
</select>
</span>
</div>
<div style="display: inline-flex; float: right; margin-right: 30px;">
<span>
<label>Filter by Category: </label>
<select id="category-field">
<option value="">ALL</option>
<option value="Agriculture">Agriculture</option>
<option value="Behavioral Economics">Behavioral Economics</option>
<option value="Charitable Giving">Charitable Giving</option>
<option value="COVID-19">COVID-19</option>
<option value="Education">Education</option>
<option value="Entrepreneurship">Entrepreneurship</option>
<option value="Financial Education">Financial Education</option>
<option value="Halloween">Halloween</option>
<option value="Health">Health</option>
<option value="Household Bargaining">Household Bargaining</option>
<option value="Household Finance">Household Finance</option>
<option value="Machine Learning">Machine Learning</option>
<option value="Managerial Capital">Managerial Capital</option>
<option value="Methodological">Methodological</option>
<option value="Microcredit">Microcredit</option>
<option value="Microsavings">Microsavings</option>
<option value="Political Economy">Political Economy</option>
<option value="Religion">Religion</option>
<option value="Risk">Risk</option>
<option value="Smoking Cessation">Smoking Cessation</option>
<option value="Social Capital">Social Capital</option>
<option value="Social Protection">Social Protection</option>
<option value="Teaching">Teaching</option>
</select>
</span></div>
<div style="display: inline-flex; float: right; margin-right: 30px;">
<span>
<label>Filter by Country: </label>
<select id="country-field">
<option value="">ALL</option>
<option value="Bangladesh">Bangladesh</option>
<option value="Benin">Benin</option>
<option value="Bolivia">Bolivia</option>
<option value="Burkina Faso">Burkina Faso</option>
<option value="Chile">Chile</option>
<option value="Colombia">Colombia</option>
<option value="Egypt">Egypt</option>
<option value="Ethiopia">Ethiopia</option>
<option value="Ghana">Ghana</option>
<option value="Honduras">Honduras</option>
<option value="India">India</option>
<option value="Jordan">Jordan</option>
<option value="Kenya">Kenya</option>
<option value="Malawi">Malawi</option>
<option value="Mali">Mali</option>
<option value="Mexico">Mexico</option>
<option value="Morocco">Morocco</option>
<option value="Namibia">Namibia</option>
<option value="Nepal">Nepal</option>
<option value="Niger">Niger</option>
<option value="Pakistan">Pakistan</option>
<option value="Peru">Peru</option>
<option value="Philippines">Philippines</option>
<option value="Rwanda">Rwanda</option>
<option value="Sierra Leone">Sierra Leone</option>
<option value="South Africa">South Africa</option>
<option value="Togo">Togo</option>
<option value="Turkey">Turkey</option>
<option value="Uganda">Uganda</option>
<option value="USA">USA</option>
<option value="Yemen">Yemen</option>
<option value="Zambia">Zambia</option>
</select>
</span></div>
</div>
<br/>
<!-- Card deck -->
<form class="paperTable">
<br>
<div id="academic-papers-table-info" style="display: inline-flex; float: left">
</div>
<div style="display: inline-flex; float: right; margin-right: 30px;">
<button id="resetBtn" type="reset" value="Reset">Reset Search</button>
</div>
<br>
<div id="academic-papers-table"></div>
</form>
</div>
</div>
</div>
</div>
</section>
</main>
<footer id="footer" role="contentinfo">
<div class="container">
<div class="footer-area">
<p class="footer-content">
<div class="col-xs-12">
<h4 class="text-uppercase" style="color: #2C7CF6">Dean Karlan</h4>
<h5>Kellogg School of Management | Northwestern University</h5>
<h6>Kellogg Global Hub</h6>
<h6>2211 Campus Drive, Room 4441</h6>
<h6>Evanston, IL 60208</h6>
<h6>dean.karlan AT gmail.com</h6>
</div>
</p>
</div>
</div>
</footer>
<script src="js/bootstrap.js"></script>
<script>
$('.navbar-nav>li>a').on('click', function () {
$('.navbar-collapse').collapse('hide');
});
</script>
<link href="css/tabulator_materialize.min.css" rel="stylesheet">
<link href="css/tabulator_bootstrap4.min.css" rel="stylesheet">
<script>
var dateFormatter = function (cell, formatterParams) {
var value = cell.getValue();
if (value) {
value = moment.utc(Date.parse(value)).format("MM/YYYY");
}
return value;
};
var c = 0;
var div = "";
function display(results) {
function titleFunction(headerValue, rowValue, rowData, filterParams) {
var searchStrings = headerValue.split(" ");
var stringPresent = false;
$.each(searchStrings, function (j, searchString) {
if (rowData.title.toLowerCase().includes(searchString.toLowerCase())) {
stringPresent = true;
} else {
stringPresent = false;
return false;
}
});
return stringPresent;
}
var table = new Tabulator("#academic-papers-table", {
data: results,
initialSort: [
{column: "date", dir: "desc"}
],
columns: [
{title: "Citation Count", field: "citation", width: '0%', visible: false, headerSort: false},
{title: "Citation/Year", field: "citationYear", width: '0%', visible: false, headerSort: false},
{title: "Category", field: "category", width: '0%', visible: false, headerSort: false},
{title: "Country", field: "country", width: '0%', visible: false, headerSort: false},
{
title: "Title",
field: "title",
width: '40%',
headerFilter: "input",
formatter: "link",
formatterParams: {urlField: "url", target: "_blank"},
headerFilterFunc: titleFunction,
headerFilterPlaceholder: "Search by Title",
headerSort: false
},
{title: "Date", field: "date", width: '10%', formatter: dateFormatter, headerSort: false},
{
title: "Publication",
field: "publication",
width: "21%",
formatter: "html",
headerSort: false,
headerFilter: "input",
headerFilterPlaceholder: "Search by Publication"
},
{
title: "Co-Authors",
field: "authors",
width: "29%",
headerSort: false,
headerFilter: "input",
headerFilterPlaceholder: "Search by Co-Authors"
}
],
dataFiltered: function (filters, rows) {
//filters - array of filters currently applied
//rows - array of row components that pass the filters
var div = document.getElementById('academic-papers-table-info');
div.innerHTML = 'There are ' + rows.length + " articles available matching your search criteria.";
}
});
$('#academic-papers-table').addClass("table-striped");
$(document).on("click", "#resetBtn", function () {
table.clearHeaderFilter();
$("#category-field").prop('selectedIndex', 0);
updateFilter();
$("#country-field").prop('selectedIndex', 0);
updateCountryFilter();
});
$(window).resize(function () {
table.redraw(true);
});
$("#sort-field").change(function () {
table.setSort($("#sort-field").val(), 'desc');
});
function customFilter(data) {
return data.category.toLowerCase().includes($("#category-field").val().toLowerCase());
}
function updateFilter() {
var filter = customFilter;
table.addFilter(filter, $("#category-field").val());
}
$("#category-field").change(function () {
updateFilter();
});
function customFilterCountry(data) {
return data.country.toLowerCase().includes($("#country-field").val().toLowerCase());
}
function updateCountryFilter() {
var filter = customFilterCountry;
table.addFilter(filter, $("#country-field").val());
}
$("#country-field").change(function () {
updateCountryFilter();
});
}
</script>
<script src="https://script.google.com/macros/s/AKfycbxc0LCf6zSRBSnOGuDPDbokUiIKMtLStxcS1CtdfLSn_xAFTeEH/exec?prefix=display">
</script>
</body>
</html>