From: Bill Erickson Date: Wed, 31 Oct 2018 21:34:07 +0000 (-0400) Subject: ang6 catalog use correct search_format filter X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fc93856f5d27c8759e1ce07547d21ebc0f9552ad;p=working%2FEvergreen.git ang6 catalog use correct search_format filter Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/share/catalog/search-context.ts b/Open-ILS/src/eg2/src/app/share/catalog/search-context.ts index 2d3c9adfc5..14856fd5f4 100644 --- a/Open-ILS/src/eg2/src/app/share/catalog/search-context.ts +++ b/Open-ILS/src/eg2/src/app/share/catalog/search-context.ts @@ -192,6 +192,9 @@ export class CatalogTermContext { matchOp: string[]; format: string; available = false; + // TODO: configurable + // format limiter default to using the search_format filter + formatCtype = 'search_format'; ccvmFilters: {[ccvmCode: string]: string[]}; facetFilters: FacetFilter[]; copyLocations: string[]; // ID's, but treated as strings in the UI. @@ -648,7 +651,7 @@ export class CatalogSearchContext { } if (ts.format) { - str += ' search_format(' + ts.format + ')'; + str += ' ' + ts.formatCtype + '(' + ts.format + ')'; } if (this.global) {