Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 07:01 AM   #856
hanjisung
technology hates me
hanjisung began at the beginning.
 
hanjisung's Avatar
 
Posts: 16
Karma: 10
Join Date: Sep 2025
Device: None
Hi!

1) Is there a way to set a rule (much like the column colorization) such as 'if series column is blank' 'check series complete column to 'true''?

2) Very long shot, but just in case, is there some sort of key for the column colorization? Even upon hover? For example, my series column is set to 3 different colors. One for if series is complete, one for if it is not, and one for undefined. It would be nice if I hover over the series title, the rule applied to it would appear. Such as 'wolfgang [5] : 'true/false/null'. But better yet, I would love something like a Key with squares below the tool bar/above the search bar that showed the colors you've put in your rules, and text either below, or on hover, which says which rule it represents. You guys probably just remember what your colors mean, but I have goldfish brain.
hanjisung is offline   Reply With Quote
Old Yesterday, 07:08 AM   #857
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,124
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Code:
program:

	if 
		$series==''
## alternately, !$series also works
	then
		'true'
	fi
Assuming you're using standard boolean clumn. Action Chains can edit non-composite columns based on template (Single-Field Edit). Ask assistance in that thread if needed.
ownedbycats is offline   Reply With Quote
Advert
Old Yesterday, 07:31 AM   #858
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,486
Karma: 8025704
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by hanjisung View Post
Hi!

1) Is there a way to set a rule (much like the column colorization) such as 'if series column is blank' 'check series complete column to 'true''?
To expand on @ownedbycats solution, there is no way for a coloring template to change the value of a field. The only fields that can change value dynamically are "columns built from other columns" (often referred to as "composite columns"). Action chains can change the value of a column based on the value of some other column. Personally, I would use a composite for this.
Quote:
2) Very long shot, but just in case, is there some sort of key for the column colorization? Even upon hover? For example, my series column is set to 3 different colors. One for if series is complete, one for if it is not, and one for undefined. It would be nice if I hover over the series title, the rule applied to it would appear. Such as 'wolfgang [5] : 'true/false/null'. But better yet, I would love something like a Key with squares below the tool bar/above the search bar that showed the colors you've put in your rules, and text either below, or on hover, which says which rule it represents. You guys probably just remember what your colors mean, but I have goldfish brain.
There is no way to change the tooltip (the "hover" text) for a column.

However,, you can use a composite to do something close: show some explanatory text in another (composite) column. Create the composite column and have the template return whatever you want based on the content of the "source" column. Place the composite column next to the source column then make it very narrow. The tooltip for the composite will show your explanatory text without taking a lot of screen space.
chaley is offline   Reply With Quote
Old Yesterday, 07:32 AM   #859
hanjisung
technology hates me
hanjisung began at the beginning.
 
hanjisung's Avatar
 
Posts: 16
Karma: 10
Join Date: Sep 2025
Device: None
Thumbs up

Quote:
Originally Posted by ownedbycats View Post
Code:
program:

	if 
		$series==''
## alternately, !$series also works
	then
		'true'
	fi
Assuming you're using standard boolean clumn. Action Chains can edit non-composite columns based on template (Single-Field Edit). Ask assistance in that thread if needed.
"In computer science, the Boolean (sometimes shortened to Bool) is a data type that has one of two possible values (usually denoted true and false) which is intended to represent the two truth values of logic and Boolean algebra." - source

I gather you're asking if the column I want to reference is Yes/No type, and I'm correct, yes

Thank you for your response and direction to a plugin which may offer more functionality!

May I ask where the code you provided goes? I'm not familiar with this...
hanjisung is offline   Reply With Quote
Old Yesterday, 09:47 AM   #860
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,486
Karma: 8025704
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by hanjisung View Post
May I ask where the code you provided goes? I'm not familiar with this...
It is the template for a composite column, as discussed in my post just above yours.

Edit: apparently you saw my previous post so this one is superfluous. I'll leave it for anyone who comes later.

Last edited by chaley; Yesterday at 09:49 AM.
chaley is offline   Reply With Quote
Advert
Old Today, 10:12 AM   #861
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,486
Karma: 8025704
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by hanjisung View Post
2) Very long shot, but just in case, is there some sort of key for the column colorization? Even upon hover? For example, my series column is set to 3 different colors. One for if series is complete, one for if it is not, and one for undefined. It would be nice if I hover over the series title, the rule applied to it would appear. Such as 'wolfgang [5] : 'true/false/null'. But better yet, I would love something like a Key with squares below the tool bar/above the search bar that showed the colors you've put in your rules, and text either below, or on hover, which says which rule it represents. You guys probably just remember what your colors mean, but I have goldfish brain.
Quote:
Originally Posted by chaley View Post
There is no way to change the tooltip (the "hover" text) for a column.
After some reflection I decided to implement "custom tooltips" for columns in the book list using templates. The tooltip can contain whatever you want as long as it can be generated by a template. Tooltips interpret HTML so you can construct complex displays. One test I did was to include in the tooltip the note for the value where the note contained a picture.

To define a column tooltip, right-click on the column header and choose "(Define|Edit) column tooltip ..."

You can include the text that would have been used for the tooltip. See the help text when you first create a column tooltip template:
Quote:
Notes:
  • The template global variable "column_lookup_name" contains the column lookup name.
  • The global variable "original_text" contains the original tooltip text.
This feature is in calibre source now and will be included in the next preview or release.
chaley is offline   Reply With Quote
Old Today, 11:11 AM   #862
hanjisung
technology hates me
hanjisung began at the beginning.
 
hanjisung's Avatar
 
Posts: 16
Karma: 10
Join Date: Sep 2025
Device: None
Cool

Quote:
Originally Posted by chaley View Post
After some reflection I decided to implement "custom tooltips" for columns in the book list using templates. The tooltip can contain whatever you want as long as it can be generated by a template. Tooltips interpret HTML so you can construct complex displays. One test I did was to include in the tooltip the note for the value where the note contained a picture.

To define a column tooltip, right-click on the column header and choose "(Define|Edit) column tooltip ..."

You can include the text that would have been used for the tooltip. See the help text when you first create a column tooltip template:

This feature is in calibre source now and will be included in the next preview or release.
Thanks Chaley!
hanjisung is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Library Management: various questions not worth their own thread ownedbycats Library Management 234 08-22-2025 05:42 AM
[Metadata Source Plugin] Questions regarding parse select, docs and ref templates Boilerplate4U Development 13 07-07-2020 02:35 AM
Questions on Kobo [Interfered with another thread topic] spdavies Kobo Reader 8 10-12-2014 11:37 AM
[OLD Thread] Some questions before buying the fire. darthreader13 Kindle Fire 7 05-10-2013 09:19 PM
Thread management questions meme Feedback 6 01-31-2011 05:07 PM


All times are GMT -4. The time now is 03:52 PM.


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