Skip to content

Commit

Permalink
fix: remove fuzzy search indication from ORCID api request because it…
Browse files Browse the repository at this point in the history
… does not behave as expected
  • Loading branch information
dmijatovic committed Sep 16, 2024
1 parent 2d49aa5 commit 9e5cd4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/utils/getORCID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ function buildSearchQuery(searchFor: string) {
const given_names = names[0]
const family_names = names.length > 1 ? names.slice(1).join(' ') : null
if (family_names) {
return `q=given-names:${given_names}+AND+family-name:${family_names}~*`
return `q=given-names:${given_names}+AND+family-name:${family_names}*`
}
// just try the term on both
return `q=given-names:${searchFor}~*+OR+family-name:${searchFor}~*`
return `q=given-names:${searchFor}*+OR+family-name:${searchFor}*`
}

0 comments on commit 9e5cd4a

Please sign in to comment.