View Single Post
Old 04-14-2011, 04:22 AM   #34
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,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kiwidude View Post
Stuff I know differs in this release:
  • Added a "Show all duplicates" menu item. Note this does not as yet attempt to do any of the restriction/highlighting stuff above, will wait for Charles to add stuff to Calibre
Are talking about arbitrary searches as search restrictions? If so, then the code is now in trunk. The method/changes are in gui.search_restriction_mixin. The API:
Code:
apply_text_search_restriction(some_search)
where 'some search' is any search expression. You can also do this from the gui by going to the search restriction box and selecting "*Current search" (the first item).
Quote:
In theory we could use the above for sorting when showing all duplicate books, as I store composite values with "duplicate_group_000x" always at the beginning of the "marked" field value. I haven't bothered to apply any sorting at this point but the ability is there.
I have never tried to sort by the marked field, but it should work at the db level. However, there is no provision at the GUI level to do it. It would be easy to add, if there is a use case for it.

Will try the new version soon...
chaley is offline   Reply With Quote