04-06-2013, 11:06 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2011
Device: kindle
|
Save Template question
My save template looks like this:
{author_sort} - {series} {series_index} - {title} This is fine. It makes me happy... unless the book does not have a series. And then I end up with "Twain, Mark - - White Fang". So I took at look at Calibre's template editor. Looks powerful. Also, incredibly not user-friendly for those of us that do not play with whatever language it's based upon. So, my question: How do I make the " - {series} {series_index}" conditional upon there actually being something in the series field? Thanks in advance |
04-06-2013, 11:20 PM | #2 |
Well trained by Cats
Posts: 30,416
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Code:
{author_sort} - {series}{series_index:| - | - }{title} |
Advert | |
|
04-06-2013, 11:34 PM | #3 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2011
Device: kindle
|
When series is not present, this is good.
However, when series is present, it results in this: "Pullman, Philip - His Dark Materials - 2 - The Subtle Knife" I modified it to this, and all is well: {author_sort} - {series}{series_index:| | - }{title} Thank you! |
04-10-2013, 11:20 AM | #4 |
Member
Posts: 18
Karma: 10
Join Date: Jan 2011
Device: Sony PRS350
|
For my save to disk..
I also went only the first author on save to disk to control the filename size {author_sort:list_item(0,&)} |
04-11-2013, 06:15 PM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2011
Device: kindle
|
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting a Save Template. | Illyrie | Library Management | 5 | 02-08-2014 11:12 AM |
Save template problem | antoon | Library Management | 12 | 08-17-2012 12:47 PM |
Need help on a Save to Disk template | fidvo | Library Management | 2 | 08-12-2012 03:34 PM |
A little help with a save template...? | Belfaborac | Library Management | 2 | 02-04-2011 09:47 PM |
save to disk template | speakingtohe | Calibre | 9 | 05-29-2010 06:02 AM |