02-18-2024, 02:09 AM | #1 |
Enthusiast
Posts: 26
Karma: 30486
Join Date: Dec 2023
Device: Kindle Oasis
|
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! |
02-20-2024, 08:26 AM | #2 |
Enthusiast
Posts: 26
Karma: 30486
Join Date: Dec 2023
Device: Kindle Oasis
|
From the lack of responses I assume that either I wasn't clear enough with what I was asking, or maybe it's not possible.
But just in case someone else might have this type of question in the future, I'd like to explain what I ended up doing: Since all I really wanted was to have the book's title in the jacket, but to also add the series information in the file name, I ended up cleaning my book title and removing the series name and index, and instead, I edited the save to disk template so when I save to my backup folder, the file name does include the series name and index, in my desired format: Code:
{series} {series_index:0>2s|#| - }{title} - {authors} |
Advert | |
|
02-20-2024, 11:58 AM | #3 |
Well trained by Cats
Posts: 30,378
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You are asking 2 different questions.
1)is how to modify the Jacket Calibre has a brilliant system for users to have overrides. If it sees a needed resource in the USERS configuration, that takes priority. so place a copy of Code:
C:\Program Files\Calibre2\app\resources\jacket Code:
C:\Users\thedu\AppData\Roaming\calibre\resources This is where yo2 modify your 'jacket' look 2)file save template (THIS DOES NOT AFFECT THE LIBRARY. That can not be changed (See the FAQ Help) |
02-20-2024, 01:00 PM | #4 |
Enthusiast
Posts: 26
Karma: 30486
Join Date: Dec 2023
Device: Kindle Oasis
|
Thanks for replying. I know how to modify the jacket by the method you described, I followed the documentation and managed to get it how I wanted it. I also managed to get the save to disk template formatted how I wanted it to be. So, my issue is solved.
I appreciate your help! |
Tags |
customization |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trying to change title. | Elektron | Kobo Reader | 15 | 01-03-2021 05:14 AM |
Metadata Plugboard to change title of same-title books in series for Kobo Touch | il_mix | Library Management | 5 | 03-15-2018 04:59 PM |
Book jacket with conditional metadata? | Grins | Calibre | 3 | 07-01-2016 01:47 AM |
change 'sort by title' with 'title' | jcarlier | Calibre | 17 | 09-20-2013 06:26 AM |