mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 02:21:55 -04:00
Add DP OLS to known sources
This commit is contained in:
parent
02af93b654
commit
f0575be98f
5 changed files with 15 additions and 1 deletions
|
@ -17,7 +17,8 @@ const SOURCE_HATHI_TRUST = 1;
|
||||||
const SOURCE_WIKISOURCE = 2;
|
const SOURCE_WIKISOURCE = 2;
|
||||||
const SOURCE_INTERNET_ARCHIVE = 3;
|
const SOURCE_INTERNET_ARCHIVE = 3;
|
||||||
const SOURCE_GOOGLE_BOOKS = 4;
|
const SOURCE_GOOGLE_BOOKS = 4;
|
||||||
const SOURCE_OTHER = 5;
|
const SOURCE_DP_OLS = 5;
|
||||||
|
const SOURCE_OTHER = 6;
|
||||||
|
|
||||||
const AVERAGE_READING_WORDS_PER_MINUTE = 275;
|
const AVERAGE_READING_WORDS_PER_MINUTE = 275;
|
||||||
|
|
||||||
|
|
|
@ -289,6 +289,9 @@ class Ebook{
|
||||||
elseif(mb_stripos($e, 'books.google.com/') !== false){
|
elseif(mb_stripos($e, 'books.google.com/') !== false){
|
||||||
$this->Sources[] = new EbookSource(SOURCE_GOOGLE_BOOKS, $e);
|
$this->Sources[] = new EbookSource(SOURCE_GOOGLE_BOOKS, $e);
|
||||||
}
|
}
|
||||||
|
elseif(mb_stripos($e, 'www.pgdp.org/ols/') !== false){
|
||||||
|
$this->Sources[] = new EbookSource(SOURCE_DP_OLS, $e);
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
$this->Sources[] = new EbookSource(SOURCE_OTHER, $e);
|
$this->Sources[] = new EbookSource(SOURCE_OTHER, $e);
|
||||||
}
|
}
|
||||||
|
|
|
@ -794,6 +794,10 @@ time{
|
||||||
background-image: url('/images/google.svg');
|
background-image: url('/images/google.svg');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.distributed-proofreaders::before{
|
||||||
|
background-image: url('/images/distributed-proofreaders.svg');
|
||||||
|
}
|
||||||
|
|
||||||
article.ebook h1{
|
article.ebook h1{
|
||||||
border: none;
|
border: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -153,6 +153,7 @@ catch(\Exception $ex){
|
||||||
<? if($source->Type == SOURCE_INTERNET_ARCHIVE){ ?><a href="<?= Formatter::ToPlainText($source->Url) ?>" class="internet-archive">Page scans at the Internet Archive</a><? } ?>
|
<? if($source->Type == SOURCE_INTERNET_ARCHIVE){ ?><a href="<?= Formatter::ToPlainText($source->Url) ?>" class="internet-archive">Page scans at the Internet Archive</a><? } ?>
|
||||||
<? if($source->Type == SOURCE_HATHI_TRUST){ ?><a href="<?= Formatter::ToPlainText($source->Url) ?>" class="hathitrust">Page scans at HathiTrust</a><? } ?>
|
<? if($source->Type == SOURCE_HATHI_TRUST){ ?><a href="<?= Formatter::ToPlainText($source->Url) ?>" class="hathitrust">Page scans at HathiTrust</a><? } ?>
|
||||||
<? if($source->Type == SOURCE_GOOGLE_BOOKS){ ?><a href="<?= Formatter::ToPlainText($source->Url) ?>" class="google">Page scans at Google Books</a><? } ?>
|
<? if($source->Type == SOURCE_GOOGLE_BOOKS){ ?><a href="<?= Formatter::ToPlainText($source->Url) ?>" class="google">Page scans at Google Books</a><? } ?>
|
||||||
|
<? if($source->Type == SOURCE_DP_OLS){ ?><a href="<?= Formatter::ToPlainText($source->Url) ?>" class="distributed-proofreaders">Page scans at Distributed Proofreaders Open Library System</a><? } ?>
|
||||||
<? if($source->Type == SOURCE_OTHER){ ?><a href="<?= Formatter::ToPlainText($source->Url) ?>" class="globe"><?= Formatter::ToPlainText(preg_replace(['|https?://(en\.)?|', '|/.+$|'], '', $source->Url) ?? '') ?></a><? } ?>
|
<? if($source->Type == SOURCE_OTHER){ ?><a href="<?= Formatter::ToPlainText($source->Url) ?>" class="globe"><?= Formatter::ToPlainText(preg_replace(['|https?://(en\.)?|', '|/.+$|'], '', $source->Url) ?? '') ?></a><? } ?>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
5
www/images/distributed-proofreaders.svg
Normal file
5
www/images/distributed-proofreaders.svg
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="10" height="10" version="1.1" viewBox="0 0 2.6458 2.6458" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="m1.1644 1.3054h0.15845v0.0954h-0.32411v-0.14946q-0.048617 0.09-0.12424 0.13325-0.074726 0.0423-0.18546 0.0423-0.17646 0-0.289-0.13954-0.11164-0.14045-0.11164-0.36553t0.11164-0.36463q0.11164-0.13954 0.289-0.13954 0.11074 0 0.18546 0.0432 0.075626 0.0423 0.12424 0.13235v-0.49788h-0.15665v-0.0954h0.32231zm-0.16566-0.33581v-0.0945q0-0.17196-0.066623-0.26289-0.065723-0.0909-0.19177-0.0909-0.12784 0-0.19357 0.10084-0.064822 0.10083-0.064822 0.2998 0 0.19807 0.064822 0.2998 0.065723 0.10174 0.19357 0.10174 0.12604 0 0.19177-0.09 0.066623-0.0909 0.066623-0.26379z"/>
|
||||||
|
<path d="m1.648 1.7365v0.0945q0 0.17286 0.065723 0.26379 0.066623 0.09 0.19267 0.09 0.12694 0 0.19177-0.10174 0.065723-0.10173 0.065723-0.2998 0-0.19897-0.065723-0.2998-0.064822-0.10084-0.19177-0.10084-0.12604 0-0.19267 0.0909-0.065723 0.0909-0.065723 0.26289zm-0.16566-0.33491h-0.15936v-0.0963h0.32501v0.14946q0.048617-0.09 0.12334-0.13235 0.075626-0.0432 0.18636-0.0432 0.17646 0 0.2881 0.13954 0.11164 0.13955 0.11164 0.36463t-0.11164 0.36553q-0.11164 0.13954-0.2881 0.13954-0.11074 0-0.18636-0.0423-0.074726-0.0432-0.12334-0.13325v0.43665h0.15665v0.0963h-0.48167v-0.0963h0.15936z"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
Loading…
Add table
Add a link
Reference in a new issue