View Single Post
Old 03-16-2024, 04:26 PM   #37
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,765
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Would the method be much different for showing one book per series (with notes), with the lowest-indexed book per series?
Are you asking about the stuff I talked about in post 24? If so then the process would be:
  1. Run the search
    Code:
    template:"""program: item_has_notes('series')#@#:b:yes"""
    This gets you a list of books where the series value has a note attached.
  2. Make a temp VL from this search. This isn't strictly necessary because you could use a compound search, but it does make it easier to sort and to experiment to get the list you want.
  3. Sort the booklist by series ascending.
  4. Run
    Code:
    template:"""program: get_N_books_per_field_value('series',1)#@#:b:yes"""
    The template used in this search is still under thought/development.
You would see a list one book per series, where that book has the lowest series index.

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.
chaley is offline   Reply With Quote