Skip to content

Commit

Permalink
ConceptSchemeSelection: Allow searching for part of label (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Feb 22, 2022
1 parent ada0ee7 commit 3134591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ConceptSchemeSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ export default {
if (filter) {
const keywordsForScheme = (scheme) => _.flattenDeep(_.concat([], Object.values(scheme.prefLabel || {}), Object.values(scheme.altLabel || {}), scheme.notation || [])).map(k => k.toLowerCase())
this.filteredSchemes = this._schemes.filter(
scheme => keywordsForScheme(scheme).find(keyword => keyword.startsWith(filter)),
scheme => keywordsForScheme(scheme).find(keyword => keyword.includes(filter)),
)
} else {
this.filteredSchemes = this._schemes.filter(
Expand Down

0 comments on commit 3134591

Please sign in to comment.