From: Bill Erickson <berickxx@gmail.com>
Date: Fri, 6 Dec 2019 20:27:28 +0000 (-0500)
Subject: LP1852782 Avoid unnecessary catalog pagination search
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=41231d34639ac05d8b811ac5afa87e1899d4bd62;p=evergreen%2Fjoelewis.git

LP1852782 Avoid unnecessary catalog pagination search

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>
---

diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/pagination.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/record/pagination.component.ts
index b3e9a9c53e..88214cd805 100644
--- a/Open-ILS/src/eg2/src/app/staff/catalog/record/pagination.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/pagination.component.ts
@@ -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();
             });
         });
diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html
index 10f8c7c3b1..49ec2e55f5 100644
--- a/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html
@@ -11,10 +11,8 @@
   </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>