View Single Post
Old 12-03-2010, 03:11 AM   #35
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,480
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by marie44 View Post
As to chaley's tweak - how do I set this up in conjunction with what I already have set up to create collections from my "sony" tags:

sony_collection_renaming_rules={'#sony':''}

I tried to just copy the new tweak and put it directly below the one I already have, but that didn't seem to do anything as far as I could tell - not that I really expected it to. I'm assuming I need to combine the two, but I'm not sure how.

Thanks!
Using the same column to sort won't work for two reasons. 1) all the books would have the same value, so the sort will fall back to title, and 2) that field is multiple, so all will sort on the first one.

What order do you want the books to be in within each collection? If it is the same as in #2 in your original post, then you should:
1) create a new custom column of kind 'column built from other columns. Call it whatever you want, perhaps sony_sort.
2) Put
Code:
{series}{series_index:>2s|| - }{title}
into the template.
3) Restart calibre so the column comes into existence.

At this point you should see the column off to the right. Check that the contents are what you want. If not, you can double-click on the column to edit the template.

Now...
4) Tell calibre to sort collections using that column. To do so, change the sony_collection_sorting_rules tweak to be:
Code:
[(['*'], '#sony_sort')]
Next time metadata is refreshed (on next connect if metadata management is set to automatic), the collections will be rebuilt and resorted.

If you wish, you can hide the #sony_sort column. There is no need for it to take up screen space.

edit and side comment: I note that your cat looks a lot like my eldest, Lizzie. The 'M' on Lizzie's forehead seems to be a bit more pronounced than your cat's, but the coloring is very similar.

Last edited by chaley; 12-03-2010 at 03:14 AM.
chaley is offline   Reply With Quote