Using the Shelf Browse tab on the record detail page in the Angular
staff catalog no longer clobbers the active search, allowing the search
navigation buttons (Next, Previous, etc.) to continue working.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
ngOnInit() {
this.searchContext = this.staffCat.searchContext;
+ if (this.bibSummary) {
+ // Avoid clobbering the active search when browsing in
+ // the context of a specific record.
+ this.searchContext =
+ this.staffCat.cloneContext(this.searchContext);
+ }
+
for (let idx = 0; idx < this.rowCount; idx++) {
this.rowIndexList.push(idx);
}