View Single Post
Old 03-12-2015, 03:33 AM   #51
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,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Thomas_AR View Post
I added simple the Tag "MAS" (Multi Author Series) to "tags", than using:
Code:
program:

# return separator+authors if no Multi Autor Serie (MAS) is found, or return empty
various_authors=in_list(
	field('tags'),
	'&',
	'MAS',
	'',
	 strcat(' - ', field('authors'))
);
[...]
..it seams to work as expected.
This works by accident. It will see MAS inside any tag, such as in MASTER. You are also using the wrong separator. Authors-like columns use '&', tags-like columns use ','.

You should use
Code:
program:

# return separator+authors if no Multi Autor Serie (MAS) is found, or return empty
various_authors=str_in_list(
	field('tags'),
	',',
	'MAS',
	'',
	 strcat(' - ', field('authors'))
);
[...]
chaley is offline   Reply With Quote