Hi, everyone.
Rather than looking for a solution outright, I’m looking for pointers of what to read up on to achieve my goal. As it stands, I’m not sure where to start.
Scenario:
My models are Book and Author.
As a user, I am able to:
- Search for books written by a given author.
- Retrieve a book result with queried author as its author.
- Populate authors that don’t match query as co-authors.
Example:
A Graphic Approach to College Algebra
- User searches for Books where “John Hornsby” is the Author.
- User retrieves “A Graphical Approach to College Algebra” as a Book.
- The “author” field of the book is a reference to John Hornsby because his name was queried.
- The “coauthors” field is populated based on the number of authors in the Book and maps to an array containing references to Marge Lial and Gary Rockswold, whose names don’t match the queried author name.
What concepts and keywords would assist me in achieving this?