LP#1775466 Splash page catalog search routes to angjs version
authorBill Erickson <berickxx@gmail.com>
Mon, 27 Aug 2018 21:33:25 +0000 (17:33 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 27 Aug 2018 21:33:25 +0000 (17:33 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/splash.component.ts

index 6756b65..c53d62f 100644 (file)
@@ -23,10 +23,17 @@ export class StaffSplashComponent implements OnInit {
     searchCatalog(): void {
         if (!this.catSearchQuery) { return; }
 
+        /* Route to angular6 catalog
         this.router.navigate(
             ['/staff/catalog/search'],
             {queryParams: {query : this.catSearchQuery}}
         );
+        */
+
+        // Route to AngularJS / TPAC catalog
+        window.location.href = 
+            '/eg/staff/cat/catalog/results?query=' +
+            encodeURIComponent(this.catSearchQuery);
     }
 }