/
index.html
62 lines (54 loc) · 1.83 KB
/
index.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
---
title: Academic Librarian Status Table
layout: page
custom-foot: "js/lib_status.html"
---
<h1>Academic Librarian Status Table</h1>
<p>The table below provides sorting and filtering of the contents. Options to export and download the data are available at the bottom. Please see <a href="about.html">About</a> for info.</p>
{% assign items = site.data.librarian_status %}
<link rel="stylesheet" type="text/css" href="{{ '/assets/lib/datatables/datatables.min.css' | absolute_url }}">
<div class="form-group row justify-content-end">
<label for="groupSelect" class="col-sm-4 col-form-label text-right">Filter by Librarian Status:</label>
<div class="col-sm-4">
<select id="groupSelect" class="form-control custom-select">
<option value="all">All Status</option>
{%- assign options = items | map: "status" | uniq -%}
{% for i in options %}<option value="{{ i }}">{{ i }} ({{ items | where: 'status',i | size }})</option>
{% endfor %}
</select>
</div>
</div>
<table id="libstatus" class="table table-striped">
<thead>
<tr>
<th>Status</th>
<th>Institution</th>
<th>Notes</th>
<th>Link</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Status</th>
<th>Institution</th>
<th>Notes</th>
<th>Link</th>
</tr>
</tfoot>
<tbody>
{% for item in items %}
<tr>
<td >{{ item.status }}</td>
<td >{{ item.institution }}</td>
<td >{{ item.notes }}</td>
<td >{{ item.link }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<hr>
<p class="mt-4">Clicking the Excel / CSV buttons above will export the current subset of <em>filtered</em> items from the table. For the complete data:</p>
<p class="text-center">
<a href="{{ '/data/librarian_status.json' | relative_url }}" class="btn btn-success m-3">Download Full JSON</a>
<a href="{{ '/data/librarian_status.csv' | relative_url }}" class="btn btn-success m-3">Download Full CSV</a>
</p>