From: Galen Charlton Date: Wed, 8 Jul 2020 22:34:14 +0000 (-0400) Subject: fixes to 'not contains' operator X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9fc17b6b65600185823980e4c26e6553d2ea370d;p=working%2FEvergreen.git fixes to 'not contains' operator - now works in the main search form - now available for vendor and user searches Signed-off-by: Galen Charlton --- 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;