USGCRP / gcis

Global Change Information System
https://data.globalchange.gov
Other
20 stars 16 forks source link

Increase the string size limitation for autocomplete feature in GCIS #542

Closed amruelama closed 6 years ago

amruelama commented 7 years ago

Currently, there is a limitation for the number of characters we can type in the autocomplete box, in order to show if that item exists in our system. The problem with this limitation is, we could not copy/paste the entire name to retrieve the data using the autocomplete feature and so, we should copy/paste only half of the entire length of the string. In many cases, the first part of the string aren't unique. So increasing the limitation would be helpful to avoid data redundancy.

It would be great if we make this feature available for all the resources. Priority ones are organizations, articles, reports.

Example : Copy/paste the organization- "Woods Hole Oceanographic Institution Department of Marine Chemistry and Geochemistry" in the autocomplete box here. It retrieves no values, but removing the last word would work. In this case, if we have the specific word at the end of the title, it is not possible to find that organization using the autocomplete feature, so I would use the 'search' feature instead. But we need to improve the autocomplete feature eventually.

amruelama commented 7 years ago

The longest organization title we have so far is "National Center for Zoonotic, Vector-Borne, and Enteric Disease Division of Foodborne, Waterborne, and Environmental Diseases Mycotic Diseases Branch" with length 149 and shortest title is "BP" with length 2.

amruelama commented 6 years ago

@lomky Is it possible to prioritize this ticket for next release?

lomky commented 6 years ago

This turned out to be quite simple. @amruelama can you check this on data-review?

amruelama commented 6 years ago

It works! Thanks @lomky