From 9dc1e709a15a926ea2e31fcb7c9daf4e5d3c7557 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 ++++ 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 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 @@ +
+
+ +
+
-- 2.11.0