Quote:
Originally Posted by Skydog
My objective is to display a running total (total number of books read) in the tag browser that exist in my custom "read" column. Of course, I can search, sort, or create a virtual library (with thanks to BetterRed) but I simply want to add an entry similar to what exists now displaying totals to the right similar to "authors," "formats," "publishers," etc. The current "read" column is not a composite column. (I only learned what that was during this thread)
If I create a new composite column, type: "Column built from other columns," how do I point it to the existing "read" (type: date) column? What is needed in the template to simply acquire the total of the "read" column? I do not need any other information, just a total.
|
One of the versions of code I posted should do what you want. You need to change the name of the column it uses to your column. That means changing where I have "timestamp" to "#finished". Then in the definition of the column, tick the "Show in Tag browser" option. That will show an entry for the new column with the count of books with a value in it. But, that number isn't the number of books that have a value in that column (and hence in #finished). It is the number of different values in the column. Clicking the heading in the tag browser will show the books with a value in it, and show the count of books in the status area at the bottom of the calibre window.