From: Bill Erickson Date: Wed, 27 Mar 2019 16:39:53 +0000 (-0400) Subject: Debug logs for angular catalog circa 3.3 continued X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5ecb0a9ba5a469dc6a79af433d238d65bfbc1625;p=working%2FEvergreen.git Debug logs for angular catalog circa 3.3 continued 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 5d57e6846a..1f5dbf4a80 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 @@ -209,10 +209,18 @@ export class CatalogService { } console.debug('fetched summary for record index', idx); + console.debug('index type is ', typeof idx); if (ctx.result.records) { // May be reset when quickly navigating results. ctx.result.records[idx] = summary; + console.debug('added summary to records at', + ctx.result.records[idx]); + } else { + console.debug('ctx.result.records is unset!'); } + + console.debug('summarized so far', ctx.result.records.length); + })).toPromise(); } diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.ts index b2cc22d70d..511b55637d 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.ts @@ -135,6 +135,7 @@ export class ResultsComponent implements OnInit, OnDestroy { fleshSearchResults(): void { console.log('fleshSearchResults() 1'); const records = this.searchContext.result.records; + console.log('fleshSearchResults() 1.5', records.length); if (!records || records.length === 0) { return; } console.log('fleshSearchResults() 2');