View Single Post
Old 06-10-2015, 07:45 AM   #2
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,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You must use either general program mode (GPL) or template program mode. Which you choose depends on where the complexity is. In your case, determining in the template that there is more than one author might be a challenge, which would push me to GPL.

Here is a guess about what you might want expressed in GPL.
Code:
program:
	a=field('author');
	first_author =  sublist(a, 0, 1, '&');
	last_author=cmp(count(a, '&'), 1, '', '', strcat(' / ', sublist(a, -1, 0, '&')));
	authors = strcat(first_author, last_author);
	rest = template('{series:|| }{series_index:0>2s|[|] - }{title} ({pubdate:sublist(-1,0,\,)})');
	strcat(authors, ' - ',rest)
chaley is offline   Reply With Quote