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=37fc64273de20b2d834eba5b13f3d17fbfd0511c;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 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) {