View Single Post
Old 11-11-2021, 05:30 AM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
This template produces a similar answer as @davidfor's but using a different technique.
Code:
program:
	series = re($series, '\.', '_');
	if series then
		res = '';
		for aut in $author_sort separator '&':
			res = strcat(res, (if res then ',' fi), re(aut, ',', ';'), '.', series)
		rof
	fi
One difference: I prefer a semicolon over an underscore in the authors' names. YMMV.

For these templates to work the destination column must be "built from other columns, behaves like tags" and the lookup key must be added to the hierarchical columns box.
chaley is offline   Reply With Quote