LP1852782 Vandelay MARC editor module repair
authorBill Erickson <berickxx@gmail.com>
Mon, 30 Dec 2019 21:35:42 +0000 (16:35 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 21 Feb 2020 16:44:38 +0000 (11:44 -0500)
With the addition of Fast Add item support, the MARC editor requires
access to the HoldingsModule, which was not importe directly into
Vandelay, unlike the catalog.  This patch tells the MARC editor to
import the module itself.

Fixes:

QueuedRecordComponent.html:22
NullInjectorError: StaticInjectorError(BaseModule)[MarcEditorComponent
-> HoldingsService]:
  StaticInjectorError(Platform: core)[MarcEditorComponent ->
  HoldingsService]:
      NullInjectorError: No provider for HoldingsService!

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/eg2/src/app/staff/share/marc-edit/marc-edit.module.ts

index d9d2feb..4f2a39f 100644 (file)
@@ -11,6 +11,7 @@ import {EditableContentComponent} from './editable-content.component';
 import {AuthorityLinkingDialogComponent} from './authority-linking-dialog.component';
 import {MarcEditorDialogComponent} from './editor-dialog.component';
 import {PhysCharDialogComponent} from './phys-char-dialog.component';
+import {HoldingsModule} from '@eg/staff/share/holdings/holdings.module';
 
 @NgModule({
     declarations: [
@@ -26,7 +27,8 @@ import {PhysCharDialogComponent} from './phys-char-dialog.component';
     ],
     imports: [
         StaffCommonModule,
-        CommonWidgetsModule
+        CommonWidgetsModule,
+        HoldingsModule
     ],
     exports: [
         MarcEditorComponent