$def with (doc, decorations=None, cta=True, availability=None, extra=None, attrs=None, rating=None, reading_log=None) $code: max_rendered_authors = 9 doc_type = ( 'infogami_work' if doc.get('type', {}).get('key') == '/type/work' else 'infogami_edition' if doc.get('type', {}).get('key') == '/type/edition' else 'solr_work' ) book_url = doc.url() if doc_type.startswith('infogami_') else doc.key book_provider = get_book_provider(doc) if book_provider and doc_type.endswith('_work'): work_edition_url = book_url + '?edition=' + urlquote(book_provider.get_best_identifier_slug(doc)) else: work_edition_url = book_url edition_work = None if doc_type == 'infogami_edition' and 'works' in doc: edition_work = doc['works'][0] full_title = doc.title + (': ' + doc.subtitle if doc.get('subtitle') else '')