LP1976557: No Holdings View For the Pre-cat Bib
authorJason Boyer <JBoyer@equinoxOLI.org>
Wed, 1 Jun 2022 20:30:01 +0000 (16:30 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 7 Jul 2022 15:43:13 +0000 (11:43 -0400)
Don't waste the time or resources to load every pre-cat in the system when
there isn't much you can do with them anyway.

Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>

Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts

index d767860..56a22fb 100644 (file)
@@ -527,7 +527,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
 
     // Grab call numbers, copies, and related data.
     fetchHoldings(pager: Pager): Observable<any> {
-        if (!this.recordId) { return of([]); }
+        if (!this.recordId || this.recordId == -1) { return of([]); }
 
         return new Observable<any>(observer => {