From 902df46a73dfbf00a4b4b1ee68b846c6dd58607d 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 | 7 ++++++- 1 file changed, 6 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 8b1a727f62..c325ecdc97 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 @@ -44,6 +44,11 @@ export class CatalogSearchContext { joinOp: string[]; matchOp: string[]; format: string; + + // TODO: configurable + // format limiter default to using the search_format filter + formatCtype = 'search_format'; + searchOrg: IdlObject; ccvmFilters: {[ccvmCode: string]: string[]}; facetFilters: FacetFilter[]; @@ -166,7 +171,7 @@ export class CatalogSearchContext { } if (this.format) { - str += ' format(' + this.format + ')'; + str += ' ' + this.formatCtype + '(' + this.format + ')'; } if (this.global) { -- 2.11.0