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
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?