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>
Wed, 27 Oct 2021 15:42:47 +0000 (11:42 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/catalog/search-context.ts

index 2d3c9ad..14856fd 100644 (file)
@@ -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.
@@ -648,7 +651,7 @@ export class CatalogSearchContext {
         }
 
         if (ts.format) {
-            str += ' search_format(' + ts.format + ')';
+            str += ' ' + ts.formatCtype + '(' + ts.format + ')';
         }
 
         if (this.global) {