From afe12c5ca9c3dde1d180991d2bb34966d0fa4965 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 14 Sep 2020 10:52:05 -0400 Subject: [PATCH] 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 --- Open-ILS/src/eg2/src/app/share/catalog/search-context.ts | 4 ++++ .../eg2/src/app/staff/catalog/search-form.component.html | 8 ++++++++ 2 files changed, 12 insertions(+) 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 @@ +
+
+ +
+
-- 2.43.2