Conditional change to {title} in jacket
Hi, I am following the guides and documentation on customizing my jacket template to fit my preferences.
One of the things I haven't figured out how to do yet, is conditionally changing the title of the book.
My use case is this: I keep a backup of all my books in a folder unrelated with my Calibre library. In this folder I name the books such that the series name and the book number in the series are part of the file name. It makes it easy to find the books I want when not using some DB like Calibre.
When I add these books into Calibre, I am keeping this naming convention as the title of the book. And of course, when I polish the books to add a jacket, the title is shown exactly like that (i.e. "Series Name #01 - Book Name").
This is redundant because the series details are also included in the jacket, and I would prefer to keep just the book name as the title in the jacket.
I was thinking of creating a custom column (e.g. short_name or something like that) where I would store just the book name, for books that are part of a series and then conditionally show that column as the title in the jacket, instead of the normal title. For books that are not part of a series, I would show the regular title in the jacket as normal.
I am familiar with IF statements in other languages, but I don't know if that's possible in html.
Is there a way to achieve what I'm looking for?
Thanks!
|