From: Bill Erickson Date: Fri, 31 Jul 2020 17:23:32 +0000 (-0400) Subject: LP1889694 catalog record summary condensed WIP X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bfc94c6032a8b570946ec4c535c550f2d38e00ec;p=working%2FEvergreen.git LP1889694 catalog record summary condensed WIP Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/share/catalog/catalog.service.ts b/Open-ILS/src/eg2/src/app/share/catalog/catalog.service.ts index 4fe389e625..805a0bb589 100644 --- a/Open-ILS/src/eg2/src/app/share/catalog/catalog.service.ts +++ b/Open-ILS/src/eg2/src/app/share/catalog/catalog.service.ts @@ -142,6 +142,7 @@ export class CatalogService { }, fullQuery, true ).toPromise() .then(result => this.applyResultData(ctx, result)) + .then(_ => this.fetchFieldHighlights(ctx)) .then(_ => { ctx.searchState = CatalogSearchState.COMPLETE; this.onSearchComplete.emit(ctx); @@ -238,13 +239,9 @@ export class CatalogService { // them to bib IDs for highlighting. ids = ctx.currentResultIds(); if (ctx.termSearch.groupByMetarecord) { - // TODO: at this point in loading we don't yet - // have result records to comb through - /* - ids = ids.map(mrId => - ctx.result.records.filter(r => mrId === r.metabibId)[0].id - ); - */ + // The 4th slot in the result ID reports the master record + // for the metarecord in question. Sometimes it's null? + ids = ctx.result.ids.map(id => id[4]).filter(id => id !== null); } }