From: Bill Erickson Date: Mon, 14 Sep 2020 14:52:05 +0000 (-0400) Subject: LP1468132 MARC search honors search scope X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9dc1e709a15a926ea2e31fcb7c9daf4e5d3c7557;p=evergreen%2Ftadl.git LP1468132 MARC search honors search scope Adds a 'Results from All Libraries' checkbox to the MARC search form in the Angular staff catalog. When unchecked, the MARC search will limit to results with holdings in the search scope. Signed-off-by: Bill Erickson Signed-off-by: Michele Morgan Signed-off-by: Jason Boyer --- diff --git a/Open-ILS/src/eg2/src/app/share/catalog/search-context.ts b/Open-ILS/src/eg2/src/app/share/catalog/search-context.ts index d94e5e2721..908f203ffa 100644 --- a/Open-ILS/src/eg2/src/app/share/catalog/search-context.ts +++ b/Open-ILS/src/eg2/src/app/share/catalog/search-context.ts @@ -492,6 +492,10 @@ export class CatalogSearchContext { org_unit: this.searchOrg.id() }; + if (this.global) { + args.depth = this.org.root().ou_type().depth(); + } + if (this.sort) { const parts = this.sort.split(/\./); args.sort = parts[0]; // title, author, etc. 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 51f84e1c6d..03e75c3982 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 @@ -307,6 +307,14 @@ +
+
+ +
+