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=afe12c5ca9c3dde1d180991d2bb34966d0fa4965;p=Evergreen.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 57d9db6573..73dfbd7311 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 @@ -490,6 +490,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 ad73bafaed..1158ba09a1 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 @@ -298,6 +298,14 @@ +
+
+ +
+