lp1839341 - Item Location Integration
authorKyle Huckins <khuckins@catalyte.io>
Thu, 21 Nov 2019 19:52:43 +0000 (19:52 +0000)
committerJane Sandberg <sandbergja@gmail.com>
Thu, 13 Oct 2022 16:04:00 +0000 (09:04 -0700)
- Integrate Item Location Selector for acpl-linked org
unit setting value editing in the Org Unit Setting Editor.

Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
 Changes to be committed:
modified:   Open-ILS/src/eg2/src/app/staff/admin/local/org-unit-settings/edit-org-unit-setting-dialog.component.html
modified:   Open-ILS/src/eg2/src/app/staff/admin/local/org-unit-settings/edit-org-unit-setting-dialog.component.ts
modified:   Open-ILS/src/eg2/src/app/staff/admin/local/org-unit-settings/org-unit-settings.module.ts

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Open-ILS/src/eg2/src/app/staff/admin/local/org-unit-settings/edit-org-unit-setting-dialog.component.html
Open-ILS/src/eg2/src/app/staff/admin/local/org-unit-settings/edit-org-unit-setting-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/admin/local/org-unit-settings/org-unit-settings.module.ts

index bed349f..eae497c 100644 (file)
                     <div class="input-group-text" i18n>Value</div>
                       <ng-container [ngSwitch]="entry.fmClass">
                         <ng-container *ngSwitchCase="'acpl'">
-                          <eg-combobox placeholder="Select a value" [idlClass]="entry.fmClass" idlField="name" idlIncludeLibraryInLabel="owning_lib"
-                            [asyncSupportsEmptyTermClick]="true" [displayTemplate]="fmClassLabel"
-                            (onChange)="setInputValue($event ? $event.id : null)">
-                          </eg-combobox>
+                          <eg-item-location-select [permFilter]="entry.view_perm"
+                            [contextOrgId]="entryContext" (valueChange)="setInputValue($event ? $event.id() : null)">
+                          </eg-item-location-select>
                         </ng-container>
                         <ng-container *ngSwitchDefault>
                           <eg-combobox placeholder="Select a value" [idlClass]="entry.fmClass" idlField="name"
index ce2add0..81f79fe 100644 (file)
@@ -39,8 +39,6 @@ export class EditOuSettingDialogComponent extends DialogComponent {
     }
 
     setInputValue(inputValue) {
-        console.log("In Input value");
-        console.log(inputValue);
         this.entryValue = inputValue;
     }
 
index 62ee75e..dc3531a 100644 (file)
@@ -6,6 +6,7 @@ import {EditOuSettingDialogComponent} from './edit-org-unit-setting-dialog.compo
 import {OuSettingHistoryDialogComponent} from './org-unit-setting-history-dialog.component';
 import {OrgUnitSettingsRoutingModule} from './org-unit-settings-routing.module';
 import {OuSettingJsonDialogComponent} from './org-unit-setting-json-dialog.component';
+import {ItemLocationSelectModule} from '@eg/share/item-location-select/item-location-select.module';
 
 @NgModule({
     declarations: [
@@ -16,6 +17,7 @@ import {OuSettingJsonDialogComponent} from './org-unit-setting-json-dialog.compo
     ],
     imports: [
         AdminCommonModule,
+        ItemLocationSelectModule,
         OrgUnitSettingsRoutingModule,
         TreeModule
     ],