-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
99 lines (86 loc) · 4.66 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bibliography of the Aegean Glyptic</title>
<link href="https://fonts.googleapis.com/css?family=Alegreya+SC" rel="stylesheet">
<script src="https://unpkg.com/vuejs-paginate@latest"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="style.css">
<script src="reflist-wikidata.js"></script>
<script src="https://cdn.rawgit.com/itemsapi/itemsjs/master/dist/itemsjs.js"></script>
<script src="https://cdn.jsdelivr.net/vue/latest/vue.min.js"></script>
</head>
<body>
<div id="el">
<header>
<h1>Bibliography of the Aegean Glyptic</h1>
<p>More information on Wikiversity: <a href="https://de.wikiversity.org/wiki/Wikiversity:Fellow-Programm_Freies_Wissen/Einreichungen/A_Linked_and_Open_Bibliography_for_Aegean_Glyptic_in_the_Bronze_Age">A Linked and Open Bibliography for Aegean Glyptic in the Bronze Age</a></p>
<nav class="navbar">
<div class="container">
<div id="navbar">
<form class="navbar-form">
<div class="form-group" id="searchArea">
<input type="text" id="searchAllSlot" v-model="query" class="form-control" placeholder="Search">
</div>
</form>
<span class="pagination-area justify-content-end">
<p id="result-counter">{{ searchResult.pagination.total }} results</p>
<span class="pagination-bar">
<paginate
:page-count="Math.ceil(searchResult.pagination.total / searchResult.pagination.per_page)"
:click-handler="goToPage"
:prev-text="'Prev'"
:next-text="'Next'"
:container-class="'pagination'">
</paginate>
</span>
</span>
</div><!--/.nav-collapse -->
</div>
</nav>
</header>
<p class="text-muted">Search performed in {{ searchResult.timings.search }} ms, facets in {{ searchResult.timings.facets }} ms</p>
<div class="container">
<div class="row">
<div class="col-md-9 col-xs-9">
<!--<h3>List of items ({{ searchResult.pagination.total }})</h3>-->
<div class="table table-striped">
<div class ="tr item-row" v-for="item of searchResult.data.items">
<p><span v-for="author in item.authors">{{ author }} </span><span v-for="authorstrg in item.authorstrings">{{ authorstrg }} </span><span v-for="editor in item.editors">{{ editor }} </span> – <b>{{item.workLabel}}</b> <br />
({{item.date }})</p>
<!-- <a v-bind:href="item.work">Item on Wikidata</a>-->
<!-- <a v-bind:href="'https://www.wikidata.org/wiki/' + item.qid">Wikidata: {{ item.qid }}</a>-->
<p>
<span class="tags" v-for="tag in item.topics">{{ tag }}</span>
<span class="tags" v-for="place in item.places">{{ place }}</span>
<span class="tags" v-for="object in item.objects">{{ object }}</span>
</p>
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="col-md-3 col-xs-3">
<div v-for="facet in searchResult.data.aggregations">
<h5 style="margin-bottom: 5px;"><strong style="color: #ff6347;">{{ facet.title }}</strong></h5>
<ul class="browse-list list-unstyled long-list" style="margin-bottom: 0;">
<li v-for="bucket in facet.buckets">
<div class="checkbox block" style="margin-top: 0; margin-bottom: 0;">
<label>
<!--<input class="checkbox" type="checkbox" v-on:click="updateFilters(facet.name, bucket.key)" v-model="filters[bucket.key]" value="{{ bucket.key }}" v-bind:value="isChecked2()">-->
<!--<input class="checkbox" type="checkbox" v-on:click="updateFilters(facet.name, bucket.key)" v-model="filters[bucket.key]" v-bind:value="bucket.key">-->
<input class="checkbox" type="checkbox" v-model="filters[facet.name]" v-bind:value="bucket.key">
{{ bucket.key }} ({{ bucket.doc_count }})
</label>
</div>
</li>
</ul>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<script src="itemjs-script.js"></script>
</body>
</html>