LP1852782 Avoid unnecessary catalog pagination search
authorBill Erickson <berickxx@gmail.com>
Fri, 6 Dec 2019 20:27:28 +0000 (15:27 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 21 Feb 2020 16:44:38 +0000 (11:44 -0500)
Prevent the record detail paginator from trying to execute a search (to
find the current details) as users type in new search params in the
record detail seach form.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/eg2/src/app/staff/catalog/record/pagination.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html

index b3e9a9c..88214cd 100644 (file)
@@ -94,10 +94,6 @@ export class RecordPaginationComponent implements OnInit {
 
             return this.refreshSearch().then(ok => {
                 this.index = this.searchContext.indexForResult(this.id);
-                if (this.index === null) {
-                    console.warn(
-                        'No search results found containing the focused record.');
-                }
                 resolve();
             });
         });
index 10f8c7c..49ec2e5 100644 (file)
   </div>
   <div class="row ml-0 mr-0">
     <div id='staff-catalog-bib-navigation'>
-      <div *ngIf="searchContext.isSearchable()">
-        <eg-catalog-record-pagination [recordId]="recordId" [recordTab]="recordTab">
-        </eg-catalog-record-pagination>
-      </div>
+      <eg-catalog-record-pagination [recordId]="recordId" [recordTab]="recordTab">
+      </eg-catalog-record-pagination>
     </div>
     <!-- push the actions component to the right -->
     <div class="flex-1"></div>