From 65f89bda7a727a2e5f22a5cb2c0c81e2552bdd0c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 8 Feb 2025 12:52:23 +0530 Subject: [PATCH] Content server: Get custom column web search templates as well --- src/pyj/book_list/book_details.pyj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pyj/book_list/book_details.pyj b/src/pyj/book_list/book_details.pyj index e3888c7f79..d053887cff 100644 --- a/src/pyj/book_list/book_details.pyj +++ b/src/pyj/book_list/book_details.pyj @@ -289,6 +289,10 @@ def render_metadata(mi, table, book_id, iframe_css): # {{{ websearch_link = False if field is 'authors': websearch_link = bool(interface_data.default_author_link) and interface_data.default_author_link is not 'search-calibre' + else: + fm = field_metadata[field] + if fm?.display and fm.display.web_search_template and fm.display.web_search_template.partition(':')[0] in ('http', 'https'): + websearch_link = True text_rep = search_text or v target = '_self' if websearch_link and jstype(v) is not 'string':