%inherit file="base.html"/> <%! import lazylibrarian from lazylibrarian.config2 import CONFIG %> <%def name="headerIncludes()">
| Source | ID | Link | Books | Overlap |
|---|---|---|---|---|
| ${name} %if author.get('PrimarySource') == name: %endif | ${sourceid} | %if link: ${link} %else: not fetched yet %endif | ${count} | %if count: ${overlap} (${round(100 * overlap / count)}%) %else: 0 %endif |
| GoogleBooks | no author ID (search by name) | ${gb_search_link} | <% gb_count, gb_overlap = source_book_counts.get('gb_id', (0, 0)) %>${gb_count} | %if gb_count: ${gb_overlap} (${round(100 * gb_overlap / gb_count)}%) %else: 0 %endif |
| Amazon %if author.get('AmazonAuthorURL'): %endif | ${'manually linked' if author.get('AmazonAuthorURL') else 'no author ID (search by name)'} | %if author.get('AmazonAuthorURL'): ${author['AmazonAuthorURL']} %else: ${amazon_search_link} %endif | <% amzn_count, amzn_overlap = source_book_counts.get('ASIN', (0, 0)) %>${amzn_count} | %if amzn_count: ${amzn_overlap} (${round(100 * amzn_overlap / amzn_count)}%) %else: 0 %endif |
| No sources linked yet | ||||
${author['LastBook']} %if author.get('LastLink'): %endif
%elif author.get('LastLink'): %else:${author['LastBook']}
%endif %if author.get('LastDate'):Date: ${author['LastDate']}
%endifEach linked source's own text, shown as-is, one after another - not intelligently merged.
%for source_name, source_about in about_by_source:${source_name}:
%def>