View Single Post
Old 03-11-2015, 11:38 PM   #45
Thomas_AR
Zealot
Thomas_AR began at the beginning.
 
Thomas_AR's Avatar
 
Posts: 131
Karma: 10
Join Date: Jan 2015
Location: Buenos Aires
Device: Android
Ok, that seams to do the trick - perhaps there are for sure things to improve?

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'))
);
end_template=template('{series_index:0>4s| | - }{title} - {authors}');

start_template=test(
	field('series'),
	strcat(
		'_ ',
		field('series'),
		various_authors
	),
	field('authors')
);

strcat(start_template, '/', end_template);
..it seams to work as expected.

Just saw that there is a DC: tag which is not used in Calibre. DC:type This would be perfect for my goal.

http://www.idpf.org/epub/301/spec/ep...l#sec-pub-type

I know its epub 3.x, but should do it in case of using it for a templates.
Any chance to add this DC: type column into the Tag-Editor?

Last edited by Thomas_AR; 03-12-2015 at 12:53 AM.
Thomas_AR is offline   Reply With Quote