I haven't tried this but I suspect you could make a "Column built from other columns" (composite columns) that computes the result you want, then use that column in the book list template.
Composite columns use the full template language, which supports conditionals and computation.
|