View Single Post
Old 09-29-2011, 04:48 AM   #1270
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by Nyssa View Post
  • "[" & "]" (prefix and suffix) for series
  • ">{" & "}" (prefix & sufix) for authors
Well, if you are willing to use "()" instead of "{}" then you can use the template:

{series:'test($, strcat("[",field('series'),"]"), strcat(">(",field('author'),")"))'}

or if you want author lastname, firstname:

{series:'test($, strcat("[",field('series'),"]"), strcat(">(",field('author_sort'),")"))'}

If you want to use {} then you can use:

program: test(field('series'), strcat("[",field('series'),"]"), strcat(">{",field('author_sort'),"}"))


and if you want you can try listing author followed by series if there is one:

{series:'test($, strcat("[",field('author_sort')," - ",field('series'),"]"), strcat("[",field('author_sort'),"]"))'}

or if you want to use the special characters {} and your original format (although this defeats the purpose of grouping author's books together):

program: test(field('series'), strcat("[",field('author_sort')," - ",field('series'),"]"), strcat(">{",field('author_sort'),"}"))

Last edited by meme; 09-29-2011 at 09:16 AM. Reason: Added missing { to first two entries
meme is offline