LP1904788 Browse paging skips authority only results
authorBill Erickson <berickxx@gmail.com>
Wed, 18 Nov 2020 20:36:30 +0000 (15:36 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 18 Nov 2020 22:41:02 +0000 (17:41 -0500)
Avoid attempting to load record results for authority-only browse
results when paging through headings in the record list-for-entry page.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.ts

index a7cd2dc..b73e7b5 100644 (file)
@@ -174,7 +174,8 @@ export class ResultsComponent implements OnInit, OnDestroy {
         let target, previous;
 
         this.browseResults.forEach(result => {
-            if (!result.browse_entry) { return; } // ignore pivot entries
+            // ignore pivot and authority-only entries
+            if (!result.sources) { return; }
 
             if (previous) {
                 if (prev) {