mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Make publishers in the book details panel clickable. Fixes #1419313 [[Feature Request]Make Publisher clickable](https://bugs.launchpad.net/calibre/+bug/1419313)
This commit is contained in:
parent
4e9476c49f
commit
05ee6b477e
@ -177,6 +177,12 @@ def mi_to_html(mi, field_list=None, default_author_link=None, use_roman_numbers=
|
||||
continue
|
||||
names = filter(None, map(calibre_langcode_to_name, mi.languages))
|
||||
ans.append((field, row % (name, u', '.join(names))))
|
||||
elif field == 'publisher':
|
||||
if not mi.publisher:
|
||||
continue
|
||||
val = '<a href="%s" title="%s">%s</a>' % (
|
||||
search_href('publisher', mi.publisher), _('Click to see books with {0}: {1}').format(metadata['name'], a(mi.publisher)), p(mi.publisher))
|
||||
ans.append((field, row % (name, val)))
|
||||
else:
|
||||
val = mi.format_field(field)[-1]
|
||||
if val is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user