Added support for optional flat-list display of "All Books"
Files modified: config_default.php base.php changed class PageAllBooks to test for configuration option "cops_titles_split_first_letter". Used getCurrentOption to prepare for making Split Letter options configurable in web GUI book.php added SQL_BOOKS_ALL query to have a flat-list datasource not grouped by first letter. added const SQL_BOOKS_ALL to class Book added public static function "getBooks", called from Base::PageAllBooks to retrieve the flat-list
This commit is contained in:
parent
5f7f8e6527
commit
8db9489e07
3 changed files with 21 additions and 2 deletions
7
base.php
7
base.php
|
@ -645,7 +645,12 @@ class PageAllBooks extends Page
|
|||
public function InitializeContent ()
|
||||
{
|
||||
$this->title = localize ("allbooks.title");
|
||||
$this->entryArray = Book::getAllBooks ();
|
||||
if (getCurrentOption ("titles_split_first_letter") == 1) {
|
||||
$this->entryArray = Book::getAllBooks();
|
||||
}
|
||||
else {
|
||||
list ($this->entryArray, $this->totalNumber) = Book::getBooks ($this->n);
|
||||
}
|
||||
$this->idPage = Book::ALL_BOOKS_ID;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue