LP1819745 Ang staff result page link repairs
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / share / catalog / catalog-url.service.ts
index a59b7fc..91922d4 100644 (file)
@@ -4,6 +4,7 @@ import {OrgService} from '@eg/core/org.service';
 import {CatalogSearchContext, CatalogBrowseContext, CatalogMarcContext,
    CatalogTermContext, FacetFilter} from './search-context';
 import {CATALOG_CCVM_FILTERS} from './search-context';
+import {HashParams} from '@eg/share/util/hash-params';
 
 @Injectable()
 export class CatalogUrlService {
@@ -130,6 +131,10 @@ export class CatalogUrlService {
         return params;
     }
 
+    fromUrlHash(params: any): CatalogSearchContext {
+        return this.fromUrlParams(new HashParams(params));
+    }
+
     /**
      * Creates a new search context from the active route params.
      */