LP#1849212 Angular Search Course Reserves Facet user/zbanks/lp1849212-angular-search-course-reserves-facet
authorZavier Banks <zbanks@catalyte.io>
Thu, 21 Nov 2019 22:28:04 +0000 (22:28 +0000)
committerZavier Banks <zbanks@catalyte.io>
Thu, 21 Nov 2019 22:28:04 +0000 (22:28 +0000)
I, yet again, forgot to add an important file.
It has since been added, and the new facet works
as it should.

Signed-off-by: Zavier Banks <zbanks@catalyte.io>
Open-ILS/src/eg2/src/app/share/catalog/catalog.service.ts

index d451308..1c44167 100644 (file)
@@ -128,7 +128,7 @@ export class CatalogService {
             }
         }
         console.debug(`search query: ${fullQuery}`);
-
+        console.log("CTX", ctx, method, this.course_filtered_query)
         if (ctx.isStaff) {
             method += '.staff';
         }
@@ -168,6 +168,7 @@ export class CatalogService {
         this.course_filtered_query = " (";
         var index = 0;
         this.pcrud.retrieveAll("acmcm").subscribe(result =>{
+            console.log("Result", result)
             if(index==0){
                 this.course_filtered_query += '(id:'+ result.item()+')'
             }