From cf67191123050695fbedf1595acc2a76129c92df Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sun, 19 Jan 2020 15:31:23 -0500 Subject: [PATCH] hook up __between operator Signed-off-by: Galen Charlton --- .../eg2/src/app/staff/acq/search/acq-search-form.component.html | 8 ++++++++ Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.service.ts | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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 2d686b5229..b658250c8a 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 @@ -22,6 +22,7 @@ + @@ -45,6 +46,13 @@ + + and + + + + 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 3f0d54697b..47233c8686 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 @@ -107,7 +107,11 @@ export class AcqSearchService { const searchTerm: Object = {}; const recType = term.field.split(':')[0]; const searchField = term.field.split(':')[1]; - searchTerm[searchField] = term.value1; + if (term.op === '__between') { + searchTerm[searchField] = [term.value1, term.value2]; + } else { + searchTerm[searchField] = term.value1; + } if (term.op !== '') { searchTerm[term.op] = true; } -- 2.11.0