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>
Fri, 6 Sep 2019 18:21:21 +0000 (14:21 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/catalog/search-context.ts

index 7dbe6f8..f5bc452 100644 (file)
@@ -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) {