View Single Post
Old 05-09-2022, 04:41 PM   #6
wiso
Enthusiast
wiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it iswiso knows what time it is
 
wiso's Avatar
 
Posts: 33
Karma: 2114
Join Date: Nov 2021
Device: kindle
Quote:
Originally Posted by Laval View Post
Hello I thank you for your reply. I would have one last question, I created a custom list template in my content server like this "Number {series_index} series {series}" and I would like to have the total number of books (5 in my example below) of the series. Ex: "Number 2 of 5 of the series (name of the series)".

Thank you!
caliber knows the number of books in each series, but cannot access those values? why?



You can see the number of books in each series from the series tab in the gui or in manage series.

A crappy solution that I am using is to use the "Author Book Count" plugin (which counts ALL the books of an author, not of the series, but it is an approximation) with this I create a custom column that shows the number of books of the author in the columns of the books that belong to a series.

I leave you this personalized column in case you are interested.

Code:
##### config to display a column with the title [serial no./total serial no.] -> dune [01/3]

#author_book_count column  (### you should hide this column ###)
has the number of books per author (using the Author Book Count plugin)

column #is_series (### you should hide this column ###)
(obviously, for books that do not belong to any series, it counts them as series of 1 book, we are not interested in that)
(that's why this column is hidden and will serve as an auxiliary column, to show this information only if it belongs to a series)
{series} [{series_index:0>2s}/{#author_book_count}]

column #series_total  (### this is the kind of column you are loking for !! ###)
(if the column 'series' is blank #series_total is left blank, otherwise we put what the column #is_series says)
program:
  if field('series')==''
    then ''
  else
    field('#is_series')
fi
You will see in the new column

Title [actual book with 2 digits format filled with 0 / Total serie books]

Example:
Dune [01/3]
Attached Thumbnails
Click image for larger version

Name:	series2.png
Views:	341
Size:	14.6 KB
ID:	193739   Click image for larger version

Name:	series3.png
Views:	348
Size:	11.4 KB
ID:	193740  

Last edited by wiso; 05-09-2022 at 04:47 PM.
wiso is offline   Reply With Quote