-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
31 lines (26 loc) · 1009 Bytes
/
index.php
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
<?php
$BASE = '..';
$TITLE = 'Concordance Registry';
$FORMAT = 'markdown';
require_once "$BASE/vendor/autoload.php";
include "$BASE/header.php";
?>
We collect concordances and mappings in a public database run with
[jskos-server](https://github.com/gbv/jskos-server). The database can be
queried via this web interface and via an API at
<https://coli-conc.gbv.de/api/>.
<p id="concordances-stats"></p>
##### ➡ [Browse all concordances and mappings](https://coli-conc.gbv.de/cocoda/app/concordances.html)
→ alternatively [open concordances in Cocoda](https://coli-conc.gbv.de/cocoda/app/?concordances)
<script type="text/javascript">
$(document).ready(function(){
$.getJSON('https://coli-conc.gbv.de/api/concordances', function(list) {
var total = list.reduce(function (total, cur) {
return total + (1*cur.extent)
}, 0)
var text = "By now we collected " + list.length + " concordances with "
+ total + " mappings."
$('#concordances-stats').text(text)
})
})
</script>