materialsintelligence / matscholar-web

Code for the Materials Scholar website
http://matscholar.com
MIT License
9 stars 11 forks source link

Autocomplete should show both in normalized and normalized (in parenthesis or brackets) terms #124

Open computron opened 5 years ago

computron commented 5 years ago

As discussed on the call

computron commented 5 years ago

@jdagdelen can we prioritize this?

e.g.

XRD [x - ray diffraction]

jdagdelen commented 5 years ago

Done in dash-elasticsearch-autosuggest-0.6.0

computron commented 5 years ago

Can you make it so that if the entity is already normalized, that it doesn't show the brackets?

e.g. the property dropdown menu might show

thermoelectric thermoelectrics [thermoelectric] thermoelectricity [thermoelectric]

rather than:

thermoelectric [thermoelectric] thermoelectrics [thermoelectric] thermoelectricity [thermoelectric]

My understanding is that this should be extremely simple. If more than a 15 minute job, I'd say to skip