Feature request for item search and autocomplete endpoints
(1) The search form on the marketplace frontpage (see mockup) has a dropdown to select an item category, and a freeform search field. Currently, autocomplete results in the search field will always display results for all item categories.
Suggestion: it would be great if the /item-search/autocomplete
endpoint accepted a categories
query parameter to only return matches for these categories.
Suggestion: if it's easy to do, it would also be great if the autocomplete endpoint could return the item's persistent id, as well as the suggestion, i.e.: { phrase: string; suggestions: Array<{ id: string; suggestion: string }> }
instead of:
{ phrase: string; suggestions: Array<string> }
.
(2) In the item edit forms it is possible to add related items (see mockup). Currently, the related item combobox uses the /item-search
endpoint to match a search term with potential candidates (might be possible to use the autocomplete enpoint if that would return ids).
Related items can also be workflow steps - however, the item-search
endpoint currently only handles top-level categories (dataset
, publication
, tool-or-service
, training-material
, workflow
), but not step
. For the item edit forms, we would need a way to search for step
as well.