From 45119e4e465887315b8841145081bb378d4527ff Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Tue, 24 Jan 2023 16:22:28 +0000 Subject: [PATCH] LP2003742 Shelf browse in angular catalog uses deleted call numbers Fixes the call number browse. To determine the call number for which the browse list displays, deleted call numbers are not removed from the query. To test in Concerto: 1. Go to a bib and click on the shelf browse tab. Notice where the list begins. 2. Add a new item with a call number less thatn the starting point of the browse list. For example, if the list begins at 780, create a call number at 100. 3. Refresh the browse screen and notice that the list now begins at the lower call number. 4. Delete the item and call number that was created, the list still begins at the lower call number. 5. Apply the patch. 6. The list should now begin at it's original call number. Signed-off-by: Garry Collum Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/staff/catalog/cnbrowse/results.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/cnbrowse/results.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/cnbrowse/results.component.ts index b9e2076083..6dad56433c 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/cnbrowse/results.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/cnbrowse/results.component.ts @@ -85,7 +85,7 @@ export class CnBrowseResultsComponent implements OnInit, OnDestroy { } return this.pcrud.search('acn', - {record: this.bibSummary.id, owning_lib: org}, + {record: this.bibSummary.id, owning_lib: org, deleted: 'f'}, {limit: 1} ).toPromise().then(cn => this.browseCn = cn ? cn.label() : this.bibSummary.bibCallNumber -- 2.11.0