mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Bug #1521004: Non-clickables in the book details. Make single-valued text (not comments) columns clickable in book details.
This commit is contained in:
parent
c280476d11
commit
c53f51b557
@ -228,7 +228,8 @@ def mi_to_html(mi, field_list=None, default_author_link=None, use_roman_numbers=
|
|||||||
metadata['name'], a(x)), a(item_data(field, x, book_id)), p(x))
|
metadata['name'], a(x)), a(item_data(field, x, book_id)), 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'] == 'enumeration':
|
elif metadata['datatype'] == 'text' or metadata['datatype'] == 'enumeration':
|
||||||
|
# text/is_multiple handled above so no need to add the test to the if
|
||||||
try:
|
try:
|
||||||
st = metadata['search_terms'][0]
|
st = metadata['search_terms'][0]
|
||||||
except Exception:
|
except Exception:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user