From 6d672f7db51fb39ae9e0c60093ffea78076f8759 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 17 Jan 2020 11:07:20 -0500 Subject: [PATCH] hook up more widgets to search form - linked-field selectors - id & int Signed-off-by: Galen Charlton --- .../src/eg2/src/app/staff/acq/search/acq-search.component.html | 8 +++++++- Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.component.ts | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.component.html b/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.component.html index 75d10d927c..b8b7752970 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.component.html +++ b/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.component.html @@ -27,11 +27,17 @@
+ - + + + +
diff --git a/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.component.ts index 52c8eaeeeb..33b9ed56a8 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/search/acq-search.component.ts @@ -19,6 +19,7 @@ export class AcqSearchComponent implements OnInit, AfterViewInit { hints = ['jub', 'acqpl', 'acqpo', 'acqinv', 'acqlid']; availableSearchFields = {}; searchTermDatatypes = {}; + searchFieldLinkedClasses = {}; searchType = ''; validSearchTypes = ['lineitems', 'purchaseorders', 'invoices', 'selectionlists']; defaultSearchType = 'lineitems'; @@ -77,6 +78,9 @@ export class AcqSearchComponent implements OnInit, AfterViewInit { datatype: field.datatype }; self.searchTermDatatypes[hint + ':' + field.name] = field.datatype; + if (field.datatype === 'link') { + self.searchFieldLinkedClasses[hint + ':' + field.name] = field.class; + } } } ); -- 2.11.0