View Single Post
Old 03-01-2012, 04:49 AM   #13
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 speakingtohe View Post
Anthologies would be fine or Anthology or xxxyyy. Only want one collection for all anthologies athough I can understand people wanting more for specific genre anthologies.

My reason for wanting them in one place is that often I want to read a tad more after finishing a book without actually starting a new one, so a short story or three is nice. And/or I don't know what I want to read.

Helen
First, apologies to the OP for hijacking the thread. At least the topic is related.

@speakingtohe: you can do what you want by creating a new custom column built from other columns that will contain the value you wish to use for a collection. Lets call it #collections. Do not check the box "Show in tags browser" when creating the column.

I understand that you currently build all collections from author_sort. Assuming I understand correctly, then the template for the #collections column would be
Code:
program: x=field('author_sort'); strcmp(field('series'), 'Anthology', x, 'Anthology', x)
This template will put 'Anthology' into #collections if the series is named that, otherwise it copies author_sort. FYI: the template uses general program mode because in this case, it will be faster than the other two modes. If you want to change the name of the collection, change the second occurrence of 'Anthology'.

You would then use #collections in the 'build series from' box in the device plugin instead of author_sort.

You do not need to show the #collections column on the library spreadsheet.

Last edited by chaley; 03-01-2012 at 12:20 PM.
chaley is offline   Reply With Quote