Quote:
Originally Posted by Kharr
Hi,
I have collections and inside each of them I have authors who wrote more than one book, and even series, and I would like to have it displayed better than how it is today, as if I open the fantasy collection, I get the list of all books having the same tag.
What I would like, if possible, is to have the possibility, inside a collection, to regroup series so I would see only one row and then by clicking on it I would display all the books from the serie.
Could anyone help me please ?
|
I also have a Kindle and have struggled with its limited series/collection/list support. Here is what I have done to handle cases where I have Sub-series, as well as keeping track of the series order of my books.
Create 2 new Calibre columns (for both fields, you can set the Column Heading value to what whatever is meaningful, but the Lookup Name value must be what is specified below):
sub_series - Column Type: Text column for keeping series-like information
title_series - Column Type: Column built from other columns
Here is the template for title_series (copy-paste everything in the Code box below into the column's Template field):
Code:
program:
t_prefix='S';
s_index=test(field('series'), contains(field('series_index'), '[.]', template('{series_index:3.2f}'), template('{series_index:3.0f}')), '');
s_mult=contains(t_prefix, '^[S]$', 1, contains(s_index, '[.]', contains(s_index, '^0[.]', 100, 1), 1));
s_index=test(s_index, re(multiply(s_index, s_mult), '[.][0]$', ''), '');
ss_index=test(field('#sub_series'), contains(field('#sub_series_index'), '[.]', template('{#sub_series_index:3.2f}'), template('{#sub_series_index:3.0f}')), '');
ss_mult=contains(t_prefix, '^[S]$', 1, contains(ss_index, '[.]', contains(ss_index, '^0[.]', 100, 1), 1));
ss_index=test(ss_index, re(multiply(ss_index, ss_mult), '[.][0]$', ''), '');
strcat(field('title'), test(s_index, strcat(' [', t_prefix, ':', s_index, ']'), ''), test(ss_index, strcat(' [S', t_prefix, ':', ss_index, ']'), ''))
With the code above, the #title_series value will be as follows:
Book with no series/sub-series:
'Book Title'
Book with series and no sub-series (assuming first book in series):
'Book Title [S:1]'
Book with series and sub-series (assuming first book in series and sub-series):
'Book Title [S:1] [SS:1]'
Set up a Calibre Metadata Plugboard as follows (this will use the #title_series value to set the Kindle title value):
Format: any format
Device: I picked KINDLE2 since I have a Kindle Gen 2 Keyboard, but pick the appropriate one for your device
Source Template (first row): {#title_series}
Destination Field (first row): title
Under the Kindle Collections config, I have set it up so that collections are created for both the standard Kindle Series column and the new Sub-series column (I prefix the Series with ':S:' and the Sub-series with ':SS:', but you can use whatever works best for you). Note: Any book within a sub-series will appear in both the Series list and the Sub-series list.
Granted, this is not the prettiest, but it does overcome the Kindles inability to handle sub-series and orders.
Hope this helps.