View Single Post
Old 02-22-2012, 10:15 AM   #9
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Thanks! I used the last one and it seems to be working great (just had a small typo v,lower() instead of v.lower()). Curious about the series information (Series: My Series [n.n]), wouldn't having the series index in there create a separate collection for each book in a series?

Also, I wonder how do you run the following?
Quote:
Originally Posted by chaley View Post
Here is a general program mode template that does what I think you want. It puts all values into one custom column, not three
Code:
program:
	categories = 'Fiction, Non-Fiction, Fanfiction, Magazine';
	types = list_intersection(field('tags'), categories, ',');
	genres = list_re(list_difference(field('tags'), categories, ','), ',', '^', 'Genre: ') ;
	series = test(field('series'), strcat('Series: ' , field('series'), ' [', field('series_index'), ']'), '');
	list_union(types, list_union(genres, series, ','), ',')
Does this go into templates or do you enter it somewhere else?
ilovejedd is offline   Reply With Quote