hamitozdemir / email-finder

📧 Author e-mail finder for scientific publications.
https://hamitozdemir.github.io/email-finder/finder/
GNU General Public License v3.0
1 stars 0 forks source link

Reverse name searches seem to get different results than forward order searches #1

Closed hamitozdemir closed 1 month ago

hamitozdemir commented 1 month ago

This is related to fetching from the database initially in search(). For example: Pilar Ortega doesn't get the following but Ortega Pilar does, albeit, without show author mail only? being able to detect that is the author, with details being empty. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7438160/

hamitozdemir commented 1 month ago

Author mail not being caught was caused by PMC at different conditions having names under <surname>surname</surname> <given-names>name</given-names> (inside <contrib><name>...</...>). Catching these in regex fixes the issue of author mail not showing these cases.

Will add a reverse name button for the other issue. Not sure how else to handle this other than showing user the possibility of reverse name search.

hamitozdemir commented 1 month ago

On initialise prompt the user with a 'tip' Reversing name order might get more results. (that gets removed on any button press action, except for empty author reverse button) on top of the reverse name order button. I think this is the best possible way to convey to the user the possibility of reversed name search.