Refactor functions out of Library

This commit is contained in:
Alex Cabal 2024-11-10 22:59:57 -06:00
parent 1449148989
commit b7b63a4be5
24 changed files with 419 additions and 444 deletions

View file

@ -7,7 +7,7 @@ try{
$collectionName = '';
$collectionType = '';
$ebooks = Library::GetEbooksByCollection($collection);
$ebooks = Ebook::GetAllByCollection($collection);
// Get the *actual* name of the collection, in case there are accent marks (like "Arsène Lupin")
if(sizeof($ebooks) > 0){
foreach($ebooks[0]->CollectionMemberships as $cm){

View file

@ -1,5 +1,5 @@
<?
$collections = Library::GetEbookCollections();
$collections = Collection::GetAll();
?><?= Template::Header(['title' => 'Ebook Collections', 'highlight' => '', 'description' => 'Browse collections of Standard Ebooks.']) ?>
<main>