Quote:
Originally Posted by ownedbycats
If you have an {identifiers:select(id)} composite column, it displays the id contents and clicking on it in book details returns the output as a Calibre search.
Instead, is it possible via a template (or custom function) to replicate the behaviour of the default Ids column where it displays the id name and opens the identifier url in the browser?
|
Yes. You can mark the composite as "Contains HTML" then build the link you want in the composite.
Example for Google identifiers:
Code:
program:
id = select($identifiers, 'google');
if id then
'<a href="https://books.google.co.uk/books?id=' & id & '&redir_esc=y' & '">Google:' & id & '</a>'
fi
You must hard code the URL components into the template.