Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-06-2013, 11:06 PM   #1
ltwally
Junior Member
ltwally began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2011
Device: kindle
Question 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
ltwally is offline   Reply With Quote
Old 04-06-2013, 11:20 PM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,487
Karma: 5567061
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Code:
{author_sort} - {series}{series_index:| - | - }{title}
BTW Author and Series can clash if your series has different authors
theducks is offline   Reply With Quote
 
Enthusiast
Old 04-06-2013, 11:34 PM   #3
ltwally
Junior Member
ltwally began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2011
Device: kindle
Quote:
Originally Posted by theducks View Post
Code:
{author_sort} - {series}{series_index:| - | - }{title}
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!
ltwally is offline   Reply With Quote
Old 04-10-2013, 11:20 AM   #4
mdb5972
Member
mdb5972 began at the beginning.
 
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,&)}
mdb5972 is offline   Reply With Quote
Old 04-11-2013, 06:15 PM   #5
ltwally
Junior Member
ltwally began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2011
Device: kindle
Quote:
Originally Posted by mdb5972 View Post
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,&)}

Ooh. That looks nice. I'll give it a whirl. Thanks
ltwally is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 06:30 AM.


MobileRead.com is a privately owned, operated and funded community.