-
Notifications
You must be signed in to change notification settings - Fork 1
/
2019.htm
86 lines (74 loc) · 3.08 KB
/
2019.htm
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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Rhetorlist</title>
<meta name="viewport" content="initial-scale=1.0" />
<link href="css/tabulator.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://use.typekit.net/hqg0trp.css">
<link rel="stylesheet" href="css/style.css?v=0.87">
<script type="text/javascript" src="js/moment.min.js"></script>
<script type="text/javascript" src="js/tabulator.min.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-9134554-3"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-9134554-3');
</script>
</head>
<body>
<section class="container">
<h1>Rhetorlist</h1>
<h2>Tracking new books in Rhetoric & Writing, Composition Studies, Technical Communication, and related disciplines.</h2>
<p class="nav-links"><a href="about.htm">About this site</a> | <a href="submit.htm">Submit a book</a></p>
<section class="table-container">
<h3>Archive of 2019 releases listed below | <a href="index.htm">Return to 2020</a></h3>
<p class="mobile-headsup"><small><em>To filter data by all columns, please view the table in a desktop browser. Mobile browser sizes offer limited filtering.</em></small></p>
<div id="book-list"></div>
</section>
<script type="text/javascript">
var table = new Tabulator("#book-list", {
initialSort: [
{column:"publicationDate", dir:"desc"}
],
layout:"fitColumns",
responsiveLayout:"collapse",
selectable:false,
columns:[ //Define Table Columns
{title:"Title", field:"title", align:"left", formatter:"link", formatterParams:{urlField:"publisherURL", target:"_blank"}, headerFilter:"input", reponsive:0, minWidth:300},
{title:"Author(s)", field:"author", align:"left", headerFilter:"input", minWidth:300, formatter:"textarea"},
{title:"Publisher", field:"publisher", align:"left", headerFilter:"select", minWidth:200, headerFilterParams:paramBuilder, formatter:"textarea", variableHeight:true, width:250, responsive:4},
{title:"Date", field:"publicationDate", align:"left", width:100, responsive:3, sorter:"date", sorterParams:{format:"MM-DD-YYYY"}},
{title:"OA?", field:"openAccess", align:"left", headerFilter:"select", width:100, responsive:5, headerFilterParams:{
"":"all",
"yes":"yes",
"no":"no"
}
}
],
// reload publisher filter after table is built
dataLoaded:function(){
this.getColumn("publisher").reloadHeaderFilter();
}
});
table.setData("2019.json");
//build publisher dropdown with parambuilder
function paramBuilder(){
var list = {"":""};
var data = this.getData().map(a => a.publisher);
// alphabetize the array before building list
data.sort();
data.forEach(function(item){
if(typeof item !== "undefinded"){
list[item] = item;
}
});
return list;
}
</script>
</section>
</body>
</html>