Register Guidelines E-Books Today's Posts Search

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
Well trained by Cats
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: 29,817
Karma: 54830978
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}
BTW Author and Series can clash if your series has different authors
theducks is offline   Reply With Quote
Advert
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
Advert
Reply


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 05:54 PM.


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