gbif / hosted-portals

Support material for establishing the GBIF Hosted Portals
Apache License 2.0
9 stars 6 forks source link

Use vocabularies for searches of GRSciColl collections and institutions #289

Open ManonGros opened 1 month ago

ManonGros commented 1 month ago

Relates to https://github.com/gbif/registry/issues/549 and https://github.com/gbif/registry-console/issues/558.

The drop download lists should reflect the available vocabularies. For example this drop down list should use https://registry.gbif.org/vocabulary/CollectionContentType/concepts:

Screenshot 2024-05-15 at 15 13 16
ManonGros commented 1 month ago

As for the registry console, could we display the parent concepts along with the children concepts?

MortenHofft commented 1 month ago

In the registry I have to do 42 requests for a single keystroke on e.g. PreservationType It isn't really something I want to do in a public facing product that should perform well. For that we probably need a backend that supports that kind of functionality.

ping @marcos-lg Currently I can do https://api.gbif.org/v1/vocabularies/PreservationType/concepts/suggest?q=sto&locale=en-AR

that will return

[
  {
    "key": 1106,
    "name": "StorageOutdoors",
    "labels": []
  },
...
]

getting the label with fallback to english, as well as all the parent labels would make it more usable. Currently I would have to do an extra lookup for each result without a label, and secondly an additional lookup for each parent. And do so for all results. And so we end up with many requests per keystroke

marcos-lg commented 1 month ago

It's fine to me to add English labels and parents in the response. Can you create an issue in the vocabulary repo with it and any other wishes you might have?