From 3134591b3fffe28ea60ca4b4d6633428436594b5 Mon Sep 17 00:00:00 2001 From: Stefan Peters Date: Tue, 22 Feb 2022 12:04:15 +0100 Subject: [PATCH] ConceptSchemeSelection: Allow searching for part of label (#674) --- src/components/ConceptSchemeSelection.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ConceptSchemeSelection.vue b/src/components/ConceptSchemeSelection.vue index 55fa2884..63fc425a 100644 --- a/src/components/ConceptSchemeSelection.vue +++ b/src/components/ConceptSchemeSelection.vue @@ -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(