View Single Post
Old 07-02-2011, 11:19 AM   #1
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Get Books showing if result is in library

I want to add the ability for results in Get Books to be marked if they are already in the users library. The idea being if a user searches for an author they can at a glance see what books they already have by the author.

My first thought is to use the comparison features of the Find Duplicates plugin. However, I'm concerned about performance and I'm also unsure about the best way to do this. The big thing that makes me think I need to use Find Duplicates is the fuzzy matching.

My initial thought is to do a soundex search over each book in the users library using author and title each time Get Books is opened. Then store a hash of the title and authors. Then compute the hash for each result as they come in and check if there is an existing hash from the library.

What I'm looking for is advice on the best way to go about this?
user_none is offline   Reply With Quote