diff --git a/www/ebooks/ebook.php b/www/ebooks/ebook.php index 841a5cef..5682aff4 100644 --- a/www/ebooks/ebook.php +++ b/www/ebooks/ebook.php @@ -95,7 +95,14 @@ catch(\Exception $ex){ if(sizeof($ebook->Collections) > 0){ ?> foreach($ebook->Collections as $collection){ ?>
if($collection->SequenceNumber !== null){ ?>№ = number_format($collection->SequenceNumber) ?> in the }else{ ?>Part of the } ?> = Formatter::ToPlainText(preg_replace('/^The /ius', '', (string)$collection->Name) ?? '') ?> - if(sizeof($ebook->Collections) == 1 && $collection->Type !== null){ ?> if(substr_compare(mb_strtolower($collection->Name), mb_strtolower($collection->Type), -strlen(mb_strtolower($collection->Type))) !== 0){ ?>= $collection->Type ?> } ?> }else{ ?>collection } ?>.
+ if($collection->Type !== null){ ?> + if(substr_compare(mb_strtolower($collection->Name), mb_strtolower($collection->Type), -strlen(mb_strtolower($collection->Type))) !== 0){ ?> + = $collection->Type ?>. + } ?> + }else{ ?> + collection. + } ?> + } ?> } ?>