<%inherit file="base.html"/> <%! import lazylibrarian from lazylibrarian.config2 import CONFIG %> <%def name="headerIncludes()">
Books Detail %if perm&lazylibrarian.perm_status: %if config['Status'] == 'Paused': Paused %else: %if config['Status'] == 'Active': Active %else: %if config['Status'] == 'Wanted': Wanted %else: Ignored %endif %endif %endif %endif %if perm&lazylibrarian.perm_force: Refresh Author eBook Scan %if CONFIG.get_int('AUDIO_TAB') > 0: AudioBook Scan %endif %endif %if perm&lazylibrarian.perm_edit: %endif %if showseries >= 1: %if perm&lazylibrarian.perm_series: Series %endif %endif %if CONFIG['GR_FOLLOW']: %if config['GRfollow']: %if config['GRfollow'] != '0': Following %else: Not Following %endif %else: Not Following %endif %endif %if lazylibrarian.PRIMARY_AUTHORS == True: %else: %endif %if CONFIG['USER_ACCOUNTS']: %if CONFIG['RSS_ENABLED']: %if CONFIG.get_int('EBOOK_TAB') > 0:   %endif %if CONFIG.get_int('AUDIO_TAB') > 0:   %endif %endif %endif
<%def name="body()"> <% linkable_sources = [(name, src['author_key'], src['enabled']) for name, src in lazylibrarian.INFOSOURCES.items() if src.get('author_link')] %>
${title}
<% # Same fallback used on the author page's badge: if nobody's # explicitly chosen a primary yet, treat whichever linked source # comes first in priority order as the (implicit) primary, so the # radio here agrees with what the author page is actually showing. effective_primary = config['PrimarySource'] if not effective_primary: for fallback_name, fallback_col, _ in linkable_sources: if config[fallback_col]: effective_primary = fallback_name break %> %for src_name, src_col, src_enabled_key in linkable_sources: %endfor
SourceIDPrimary
${src_name} %if config[src_col]: %endif %if not config[src_col] and CONFIG[src_enabled_key]: %elif not config[src_col]: ${src_name} not enabled %else: %endif
%if CONFIG['GB_API'] or CONFIG['DNB_API']:
%if CONFIG['GB_API']: Search Google Books %endif %if CONFIG['DNB_API']: Search DNB %endif %endif
${config['AuthorName']} Filenames must be full path to file or a URL, or put none to remove author image
Filename and URL need to end with .jpg/.jpeg/.png/.webp
%for item in images: %endfor %for item in images: %endfor
${item[0]}
cover
%if len(images) > 0: %endif %if len(images) == 0: Find Images %endif
<% if config['Manual'] == "1": checked = 'checked="checked"' else: checked = '' %>

 

<%def name="javascriptIncludes()">