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 06-06-2026, 06:40 PM   #1
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 15,247
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Descriptions section in an EPUB calibre catalog

I'm wondering if it's possible to generate an epub catalog so that the descriptions would only be created for books which actually have comments, and omitted for books with no comments. As I have many books without comments (when there's a series, I only fill in the comments section for the first book), it would be much faster and there's no need to have mostly empty description files for comment-less books.

I've looked at the catalog templates, but found nothing there to help. Maybe it's not possible. Yes, I know I could delete empty description files from the epub, but that's not really feasible with thousands of books. About the only way I can currently think of is to create two different catalogs, one with descriptions, one without, and that's pretty clumsy.
Sirtel is online now   Reply With Quote
Old 06-06-2026, 09:37 PM   #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: 46,303
Karma: 29630860
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Not sure I follow. I dont use/maintain that code so maybe I am missing something. By descriptions pages do you mean the pages under the Descriptions section of the ToC? The contain more than just the comments, they have covers, title/author/series etc. And the comments are not in a separate HTML file, they are in the singe decriptions html file for that book.
kovidgoyal is offline   Reply With Quote
Advert
Old 06-06-2026, 10:06 PM   #3
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 15,247
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by kovidgoyal View Post
Not sure I follow. I dont use/maintain that code so maybe I am missing something. By descriptions pages do you mean the pages under the Descriptions section of the ToC? The contain more than just the comments, they have covers, title/author/series etc. And the comments are not in a separate HTML file, they are in the singe decriptions html file for that book.
Yes, that's what I mean. They do contain cover thumbnails etc, but IMO the main point of this section is the comments. I'd like to have the option to omit the entire description file for books with no comments. Of course it might not be doable.
Sirtel is online now   Reply With Quote
Old 06-06-2026, 10:27 PM   #4
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: 46,303
Karma: 29630860
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ah ok, no not something I wish to spend time on, sorry.
kovidgoyal is offline   Reply With Quote
Old 06-07-2026, 06:46 AM   #5
Katja_hbg
Addict
Katja_hbg can program the VCR without an owner's manual.Katja_hbg can program the VCR without an owner's manual.Katja_hbg can program the VCR without an owner's manual.Katja_hbg can program the VCR without an owner's manual.Katja_hbg can program the VCR without an owner's manual.Katja_hbg can program the VCR without an owner's manual.Katja_hbg can program the VCR without an owner's manual.Katja_hbg can program the VCR without an owner's manual.Katja_hbg can program the VCR without an owner's manual.Katja_hbg can program the VCR without an owner's manual.Katja_hbg can program the VCR without an owner's manual.
 
Posts: 209
Karma: 197760
Join Date: Oct 2015
Device: Kobo Glo HD (landscape), Kobo Aura One
Quote:
Originally Posted by Sirtel View Post
I'm wondering if it's possible to generate an epub catalog so that the descriptions would only be created for books which actually have comments, and omitted for books with no comments.
Do I understand correct that you like to create a catalogue with all books but blurb (field comment) should be shown only in case there is an own comment added by you?

My understanding is, as the catalog template does not work with JavaScrip there is no solution with condition like "if".
But, thanks to @JimmXinu all custom fields can be used in the template.
So what about the following workaround:
- create a customer column showing descriptionn/comment only in case you added an own comment
- use that column instead of description in the template
Katja_hbg is online now   Reply With Quote
Advert
Old 06-07-2026, 11:09 AM   #6
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 15,247
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by Katja_hbg View Post
Do I understand correct that you like to create a catalogue with all books but blurb (field comment) should be shown only in case there is an own comment added by you?

My understanding is, as the catalog template does not work with JavaScrip there is no solution with condition like "if".
But, thanks to @JimmXinu all custom fields can be used in the template.
So what about the following workaround:
- create a customer column showing descriptionn/comment only in case you added an own comment
- use that column instead of description in the template
I think it would still create the description file, just without comments. That's what I'd like to avoid - having thousands of description files with no meaningful (for me) content. But apparently there's no way to avoid it only for some books, it's all or nothing.
Sirtel is online now   Reply With Quote
Old 06-07-2026, 01:05 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,807
Karma: 64144480
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Sirtel View Post
I think it would still create the description file, just without comments. That's what I'd like to avoid - having thousands of description files with no meaningful (for me) content. But apparently there's no way to avoid it only for some books, it's all or nothing.
You say FILE? A Calibre catalog is text and image.
Are you looking for cover Images and text listing
If you want just a CSV Calibredb --list <see man for options>
theducks is offline   Reply With Quote
Old 06-07-2026, 01:24 PM   #8
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 15,247
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by theducks View Post
You say FILE? A Calibre catalog is text and image.
Are you looking for cover Images and text listing
If you want just a CSV Calibredb --list <see man for options>
I mean html files in the epub. There is a separate file for every book description.
Sirtel is online now   Reply With Quote
Old 06-07-2026, 07:17 PM   #9
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: 22,699
Karma: 33011292
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Sirtel View Post
I mean html files in the epub. There is a separate file for every book description.
I am assuming you mean that there is a separate HTML file (page) for every book in the EPUB catalogue… which appears to be true.

When I see the word 'description' in the context of metadata I think of the Dublin Core name for the element that calibre stores in the 'comments' column.

The Create EPUB catalogue feature uses the word 'Description' to refer to: Individual descriptions of books with cover thumbs, sorted by author - note the self referential referential use of the word.

Is this what you want: An EPUB catalogue that excludes books with nothing in the 'comments' column?

If the Create EPUB Catalogue is Virtual library aware, why not create VL with a search term that tests the comments column?

BR
BetterRed is offline   Reply With Quote
Old 06-08-2026, 12:42 AM   #10
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 15,247
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
No, I don't want the catalog to exclude books with no comments. That's of course entirely doable by using the search "comments:true". What I want is to have all my books in the catalog, but have the descriptions (they're separate from general listing, but linked to it) only for books with comments. The reason why I want this is to reduce the catalog size and the generation time (it takes hours to generate the catalog with all my books included and having descriptions for each one).

I've experimented with csv catalogs, but comments mess up the formatting there, as they're too long to fit neatly in the general listing. The epub solution is perfect for this, if only there was a way to create descriptions only for some books in the list.

For now I've been creating two catalogs, one for all my books with no descriptions, and another with descriptions only, for the books that have them. Then I merge the two catalogs. Which is far from ideal, as there is no linkage between listing and description anymore. But it's the best I've managed to come up with so far.

Last edited by Sirtel; 06-08-2026 at 12:50 AM.
Sirtel is online now   Reply With Quote
Old 06-08-2026, 02:02 AM   #11
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: 22,699
Karma: 33011292
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I decided early on that anything other than a CSV was beyond my pay-grade. I have, on a couple of occasions, converted a CSV catalogue to HTML with CSVFileView and hacked that.

Did you look in here ==>> Creating Catalogs (Archived) - MobileRead Forums

I've often wondered why Create catalogue isn't a plugin, perhaps it predates the existence of such.

BR
BetterRed is offline   Reply With Quote
Old 06-08-2026, 03:30 AM   #12
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 15,247
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by BetterRed View Post
I decided early on that anything other than a CSV was beyond my pay-grade. I have, on a couple of occasions, converted a CSV catalogue to HTML with CSVFileView and hacked that.

Did you look in here ==>> Creating Catalogs (Archived) - MobileRead Forums

I've often wondered why Create catalogue isn't a plugin, perhaps it predates the existence of such.

BR
Yes, I looked at that. There doesn't seem to be a way to create descriptions only for some books and not others.

If creating a catalog were a one-time job, it wouldn't matter how long it takes, but one needs to create the entire catalog from scratch every time there are new books and so the time quickly becomes a nuisance with large libraries.

For a while I went without any catalog at all, but occasionally I'd like to look something up on my phone - whether I already have a book, or to see the synopsis. An epub catalog is a handy way of doing this. Maybe I should look into some calibre-related apps instead. Which is a pain in itself, as I don't read books on my phone and the only use for the app would be to browse my library occasionally.

Oh well, life sucks and then you die.
Sirtel is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUB Series Catalog with descriptions only for books in series? Moonbase59 Library Management 4 11-15-2021 11:36 AM
Change the order of Descriptions in generated mobi/epub catalog? allanahk Library Management 3 09-01-2021 12:09 AM
Catalog: Section List Templates MidwestJen Library Management 2 05-12-2019 09:09 AM
Books Recently Read section of Catalog higlider Library Management 3 04-20-2012 12:56 AM
Catalog now with Series Section ! pchrist7 Calibre 21 09-11-2010 11:41 PM


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


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