Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (28 sloc) 993 Bytes
<?php
$BASE = '..';
include "$BASE/header.php";
?>
<p>
We collect concordances and mappings in a public database run with
<a href="https://github.com/gbv/jskos-server">jskos-server</a>. The
database can be queried via this web interface and via an API at
<a href="https://coli-conc.gbv.de/api/">https://coli-conc.gbv.de/api/</a>.
</p>
<div id="mappingsApp"></div>
<?php
$html = (file_exists('../cocoda/mappings.html')
? file_get_contents('../cocoda/mappings.html')
: file_get_contents('http://coli-conc.gbv.de/cocoda/mappings.html')) ?? '';
if (preg_match_all('!src=["\']?([^"\'>]+)!', $html, $match)) {
foreach ($match[1] as $src) {
echo "<script type='text/javascript' src='../cocoda/$src'></script>";
}
}
if (preg_match_all('!link href=["\']?([^"\'> ]+)!', $html, $match)) {
foreach ($match[1] as $src) {
if (strpos($src, "bootstrap") === false) {
echo "<link href='../cocoda/$src' rel='stylesheet'>";
}
}
}
include "$BASE/footer.php";