From 9fc17b6b65600185823980e4c26e6553d2ea370d Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 8 Jul 2020 18:34:14 -0400 Subject: [PATCH] fixes to 'not contains' operator - now works in the main search form - now available for vendor and user searches Signed-off-by: Galen Charlton --- .../eg2/src/app/staff/acq/search/acq-search-form.component.html | 2 +- Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.service.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search-form.component.html b/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search-form.component.html index 8b60c70219..4d478a44c7 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search-form.component.html +++ b/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search-form.component.html @@ -46,7 +46,7 @@ - + diff --git a/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.service.ts b/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.service.ts index 860c1d5c0e..32ad107799 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.service.ts @@ -163,7 +163,12 @@ export class AcqSearchService { searchTerm[searchField] = term.value1; } if (term.op !== '') { - searchTerm[term.op] = true; + if (term.op === '__not,__fuzzy') { + searchTerm['__not'] = true; + searchTerm['__fuzzy'] = true; + } else { + searchTerm[term.op] = true; + } } if (term.is_date) { searchTerm['__castdate'] = true; -- 2.11.0