Bug #1521004: Non-clickables in the book details. Make single-valued text (not comments) columns clickable in book details.

This commit is contained in:
Charles Haley 2015-11-30 09:14:49 +01:00
parent c280476d11
commit c53f51b557

View File

@ -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: