View Single Post
Old 10-06-2022, 12:55 PM   #927
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,223
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by chaley View Post
This chain works for me. It sets a custom Yes/No column to Yes for the first book (lowest series_index) in each series, and undefined for all other books. You must change the selection modifier actions to use your column. You probably want to give the chain a keyboard shortcut.

Once you run the chain you can use search to find the books of interest. Or maybe a virtual library that shows only "first books".

I don't know if this is the best way to do it. I thought about using book variables instead of selections but that seemed somewhat more complicated. There are other ways to build the list of ids that might be faster.

EDIT: I tested it with calibre portable 5.44. It worked.
It performs reasonably well on my system. Below is a modified version that has a couple of differences:
  • It does not require a custom column, instead it displays the results immediately. From there the user can choose to select all books and bulk edit them if he wishes.
  • This is a technical and a non significant change. It uses category_items('series') to list all the series. Note that the resulting list is separated by ':::', so the for loop is modified accordingly.
Attached Files
File Type: zip display_first_book_in_series.zip (913 Bytes, 207 views)
capink is offline   Reply With Quote