|
|
#1 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,247
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#5 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 209
Karma: 197760
Join Date: Oct 2015
Device: Kobo Glo HD (landscape), Kobo Aura One
|
Quote:
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 |
|
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,247
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
|
|
|
|
|
#7 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
Are you looking for cover Images and text listing If you want just a CSV Calibredb --list <see man for options> |
|
|
|
|
|
|
#8 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,247
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
|
|
|
|
|
#9 | |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,699
Karma: 33011292
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
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 |
|
|
|
|
|
|
#10 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#11 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
|
#12 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,247
Karma: 247605191
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
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.
|
|
|
|
|
![]() |
|
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 |