LP # 1965447: adjust scoping of item tags Angular Holdings Editor
authorJessica Woolford <jwoolford@biblio.org>
Fri, 9 Dec 2022 15:54:43 +0000 (10:54 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 23 Mar 2023 18:53:13 +0000 (14:53 -0400)
Scopes to the org unit and ancestors of the signed-in
user's workstation when adding a new item tag.

Signed-off-by: Jessica Woolford <jwoolford@biblio.org>
Signed-off-by: Beth Willis <willis@noblenet.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/eg2/src/app/staff/share/holdings/copy-tags-dialog.component.ts

index 7c14f16..385d9f3 100644 (file)
@@ -82,7 +82,8 @@ export class CopyTagsDialogComponent
                     '-or': [
                         {value: {'ilike': `%${term}%`}},
                         {label: {'ilike': `%${term}%`}}
-                    ]
+                    ],
+                    owner: this.org.ancestors(this.auth.user().ws_ou(), true)
                 },
                 {order_by: {acpt: 'label'}}
             ).pipe(map(copyTag => {