From 6e2aa388bc713cbb05e1425da91954f499560f56 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 89791faea7..a3995c6828 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. @@ -611,7 +614,7 @@ export class CatalogSearchContext { } if (ts.format) { - str += ' format(' + ts.format + ')'; + str += ' ' + ts.formatCtype + '(' + ts.format + ')'; } if (this.global) { -- 2.11.0