11-02-2011, 08:06 AM | #1 |
Enthusiast
Posts: 34
Karma: 10
Join Date: Aug 2011
Device: Amazon Kindle 3
|
StorePlugin questions
Hello. I have few questions about StorePlugins.
First of all, is there documentation for this kind of plugins? I can't find any. I want write plugin to page which use author and title to search book. Both are necessary. I know that query can looks like that 'author:Herman Melville title:Moby Dick' but how can I get this detailed information in my plugin? Is this used only for removing not well matched books from results list? If so, are there any plans to add author and title to search() function as optional arguments? This should solve all my problems and allow improve searching in many other plugins. I think its worth consider. |
11-02-2011, 12:40 PM | #2 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
The author and title filters are only used to filter results in the results window. There is no way to specify to a store plugin. specific attributes such as author or title. The query string is given to the plugin with attribute filters removed.
The vast majority of stores do not make a distinction when searching or support differentiating between attributes. This is a very poor way to implement searching. Since most stores don't support it, it's a bad design, and it makes it confusing for users the store plugin API does not support this. What you need to do is run the search in your plugin multiple times for author and title. Then collect the results and pass the appropriate ones along. |
Advert | |
|
11-02-2011, 01:27 PM | #3 |
Enthusiast
Posts: 34
Karma: 10
Join Date: Aug 2011
Device: Amazon Kindle 3
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Two little questions | estelle58 | Kobo Reader | 13 | 06-06-2011 08:31 AM |
A few questions | bookfanmd | Calibre | 4 | 04-27-2011 08:49 PM |
Two Questions | nynaevelan | Calibre | 19 | 10-30-2010 06:39 PM |
Some questions about using ... | SkyDream | Calibre | 17 | 06-19-2010 06:32 AM |
Some questions | hansvanderveeke | Sony Reader | 3 | 03-27-2010 08:41 AM |