LP2003742 Shelf browse in angular catalog uses deleted call numbers
authorGarry Collum <gcollum@gmail.com>
Tue, 24 Jan 2023 16:22:28 +0000 (16:22 +0000)
committerBill Erickson <berickxx@gmail.com>
Mon, 27 Feb 2023 18:02:07 +0000 (13:02 -0500)
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 <gcollum@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>

Open-ILS/src/eg2/src/app/staff/catalog/cnbrowse/results.component.ts

index b9e2076..6dad564 100644 (file)
@@ -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