From: Galen Charlton Date: Fri, 17 Jan 2020 16:07:20 +0000 (-0500) Subject: hook up more widgets to search form X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6d672f7db51fb39ae9e0c60093ffea78076f8759;p=working%2FEvergreen.git hook up more widgets to search form - linked-field selectors - id & int Signed-off-by: Galen Charlton --- 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; + } } } );