Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-17-2014, 02:43 AM   #1
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,736
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
V2.6 Show as HTML in Book Details logic inverted ?

This change seems to have its logic inverted

Quote:
Book details panel: Fix custom columns built from other columns with tag like values not clickable in the book details panel.
If Show as HTML in Book Details check box is ticked then the column value appears as plain black dead text.

If Show as HTML in Book Details check box is NOT ticked then column value appears as bright blue live text - ie a link.

That's the reverse behaviour of what I would have anticipated

BR

Last edited by BetterRed; 10-17-2014 at 03:52 AM.
BetterRed is offline   Reply With Quote
Old 10-17-2014, 04:19 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
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 is offline   Reply With Quote
Advert
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,736
Karma: 29711016
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:	154
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
Old 10-17-2014, 05:28 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
@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

BR
I think it is right. If "show as HTML" is checked then the column can contain arbitrary HTML, and there is no guarantee at all that I could parse it and determine where correctly to add the link tags.

However, if the assembled multitudes want it, I will change it to add the links only if "show in tag browser" is checked. I think this removes functionality, but that is OK with me because I don't use clickable links anyway.

Last edited by chaley; 10-17-2014 at 06:29 AM.
chaley is offline   Reply With Quote
Old 10-17-2014, 05:44 AM   #5
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,736
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
I think it is right. If "show as HTML" is checked then the column can contain arbitrary HTML, and there is guarantee at all that I could parse it and determine where correctly to add the link tags.

However, if the assembled multitudes want it, I will change it to add the links only if "show in tag browser" is checked. I think this removes functionality, but that is OK with me because I don't use clickable links anyway.
We X-posted - see my Added in prior post
BetterRed is offline   Reply With Quote
Advert
Old 10-17-2014, 05:52 AM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I confess that I am failing to understand the problem.

The HTML box has been there for a long time (years), for exactly the purpose you describe. Why should its meaning be changed?

Assuming that its meaning is not changed, what is the point of not converting the values into search links if the box is not checked? What does having the links hurt?
chaley is offline   Reply With Quote
Old 10-17-2014, 06:23 AM   #7
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,736
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Until recently I wondered what that check box did, must admit I didn't read the info tip that carefully. Even now I can't envisage any usage for its original purpose for myself - sites like Baen, Goodreads etc are largely irrelevant to me, and I put any relevant external links elsewhere.

This is what's driven my interest in this.

There was a recent change where columns (built in and custom) that appeared in the Tag Browser became 'clickable' in Book Details - publisher, #mytags, #original publisher, tags, #status etc. The click initiates a simple database search like clicking an item in Tag Browser. But template custom columns did not offer this facility.

I use the links in Book Details, most of my Authors have links to an external folder, my Notes column has links to external folders and/or external sites. And since they were implemented I also use the database search links - especially for custom columns, which are not available in Similar Books.

BR

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre 2.0...show book details clady Calibre 3 08-24-2014 09:47 AM
Metadata does not show in Book Details Panel Mamaijee Library Management 9 12-19-2012 02:33 AM
Show No Cover in Book Details BetterRed Calibre 1 09-01-2012 12:19 AM
Show book details error firewolf Calibre 3 07-27-2011 02:09 PM
Is it possible to show the ISBN in the book details pane? iridius Library Management 3 03-22-2011 07:39 PM


All times are GMT -4. The time now is 10:28 AM.


MobileRead.com is a privately owned, operated and funded community.