From: Bill Erickson Date: Wed, 16 Dec 2020 21:16:47 +0000 (-0800) Subject: LP1908444 Support browse search record result sorting X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8442ed750842a882920162234b89dcb14903ef4a;p=evergreen%2Fpines.git 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 --- 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':