Cleaned up search functionality so it now works properly when searching for a book.