From 8442ed750842a882920162234b89dcb14903ef4a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 16 Dec 2020 13:16:47 -0800 Subject: [PATCH] LP1908444 Support browse search record result sorting Allow users to sort the set of bib records which link to a browse heading via the existing sort options. Signed-off-by: Bill Erickson Signed-off-by: Garry Collum Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/share/catalog/search-context.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/share/catalog/search-context.ts b/Open-ILS/src/eg2/src/app/share/catalog/search-context.ts index 908f203ffa..4552d5e215 100644 --- a/Open-ILS/src/eg2/src/app/share/catalog/search-context.ts +++ b/Open-ILS/src/eg2/src/app/share/catalog/search-context.ts @@ -686,10 +686,17 @@ export class CatalogSearchContext { this.browseSearch.reset(); this.identSearch.reset(); this.cnBrowseSearch.reset(); - this.termSearch.hasBrowseEntry = ''; this.termSearch.browseEntry = null; this.termSearch.fromMetarecord = null; this.termSearch.facetFilters = []; + + if (this.termSearch.query[0] !== '') { + // If the user has entered a query, it takes precedence + // over the source browse entry or source metarecord. + this.termSearch.hasBrowseEntry = null; + this.termSearch.fromMetarecord = null; + } + break; case 'ident': -- 2.11.0