From: Bill Erickson Date: Tue, 28 May 2019 15:00:39 +0000 (-0400) Subject: LP1823367 Catalog ident query improvements X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b1b3d5a59a47b7fbf9a7f104bd8d6714790980f7;p=working%2FEvergreen.git LP1823367 Catalog ident query improvements * Default to ISBN search in the identifier query form. * Remove the disabled "call number browse" entry from the identifier query type selector, since CN browse now has a dedicated tab. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.html index 18af372284..02ea5d255e 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.html @@ -224,7 +224,6 @@ TODO focus search input [(ngModel)]="context.identSearch.queryType"> - diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.ts index c8cee02105..0e8dd5a520 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.ts @@ -49,6 +49,10 @@ export class SearchFormComponent implements OnInit, AfterViewInit { // Avoid changing the tab in the lifecycle hook thread. setTimeout(() => { + if (this.context.identSearch.queryType === '') { + this.context.identSearch.queryType = 'identifier|isbn'; + } + // Apply a tab if none was already specified if (!this.searchTab) { // Assumes that only one type of search will be searchable