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 04-01-2021, 06:08 PM   #1
thousand
Junior Member
thousand began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2021
Device: kindle
Show Highlights in Library?

Hi. Is there a way to show if a book has highlights, or the highlight count, in the library view? Either a Yes/No column or an integer count of Highlights...

Thank you.
thousand is offline   Reply With Quote
Old 04-02-2021, 12:55 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, there isnt. Though I suppose if you ask nicely chaley might be willing to add a template function for that which you can use in a custom column.
kovidgoyal is offline   Reply With Quote
Advert
Old 04-02-2021, 02:14 AM   #3
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: 10,970
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I use this:

Code:
program: 
	if annotation_count() >#0 then 'True'
	fi
You can also do this for numbers:

Code:
program: 
annotation_count()
(rather unelegant, I'll admit)

Last edited by ownedbycats; 04-02-2021 at 04:09 PM.
ownedbycats is online now   Reply With Quote
Old 04-02-2021, 09:19 AM   #4
thousand
Junior Member
thousand began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2021
Device: kindle
Quote:
Originally Posted by ownedbycats View Post
I use this:

Code:
program: 
	if annotation_count() >#0 then 'True'
	fi
You can also do this:

Code:
program: 
	if annotation_count() >#0 then annotation_count()
	fi
(rather unelegant, I'll admit)
That's interesting. How would i add a column based on "program:" code? I've seen that in the forums before, but haven't figured out how to tie that to a column. I've added simple columns like "my rating," "progress," etc. but they are just values.

Thanks for the quick assistance!
thousand is offline   Reply With Quote
Old 04-02-2021, 04:08 PM   #5
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: 10,970
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I fixed the second code for # of annotations, you don't need the full gpm statement for that.

You use it in the template field of a "column built from other columns" (they're often referred to as composite columns).

You can also use the first one as a search if you just want it for searching purposes (instead of sorting/column icon purposes):

Click image for larger version

Name:	2021-04-02 17_07_46-Advanced search.png
Views:	174
Size:	20.2 KB
ID:	186342

Last edited by ownedbycats; 04-02-2021 at 06:05 PM.
ownedbycats is online now   Reply With Quote
Advert
Old 04-09-2021, 04:32 PM   #6
thousand
Junior Member
thousand began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2021
Device: kindle
Quote:
Originally Posted by ownedbycats View Post
I fixed the second code for # of annotations, you don't need the full gpm statement for that.

You use it in the template field of a "column built from other columns" (they're often referred to as composite columns).

You can also use the first one as a search if you just want it for searching purposes (instead of sorting/column icon purposes):

Attachment 186342
Ah yes, that worked. Thank you! I went the #highlights route. Nice, and exactly what i was looking for.
thousand is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Moon Reader have ability to show highlights starting from current location? 2scre Android Devices 7 12-31-2020 11:18 PM
Notes and highlights for whole library in one place? *Sweet setup?* re_lusional Calibre 0 07-01-2018 10:03 AM
Virtual Library still show up in main library bskies Library Management 3 11-13-2013 10:41 PM
Saving highlights and notes from library ePub jbr950 Barnes & Noble NOOK 0 11-19-2011 07:00 PM
Sony Reader Library running, but Library doesn't show on screen wyldmint Sony Reader 0 08-29-2010 01:59 AM


All times are GMT -4. The time now is 05:24 PM.


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