NCEAS / metacatui

MetacatUI: A client-side web interface for DataONE data repositories
https://nceas.github.io/metacatui
Apache License 2.0
42 stars 26 forks source link

Add look ahead to the seach field in the new data catalog view #2363

Open yvanlebras opened 3 months ago

yvanlebras commented 3 months ago

Describe the bug With older versions of metacatui, the user on /data was able to serach for "Data attribute" (for example) benefiting of autocompletion / autocomplete / predictive text (not sure the good term in english sorry ;) ) so metacatui was proposing existing indexed terms (for example "Data Attribute" related term) when starting typing the term.

It seems to me this functionnality is not there any more but really important!

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://arcticdata.io/catalog/data'
  2. Then 'Data attribute'
  3. Start typing 'leng'
  4. No list of related terms

Expected behavior A list of all indexed terms starting with "leng" as "length" for example. Same using "densi"

Screenshots image

Desktop :

Additional context Can be related to ongoing work / discussions with https://github.com/NCEAS/metacatui/issues/1654 and / or https://github.com/NCEAS/metacatui/issues/2035

robyngit commented 2 months ago

Thanks for making an issue for this @yvanlebras ! The arctic data centre is using the new data catalog with the Cesium map rather than the Google map. This view uses different underlying UI elements, and you're right that the search field is missing the predictive text. We should add this feature back in.