From b5cb3cdb437911b733337b8aed051c31f1ebb546 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 --- Open-ILS/src/eg2/src/app/share/catalog/search-context.ts | 4 ++++ Open-ILS/src/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 4468d38bd3..b14d3c817a 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 @@ -283,6 +283,14 @@ +
+
+ +
+
-- 2.11.0