11-12-2011, 10:31 PM | #1 |
Wizard
Posts: 1,098
Karma: 9177222
Join Date: Oct 2010
Location: USA
Device: sony prs-350,Nook HD+, Kindle 2nd gen, kindle keyboard
|
Savings books to disk
This is my Template for saving books to disk.
{#series_order:||} {Series_index:0>3s} {title} - {author} - ( Series - {series:||}) - (Series Order - {#series_order:||}) It works great. My question is this. If there is no series order I do not want any of this to show up --- (Series Order - {#series_order:||}). Is that possible? |
11-13-2011, 03:12 AM | #2 |
Member
Posts: 11
Karma: 12584
Join Date: Oct 2011
Device: Sony PRS-T1
|
Try this:
{#series_order:||} {Series_index:0>3s} {title} - {author} - ( Series - {series:||}){#series_order:| - (Series Order - |)} If #series_order is set, it'll use the stuff marked by the pipes (" - (Series Order - " before the value, and ")" after). If #series_order is empty, it ignores all that stuff and everything between that set of braces is left out. You could probably apply the same transformation to the series field before it, and leave that part out if the series is blank. |
Advert | |
|
11-13-2011, 03:59 PM | #3 |
Wizard
Posts: 1,098
Karma: 9177222
Join Date: Oct 2010
Location: USA
Device: sony prs-350,Nook HD+, Kindle 2nd gen, kindle keyboard
|
Thanks
Thanks Tuttle It worked great.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Preferences -> Saving books to disk -> Format dates as | steje | Library Management | 4 | 08-15-2011 03:01 PM |
Damn Daylight Savings Time Anyway!! | kennyc | Lounge | 75 | 11-11-2010 05:53 PM |
Using Genre to sort books when saving to device or disk | jjchico | Calibre | 2 | 07-07-2010 12:27 PM |
just delete books from database not from disk | droople | Calibre | 5 | 01-31-2010 03:43 AM |