View Single Post
Old 10-17-2014, 05:21 AM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,789
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
It is behaving as designed. If show as html is checked then the column is considered as black box text containing html that does who-knows-what. Calibre attempts to render this text as html in book details without further processing.

If the box is unchecked then calibre treats it as plain text and adds the necessary html to turn the values into links. This is the same processing that is applied to tags.

The previous code did the same thing, with the exception of adding the linkify html.
@chaley - it maybe the same processing/code but the results are inconsistent

To get links in the tag browser, that I can click to do a search, I have to check Show in Tag Browser - to me that makes sense.

I need to check the column in question in L&F->Book Details to get it to show anything - to me that makes sense too. But to get it displayed as a clickable link to do a search, I have to uncheck Show as HTML in Book Details - to me that makes no sense

See attachments

Added : I think this is a case of overloading the same object with multiple purposes.

I want something that I can click on to do a database search, same as I can with a Publisher or Tag. But you have anticipated something much more sophisticated - to create a uri in a template and open an external resource. Maybe the second check box should be something like a tri-state radio button eg

Book Details : Do Nothing ● Create a database search link o Create HTML for URL link o

BR
Attached Thumbnails
Click image for larger version

Name:	Capture1.jpg
Views:	155
Size:	159.4 KB
ID:	129782   Click image for larger version

Name:	Capture2.JPG
Views:	164
Size:	175.7 KB
ID:	129783  

Last edited by BetterRed; 10-17-2014 at 05:46 AM.
BetterRed is offline   Reply With Quote