Add the number of book in each databases (multidatabase).
This commit is contained in:
parent
c937a29d6c
commit
c6e75b7258
2 changed files with 10 additions and 2 deletions
6
base.php
6
base.php
|
@ -375,10 +375,12 @@ class Page
|
|||
if (is_array ($config['calibre_directory']) && is_null ($database)) {
|
||||
$i = 0;
|
||||
foreach ($config['calibre_directory'] as $key => $value) {
|
||||
array_push ($this->entryArray, new Entry ($key, "{$i}:cops:catalog",
|
||||
"", "text",
|
||||
$nBooks = Book::getBookCount ($i);
|
||||
array_push ($this->entryArray, new Entry ($key . " " . $i, "{$i}:cops:catalog",
|
||||
str_format (localize ("bookword", $nBooks), $nBooks), "text",
|
||||
array ( new LinkNavigation ("?" . DB . "={$i}"))));
|
||||
$i++;
|
||||
Base::clearDb ();
|
||||
}
|
||||
} else {
|
||||
array_push ($this->entryArray, Author::getCount());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue