From c53f51b557b5c273dbc81b54c2fd3820c52b4fb4 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Mon, 30 Nov 2015 09:14:49 +0100 Subject: [PATCH] Bug #1521004: Non-clickables in the book details. Make single-valued text (not comments) columns clickable in book details. --- src/calibre/ebooks/metadata/book/render.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/metadata/book/render.py b/src/calibre/ebooks/metadata/book/render.py index 6b3f52e395..9584ca1b3f 100644 --- a/src/calibre/ebooks/metadata/book/render.py +++ b/src/calibre/ebooks/metadata/book/render.py @@ -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)) for x in all_vals] 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: st = metadata['search_terms'][0] except Exception: