diff --git a/lib/Ebook.php b/lib/Ebook.php index 210d9f1d..2bd683af 100644 --- a/lib/Ebook.php +++ b/lib/Ebook.php @@ -422,12 +422,16 @@ class Ebook{ } public function Contains(string $query): bool{ - // When searching an ebook, we search the title, alternate title, author(s), SE tags, and LoC tags. + // When searching an ebook, we search the title, alternate title, author(s), SE tags, series data, and LoC tags. $searchString = $this->FullTitle ?? $this->Title; $searchString .= ' ' . $this->AlternateTitle; + foreach($this->Collections as $collection){ + $searchString .= ' ' . $collection->Name; + } + foreach($this->Authors as $author){ $searchString .= ' ' . $author->Name; }