Quote:
Originally Posted by meme
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'),"}"))
|
You are brilliant! Thank you! I like the Author - Series option.
Two things I've noticed, however, for later consideration:
1. It doesn't seem to like multiple authors. I have a handful of collaborations, and they are skipped when creating collections:
(i.e. - There is a series by Eric Flint called
Assiti Shards. The 2nd book was co authored bu David Weber, but the book was left out of the collection until I removed Weber's name).
2. I can not find a way to get certain series or authors ignored while using the template.
Despite those annoyances I do like that option.
Thank you so much for your help!
Oh, I was originally going to try the first option:
series:'test($, strcat("[",field('series'),"]"), strcat(">(",field('author'),")"))'}
and noticed that you have to add the "
{" before series: to get it to work.
Thank you, again.