From d6dbcd67c0c73ca835acee407607fa53cc2faeb4 Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Thu, 25 Jan 2024 14:20:57 -0500 Subject: [PATCH] LP1582720: Clarify Staff Client Uniquification Signed-off-by: Jason Boyer Signed-off-by: Jane Sandberg --- Open-ILS/src/eg2/src/app/share/catalog/bib-record.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/share/catalog/bib-record.service.ts b/Open-ILS/src/eg2/src/app/share/catalog/bib-record.service.ts index 7394c52976..d863540fcc 100644 --- a/Open-ILS/src/eg2/src/app/share/catalog/bib-record.service.ts +++ b/Open-ILS/src/eg2/src/app/share/catalog/bib-record.service.ts @@ -147,6 +147,9 @@ export class BibRecordService { || this.allowUnfillableHolds; // De-duplicate urls, frequently caused by multiple subfield 9's + // Note that .forEach() and .every() pass their callback functions the + // parameters (element, index, array) such that element = array[index] + // and they need to be distinctly named when sharing scope. bibSummary.urls.forEach(function (elb, indb, aryb) { if(summary.eResourceUrls.every((els, inds, arys) => elb.href !== els.href || elb.note !== els.note || elb.label !== els.label)) { -- 2.43.2