From cc38ed75d792b885a8c54269984a53f98d1dca1a 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 7dbe6f8d86..f5bc452b0d 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 @@ -186,6 +186,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. @@ -598,7 +601,7 @@ export class CatalogSearchContext { } if (ts.format) { - str += ' format(' + ts.format + ')'; + str += ' ' + ts.formatCtype + '(' + ts.format + ')'; } if (this.global) { -- 2.11.0