Add check for the match being 'published' and set matched_book to 'all' if so.