From 23773b149546e9187b2e2cc090dd6bf38fdbf3c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olov=20Ylinenp=C3=A4=C3=A4?= Date: Fri, 2 Aug 2024 14:38:31 +0200 Subject: [PATCH 1/2] Display spelling suggestions in cataloging client --- .../src/components/search/search-form.vue | 2 +- .../src/components/search/search-result.vue | 22 +++++++++++++++++-- vue-client/src/resources/json/i18n.json | 1 + 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/vue-client/src/components/search/search-form.vue b/vue-client/src/components/search/search-form.vue index a435aa5ab..a5aab07dd 100644 --- a/vue-client/src/components/search/search-form.vue +++ b/vue-client/src/components/search/search-form.vue @@ -31,7 +31,7 @@ export default { }, helpToggled: false, vocabUrl: 'https://id.kb.se/vocab/', - staticProps: { _limit: 20 }, + staticProps: { _limit: 20, _spell: true }, searchPhrase: '', searchParams: PropertyMappings, activeSearchParam: null, diff --git a/vue-client/src/components/search/search-result.vue b/vue-client/src/components/search/search-result.vue index ae6d74f98..3285b667c 100644 --- a/vue-client/src/components/search/search-result.vue +++ b/vue-client/src/components/search/search-result.vue @@ -1,5 +1,5 @@