Have clicking on author in device view search the device for the author if the action is set to search calibre

Fixes #1895365 [Device view ignores author name behavior](https://bugs.launchpad.net/calibre/+bug/1895365)
This commit is contained in:
Kovid Goyal 2020-09-23 12:35:41 +05:30
parent e9351ae870
commit 061803f201
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -220,8 +220,6 @@ def mi_to_html(
if mi.author_link_map.get(aut):
link = lt = mi.author_link_map[aut]
elif default_author_link:
if isdevice and default_author_link == 'search-calibre':
default_author_link = DEFAULT_AUTHOR_LINK
if default_author_link.startswith('search-'):
which_src = default_author_link.partition('-')[2]
link, lt = author_search_href(which_src, title=mi.title, author=aut)