03-16-2024, 02:15 PM | #31 | |
Leftutti
Posts: 400
Karma: 1121267
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
As I said, the problem was sitting in front of the monitor - I feel dumb again
This opend my eyes Quote:
|
|
03-16-2024, 02:26 PM | #32 | |
want to learn what I want
Posts: 999
Karma: 6422750
Join Date: Sep 2020
Device: Calibre E-book viewer
|
Quote:
|
|
Advert | |
|
03-16-2024, 03:00 PM | #33 | |
want to learn what I want
Posts: 999
Karma: 6422750
Join Date: Sep 2020
Device: Calibre E-book viewer
|
Quote:
|
|
03-16-2024, 03:06 PM | #34 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Interesting. I prefer the brevity. When I want to see the "real" search I use the menu item in the search menu to get the underlying search text. It's good we both can have what we want.
|
03-16-2024, 03:06 PM | #35 | |
want to learn what I want
Posts: 999
Karma: 6422750
Join Date: Sep 2020
Device: Calibre E-book viewer
|
Quote:
|
|
Advert | |
|
03-16-2024, 03:26 PM | #36 |
Custom User Title
Posts: 8,639
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Would the method be much different for showing one book per series (with notes), with the lowest-indexed book per series?
|
03-16-2024, 04:26 PM | #37 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If you sorted the series descending in step 3 then you would get the highest numbered book in each series. If you search for rating:true, sort the rating column in reverse, then run the template in step 4 with 'publisher', you would get the highest rated book for each publisher. And so on. |
|
03-17-2024, 11:33 AM | #38 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
template to summarize the booklist
After playing for a while I have something that works for me.
The following template processes the books displayed on the book list, in the order they are displayed. The template has two arguments: "field name" and "item count". It looks at "field name" in each book (in order). If the book has an "item value" in that field, it checks if it already has found "item count" books for that "item value". If it has then it ignores the book. If it hasn't then it adds the book to the list of books to display. Spoiler:
Because the book list is scanned in displayed order, how the book list is sorted is important. The "item values" are checked in their order of appearance. This lets you control which books you get, for example:
Although not strictly required, the template works much better if running from latest source. If you don't then search caching can get involved, showing you some previous result instead of a current calculation. The change will be in the next release/preview. The following example will show the first book of each series that has a rating.
Last edited by chaley; 03-18-2024 at 07:24 AM. Reason: Changed the template name to summarize_booklist() |
03-19-2024, 02:18 AM | #39 |
want to learn what I want
Posts: 999
Karma: 6422750
Join Date: Sep 2020
Device: Calibre E-book viewer
|
Looks awesome, I must have missed this post! Will try it when I'm not almost asleep.
edit: Wheee! Just did a quick test with template:"""program: summarize_booklist('publisher',15)#@#:b:yes""" and v:true (v= GR votes), then sorted by multiple columns on Publisher then GR votes, thus getting my listing of top voted titles by Publisher: Last edited by Comfy.n; 03-19-2024 at 02:58 AM. |
04-05-2024, 11:04 AM | #40 |
Leftutti
Posts: 400
Karma: 1121267
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
@chaley
I have an author who has both author notes and series notes. He is listed in author notes and "one book per author", but unfortunately not in series notes and "one book per author" - series notes only he is listed too. What additional information would you need, I always forget something? edit: the author has also aliases Last edited by Wiggo; 04-05-2024 at 12:36 PM. |
04-05-2024, 01:09 PM | #41 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The template knows nothing of aliases. It compares the author names, and either they are the same or they aren't. |
|
04-06-2024, 11:59 AM | #42 | |
Leftutti
Posts: 400
Karma: 1121267
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Quote:
and then additionally on "one book per author" and Dan Adams disappears. What am I doing wrong? |
|
04-06-2024, 12:16 PM | #43 |
want to learn what I want
Posts: 999
Karma: 6422750
Join Date: Sep 2020
Device: Calibre E-book viewer
|
Hi Wiggo, I liked your icons for book formats. They fit better on dark theme than the ones I'm using. Would you mind sharing them in a zip attachment?
I'd never thought of using a column just for symbols, seems a good thing to do! |
04-06-2024, 12:23 PM | #44 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Order is important in "and" search clauses. Clauses following an "and" operate of the results of the previous search clauses. As such they don't see any books already filtered out. This "shortcutting" improves search performance a lot. Try changing the order of the search to Code:
search:"=#Has.Series notes" and search:"=#Has._One book per author" |
|
04-06-2024, 12:23 PM | #45 | |
Custom User Title
Posts: 8,639
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Books sent to Amazon show with my email as ther author | Robmonster | Calibre | 9 | 11-05-2020 01:17 PM |
Show Books from Only 1 Author | RiffRaffAK | Library Management | 2 | 06-04-2020 10:26 AM |
Expanded search option for "Show books by the same author as the current book" ALT+A | Sisela | Library Management | 1 | 11-28-2015 09:54 AM |
author search in book details panel | mobic | Library Management | 3 | 11-26-2015 10:50 AM |
To show author and author sort as same? | pinky62 | Library Management | 5 | 03-18-2014 12:55 PM |