Ticket #839 (closed Enhancement: fixed)
Webclient: redesign search mode extension mechanism
Reported by: | jri | Owned by: | jri |
---|---|---|---|
Priority: | Major | Milestone: | Release 4.7 |
Component: | DeepaMehta Standard Distribution | Version: | 4.6.1 |
Keywords: | Cc: | dgf, Malte | |
Complexity: | 3 | Area: | Application Framework / API |
Module: | deepamehta-webclient |
Description
Providing a search mode implementation should be more easy for the plugin developer. The current approach based on events ("search", "searchmode_widget") doesn't represent the problem well.
Change History
comment:2 Changed 9 years ago by Malte
My reply to the ticket scope:
Webclient: redesign search mode extension mechanism
From my personal experience, implementing a search mode js- and java-wise is already easy but provides some challenges for the user-interface design of the search-dialog.
Just my two cents for consideration in a potential revision of "Search"-modes.
- All third party search modes plugged in i know of _extend_ and not replace the "By Text" search mode about, 1-3 optional settings. For example, Wikidata is an extra "Source" and needs additionally a specific "Language" and "Type" as parameters for a "By Text" search)
- Consider also searching tracks on "SoundCloud?" or Albums on "Bandcamp", "By Text", etc.
- Similarly one could imagine that a "By Type" search is used to search for types (in terms of "Classes", "Schemas" or other "well defined model structures") from other "Sources"
I think a revision of the search dialog would be the most helpful thing one can currently do when aiming at supporting third party developers. I am sorry that atm i can not provide a idea on how one could exactly successfully do so but just wanted to give my input on this because currently i can not see the problem as described above.
Cheers & all the best!
comment:3 Changed 9 years ago by jri
These are good points but out of the scope of this ticket.
Consider opening a separate ticket, e.g. "Redesign the search widget to include external data sources".
The scope of this ticket is just the long overdue refactoring of the searchmode API, no new functionality.