mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #1885318 [Private bug](https://bugs.launchpad.net/calibre/+bug/1885318)
This commit is contained in:
parent
b5ae91b6a6
commit
e89dbb1d3f
@ -294,7 +294,7 @@ def mi_to_html(
|
|||||||
all_vals = sorted(all_vals, key=sort_key)
|
all_vals = sorted(all_vals, key=sort_key)
|
||||||
links = ['<a href="%s" title="%s">%s</a>' % (
|
links = ['<a href="%s" title="%s">%s</a>' % (
|
||||||
search_action_with_data(st, x, book_id, field), _('Click to see books with {0}: {1}').format(
|
search_action_with_data(st, x, book_id, field), _('Click to see books with {0}: {1}').format(
|
||||||
metadata['name'], a(x)), p(x))
|
metadata['name'] or field, a(x)), p(x))
|
||||||
for x in all_vals]
|
for x in all_vals]
|
||||||
val = metadata['is_multiple']['list_to_ui'].join(links)
|
val = metadata['is_multiple']['list_to_ui'].join(links)
|
||||||
elif metadata['datatype'] == 'text' or metadata['datatype'] == 'enumeration':
|
elif metadata['datatype'] == 'text' or metadata['datatype'] == 'enumeration':
|
||||||
@ -305,7 +305,7 @@ def mi_to_html(
|
|||||||
st = field
|
st = field
|
||||||
val = '<a href="%s" title="%s">%s</a>' % (
|
val = '<a href="%s" title="%s">%s</a>' % (
|
||||||
search_action_with_data(st, val, book_id, field), a(
|
search_action_with_data(st, val, book_id, field), a(
|
||||||
_('Click to see books with {0}: {1}').format(metadata['name'], val)), p(val))
|
_('Click to see books with {0}: {1}').format(metadata['name'] or field, val)), p(val))
|
||||||
|
|
||||||
ans.append((field, row % (name, val)))
|
ans.append((field, row % (name, val)))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user