ang6 catalog use correct search_format filter
authorBill Erickson <berickxx@gmail.com>
Wed, 31 Oct 2018 21:34:07 +0000 (17:34 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 8 Nov 2018 19:01:13 +0000 (14:01 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/catalog/search-context.ts

index 8b1a727..c325ecd 100644 (file)
@@ -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) {