LP1976557: No Holdings View For the Pre-cat Bib user/jboyer/lp1976557_no_yuo_neg_one
authorJason Boyer <JBoyer@equinoxOLI.org>
Wed, 1 Jun 2022 20:30:01 +0000 (16:30 -0400)
committerJason Boyer <JBoyer@equinoxOLI.org>
Wed, 1 Jun 2022 20:30:01 +0000 (16:30 -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>
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 => {