From fc93856f5d27c8759e1ce07547d21ebc0f9552ad Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 31 Oct 2018 17:34:07 -0400 Subject: [PATCH] ang6 catalog use correct search_format filter Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/share/catalog/search-context.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- 2.11.0