View Single Post
Old 12-22-2013, 09:33 AM   #37
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by l_macd View Post
I like the fact that HarryT's example sorts the series order correctly, but I prefer the book title listed first.
Yes, sorting series in order is the specific purpose that I use it for .

Quote:
Thanks eschwartz, but its fine. After fiddling a little I'm happily using your example with a small edit:
{title}{series:| (| }{series_index:||)}
I don't think that's right. I believe it should be:

{title}{series:|| (}{series_index:||)}

The syntax is as follows: if the item, such as "series", is empty, the text following the FIRST vertical bar is output. If the item is not empty, the text following the SECOND vertical bar is output. Thus:

{series:|| (}

Means:
Output the series name.
If the series name is blank, output nothing (there's nothing between the 1st and 2nd |)
If the series name is not blank, output " (".

Hope that helps,

Last edited by HarryT; 12-22-2013 at 10:10 AM.
HarryT is offline   Reply With Quote