semantic-systems / nfdi-search-engine

A lightweight, KG-driven search engine over different endpoints and APIs
https://nfdi-search.nliwod.org/
MIT License
5 stars 3 forks source link

Prevent empty search #91

Closed Meisenburger13 closed 1 year ago

Meisenburger13 commented 1 year ago

If someone tries to search without typing anything in, there is a little message below the search bar to "Please enter a search term". I've changed it in the two places, where the search bar is implemented and added a little css to the corresponding files.

Please review and merge.

hannah-sems commented 1 year ago

It works for the 'empty search' (no input given) but no reminder is given for the empty string " " , it just searches for it anyways.

Meisenburger13 commented 1 year ago

good point, I've fixed that now. Now it also shows the message if someone tries to search for only spaces, no matter how many, so any search string needs to contain at least one proper character