View Single Post
Old 10-21-2010, 04:16 AM   #2
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: 11,691
Karma: 6240117
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I assume that the numbers being shown above are the series index? If so, you are looking for a way to change a series index into some hierarchy?

There is no automatic way to do the arithmetic necessary to convert a series index of (say) 147 into the string 0101-0200/0140-0149. That said, you can do it manually on a book by book basis. Create two text custom columns, one for the first level of the index (lets call this #index1) and one for the second (lets call this #index2). Put the index-level folder names you want into them. For example, for book 147, you would put 0101-0200 into #index1, and 0140-0149 into #index2.

You don't say where the genre comes from. I will assume you have a custom column called #genre. (You could use tags, of course.)

Given the above, you would use a save template that would look something like
{#genre}/{series:||/}{#index1:||/}{#index2:||/}{title}

See http://calibre-ebook.com/user_manual/template_lang.html for a description of the template language.
chaley is offline   Reply With Quote