mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
Fix merge issues
This commit is contained in:
@@ -10,6 +10,7 @@ import { ComcolModule } from '../shared/comcol/comcol.module';
|
|||||||
import { ThemedBrowseByMetadataPageComponent } from './browse-by-metadata-page/themed-browse-by-metadata-page.component';
|
import { ThemedBrowseByMetadataPageComponent } from './browse-by-metadata-page/themed-browse-by-metadata-page.component';
|
||||||
import { ThemedBrowseByDatePageComponent } from './browse-by-date-page/themed-browse-by-date-page.component';
|
import { ThemedBrowseByDatePageComponent } from './browse-by-date-page/themed-browse-by-date-page.component';
|
||||||
import { ThemedBrowseByTitlePageComponent } from './browse-by-title-page/themed-browse-by-title-page.component';
|
import { ThemedBrowseByTitlePageComponent } from './browse-by-title-page/themed-browse-by-title-page.component';
|
||||||
|
import { DsoPageModule } from '../shared/dso-page/dso-page.module';
|
||||||
|
|
||||||
const ENTRY_COMPONENTS = [
|
const ENTRY_COMPONENTS = [
|
||||||
// put only entry components that use custom decorator
|
// put only entry components that use custom decorator
|
||||||
@@ -27,7 +28,8 @@ const ENTRY_COMPONENTS = [
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
ComcolModule,
|
ComcolModule,
|
||||||
SharedModule
|
SharedModule,
|
||||||
|
DsoPageModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
BrowseBySwitcherComponent,
|
BrowseBySwitcherComponent,
|
||||||
|
@@ -16,6 +16,7 @@ import { StatisticsModule } from '../statistics/statistics.module';
|
|||||||
import { CollectionFormModule } from './collection-form/collection-form.module';
|
import { CollectionFormModule } from './collection-form/collection-form.module';
|
||||||
import { ThemedCollectionPageComponent } from './themed-collection-page.component';
|
import { ThemedCollectionPageComponent } from './themed-collection-page.component';
|
||||||
import { ComcolModule } from '../shared/comcol/comcol.module';
|
import { ComcolModule } from '../shared/comcol/comcol.module';
|
||||||
|
import { DsoPageModule } from '../shared/dso-page/dso-page.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -26,6 +27,7 @@ import { ComcolModule } from '../shared/comcol/comcol.module';
|
|||||||
EditItemPageModule,
|
EditItemPageModule,
|
||||||
CollectionFormModule,
|
CollectionFormModule,
|
||||||
ComcolModule,
|
ComcolModule,
|
||||||
|
DsoPageModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
CollectionPageComponent,
|
CollectionPageComponent,
|
||||||
|
@@ -19,6 +19,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
ThemedCollectionPageSubCollectionListComponent
|
ThemedCollectionPageSubCollectionListComponent
|
||||||
} from './sub-collection-list/themed-community-page-sub-collection-list.component';
|
} from './sub-collection-list/themed-community-page-sub-collection-list.component';
|
||||||
|
import { DsoPageModule } from '../shared/dso-page/dso-page.module';
|
||||||
|
|
||||||
const DECLARATIONS = [CommunityPageComponent,
|
const DECLARATIONS = [CommunityPageComponent,
|
||||||
ThemedCommunityPageComponent,
|
ThemedCommunityPageComponent,
|
||||||
@@ -37,6 +38,7 @@ const DECLARATIONS = [CommunityPageComponent,
|
|||||||
StatisticsModule.forRoot(),
|
StatisticsModule.forRoot(),
|
||||||
CommunityFormModule,
|
CommunityFormModule,
|
||||||
ComcolModule,
|
ComcolModule,
|
||||||
|
DsoPageModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
...DECLARATIONS
|
...DECLARATIONS
|
||||||
|
@@ -20,6 +20,7 @@ import { JournalVolumeSidebarSearchListElementComponent } from './item-list-elem
|
|||||||
import { JournalIssueSidebarSearchListElementComponent } from './item-list-elements/sidebar-search-list-elements/journal-issue/journal-issue-sidebar-search-list-element.component';
|
import { JournalIssueSidebarSearchListElementComponent } from './item-list-elements/sidebar-search-list-elements/journal-issue/journal-issue-sidebar-search-list-element.component';
|
||||||
import { JournalSidebarSearchListElementComponent } from './item-list-elements/sidebar-search-list-elements/journal/journal-sidebar-search-list-element.component';
|
import { JournalSidebarSearchListElementComponent } from './item-list-elements/sidebar-search-list-elements/journal/journal-sidebar-search-list-element.component';
|
||||||
import { ItemSharedModule } from '../../item-page/item-shared.module';
|
import { ItemSharedModule } from '../../item-page/item-shared.module';
|
||||||
|
import { DsoPageModule } from '../../shared/dso-page/dso-page.module';
|
||||||
|
|
||||||
const ENTRY_COMPONENTS = [
|
const ENTRY_COMPONENTS = [
|
||||||
// put only entry components that use custom decorator
|
// put only entry components that use custom decorator
|
||||||
@@ -47,7 +48,8 @@ const ENTRY_COMPONENTS = [
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
ItemSharedModule,
|
ItemSharedModule,
|
||||||
SharedModule
|
SharedModule,
|
||||||
|
DsoPageModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
...ENTRY_COMPONENTS
|
...ENTRY_COMPONENTS
|
||||||
|
@@ -29,6 +29,7 @@ import { OrgUnitSidebarSearchListElementComponent } from './item-list-elements/s
|
|||||||
import { PersonSidebarSearchListElementComponent } from './item-list-elements/sidebar-search-list-elements/person/person-sidebar-search-list-element.component';
|
import { PersonSidebarSearchListElementComponent } from './item-list-elements/sidebar-search-list-elements/person/person-sidebar-search-list-element.component';
|
||||||
import { ProjectSidebarSearchListElementComponent } from './item-list-elements/sidebar-search-list-elements/project/project-sidebar-search-list-element.component';
|
import { ProjectSidebarSearchListElementComponent } from './item-list-elements/sidebar-search-list-elements/project/project-sidebar-search-list-element.component';
|
||||||
import { ItemSharedModule } from '../../item-page/item-shared.module';
|
import { ItemSharedModule } from '../../item-page/item-shared.module';
|
||||||
|
import { DsoPageModule } from '../../shared/dso-page/dso-page.module';
|
||||||
|
|
||||||
const ENTRY_COMPONENTS = [
|
const ENTRY_COMPONENTS = [
|
||||||
// put only entry components that use custom decorator
|
// put only entry components that use custom decorator
|
||||||
@@ -69,7 +70,8 @@ const COMPONENTS = [
|
|||||||
CommonModule,
|
CommonModule,
|
||||||
ItemSharedModule,
|
ItemSharedModule,
|
||||||
SharedModule,
|
SharedModule,
|
||||||
NgbTooltipModule
|
NgbTooltipModule,
|
||||||
|
DsoPageModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
...COMPONENTS,
|
...COMPONENTS,
|
||||||
|
@@ -51,6 +51,7 @@ import { ItemVersionsModule } from './versions/item-versions.module';
|
|||||||
import { BitstreamRequestACopyPageComponent } from './bitstreams/request-a-copy/bitstream-request-a-copy-page.component';
|
import { BitstreamRequestACopyPageComponent } from './bitstreams/request-a-copy/bitstream-request-a-copy-page.component';
|
||||||
import { FileSectionComponent } from './simple/field-components/file-section/file-section.component';
|
import { FileSectionComponent } from './simple/field-components/file-section/file-section.component';
|
||||||
import { ItemSharedModule } from './item-shared.module';
|
import { ItemSharedModule } from './item-shared.module';
|
||||||
|
import { DsoPageModule } from '../shared/dso-page/dso-page.module';
|
||||||
|
|
||||||
|
|
||||||
const ENTRY_COMPONENTS = [
|
const ENTRY_COMPONENTS = [
|
||||||
@@ -89,7 +90,6 @@ const DECLARATIONS = [
|
|||||||
OrcidSyncSettingsComponent,
|
OrcidSyncSettingsComponent,
|
||||||
OrcidQueueComponent,
|
OrcidQueueComponent,
|
||||||
ItemAlertsComponent,
|
ItemAlertsComponent,
|
||||||
VersionedItemComponent,
|
|
||||||
BitstreamRequestACopyPageComponent,
|
BitstreamRequestACopyPageComponent,
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -107,6 +107,7 @@ const DECLARATIONS = [
|
|||||||
NgxGalleryModule,
|
NgxGalleryModule,
|
||||||
NgbAccordionModule,
|
NgbAccordionModule,
|
||||||
UploadModule,
|
UploadModule,
|
||||||
|
DsoPageModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
...DECLARATIONS,
|
...DECLARATIONS,
|
||||||
|
@@ -10,16 +10,14 @@ import { TabbedRelatedEntitiesSearchComponent } from './simple/related-entities/
|
|||||||
import { ItemVersionsDeleteModalComponent } from './versions/item-versions-delete-modal/item-versions-delete-modal.component';
|
import { ItemVersionsDeleteModalComponent } from './versions/item-versions-delete-modal/item-versions-delete-modal.component';
|
||||||
import { ItemVersionsSummaryModalComponent } from './versions/item-versions-summary-modal/item-versions-summary-modal.component';
|
import { ItemVersionsSummaryModalComponent } from './versions/item-versions-summary-modal/item-versions-summary-modal.component';
|
||||||
import { MetadataValuesComponent } from './field-components/metadata-values/metadata-values.component';
|
import { MetadataValuesComponent } from './field-components/metadata-values/metadata-values.component';
|
||||||
import { DsoPageVersionButtonComponent } from '../shared/dso-page/dso-page-version-button/dso-page-version-button.component';
|
|
||||||
import { PersonPageClaimButtonComponent } from '../shared/dso-page/person-page-claim-button/person-page-claim-button.component';
|
|
||||||
import { GenericItemPageFieldComponent } from './simple/field-components/specific-field/generic/generic-item-page-field.component';
|
import { GenericItemPageFieldComponent } from './simple/field-components/specific-field/generic/generic-item-page-field.component';
|
||||||
import { MetadataRepresentationListComponent } from './simple/metadata-representation-list/metadata-representation-list.component';
|
import { MetadataRepresentationListComponent } from './simple/metadata-representation-list/metadata-representation-list.component';
|
||||||
import { RelatedItemsComponent } from './simple/related-items/related-items-component';
|
import { RelatedItemsComponent } from './simple/related-items/related-items-component';
|
||||||
import { DsoPageOrcidButtonComponent } from '../shared/dso-page/dso-page-orcid-button/dso-page-orcid-button.component';
|
|
||||||
|
|
||||||
const ENTRY_COMPONENTS = [
|
const ENTRY_COMPONENTS = [
|
||||||
ItemVersionsDeleteModalComponent,
|
ItemVersionsDeleteModalComponent,
|
||||||
ItemVersionsSummaryModalComponent,
|
ItemVersionsSummaryModalComponent,
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const COMPONENTS = [
|
const COMPONENTS = [
|
||||||
@@ -27,12 +25,9 @@ const COMPONENTS = [
|
|||||||
RelatedEntitiesSearchComponent,
|
RelatedEntitiesSearchComponent,
|
||||||
TabbedRelatedEntitiesSearchComponent,
|
TabbedRelatedEntitiesSearchComponent,
|
||||||
MetadataValuesComponent,
|
MetadataValuesComponent,
|
||||||
DsoPageVersionButtonComponent,
|
|
||||||
PersonPageClaimButtonComponent,
|
|
||||||
GenericItemPageFieldComponent,
|
GenericItemPageFieldComponent,
|
||||||
MetadataRepresentationListComponent,
|
MetadataRepresentationListComponent,
|
||||||
RelatedItemsComponent,
|
RelatedItemsComponent,
|
||||||
DsoPageOrcidButtonComponent
|
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import { ChangeDetectionStrategy, Injector, NO_ERRORS_SCHEMA } from '@angular/core';
|
import { Injector, NO_ERRORS_SCHEMA } from '@angular/core';
|
||||||
import { of as observableOf } from 'rxjs';
|
import { of as observableOf } from 'rxjs';
|
||||||
import { RouterTestingModule } from '@angular/router/testing';
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
@@ -10,13 +10,13 @@ import { AuthorizationDataService } from '../../../core/data/feature-authorizati
|
|||||||
import { AuthService } from '../../../core/auth/auth.service';
|
import { AuthService } from '../../../core/auth/auth.service';
|
||||||
import { AuthServiceStub } from '../../testing/auth-service.stub';
|
import { AuthServiceStub } from '../../testing/auth-service.stub';
|
||||||
import { MenuService } from '../../menu/menu.service';
|
import { MenuService } from '../../menu/menu.service';
|
||||||
import {
|
|
||||||
ExpandableNavbarSectionComponent
|
|
||||||
} from '../../../navbar/expandable-navbar-section/expandable-navbar-section.component';
|
|
||||||
import { MenuItemModel } from '../../menu/menu-item/models/menu-item.model';
|
import { MenuItemModel } from '../../menu/menu-item/models/menu-item.model';
|
||||||
import { ThemeService } from '../../theme-support/theme.service';
|
import { ThemeService } from '../../theme-support/theme.service';
|
||||||
import { getMockThemeService } from '../../mocks/theme-service.mock';
|
import { getMockThemeService } from '../../mocks/theme-service.mock';
|
||||||
|
|
||||||
|
|
||||||
|
import { DsoPageModule } from '../dso-page.module';
|
||||||
|
|
||||||
describe('DsoEditMenuComponent', () => {
|
describe('DsoEditMenuComponent', () => {
|
||||||
let comp: DsoEditMenuComponent;
|
let comp: DsoEditMenuComponent;
|
||||||
let fixture: ComponentFixture<DsoEditMenuComponent>;
|
let fixture: ComponentFixture<DsoEditMenuComponent>;
|
||||||
@@ -46,7 +46,7 @@ describe('DsoEditMenuComponent', () => {
|
|||||||
});
|
});
|
||||||
spyOn(menuService, 'getMenuTopSections').and.returnValue(observableOf([section]));
|
spyOn(menuService, 'getMenuTopSections').and.returnValue(observableOf([section]));
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [TranslateModule.forRoot(), RouterTestingModule],
|
imports: [TranslateModule.forRoot(), RouterTestingModule, DsoPageModule],
|
||||||
declarations: [DsoEditMenuComponent],
|
declarations: [DsoEditMenuComponent],
|
||||||
providers: [
|
providers: [
|
||||||
Injector,
|
Injector,
|
||||||
@@ -54,15 +54,10 @@ describe('DsoEditMenuComponent', () => {
|
|||||||
{provide: AuthService, useClass: AuthServiceStub},
|
{provide: AuthService, useClass: AuthServiceStub},
|
||||||
{provide: ActivatedRoute, useValue: routeStub},
|
{provide: ActivatedRoute, useValue: routeStub},
|
||||||
{provide: AuthorizationDataService, useValue: authorizationService},
|
{provide: AuthorizationDataService, useValue: authorizationService},
|
||||||
{ provide: ThemeService, useValue: getMockThemeService() },
|
{provide: ThemeService, useValue: getMockThemeService()},
|
||||||
],
|
],
|
||||||
schemas: [NO_ERRORS_SCHEMA]
|
schemas: [NO_ERRORS_SCHEMA]
|
||||||
}).overrideComponent(ExpandableNavbarSectionComponent, {
|
}).compileComponents();
|
||||||
set: {
|
|
||||||
changeDetection: ChangeDetectionStrategy.Default,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@@ -0,0 +1,55 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
import { RouterModule } from '@angular/router';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { DsoEditMenuComponent } from '../dso-page/dso-edit-menu/dso-edit-menu.component';
|
||||||
|
import {
|
||||||
|
DsoEditMenuSectionComponent
|
||||||
|
} from '../dso-page/dso-edit-menu/dso-edit-menu-section/dso-edit-menu-section.component';
|
||||||
|
import {
|
||||||
|
DsoEditMenuExpandableSectionComponent
|
||||||
|
} from '../dso-page/dso-edit-menu/dso-edit-expandable-menu-section/dso-edit-menu-expandable-section.component';
|
||||||
|
import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
|
||||||
|
|
||||||
|
const COMPONENTS = [
|
||||||
|
DsoEditMenuComponent,
|
||||||
|
DsoEditMenuSectionComponent,
|
||||||
|
DsoEditMenuExpandableSectionComponent,
|
||||||
|
];
|
||||||
|
|
||||||
|
const ENTRY_COMPONENTS = [
|
||||||
|
];
|
||||||
|
|
||||||
|
const MODULES = [
|
||||||
|
TranslateModule,
|
||||||
|
RouterModule,
|
||||||
|
CommonModule,
|
||||||
|
NgbTooltipModule,
|
||||||
|
];
|
||||||
|
const PROVIDERS = [
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
...MODULES
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
...COMPONENTS,
|
||||||
|
...ENTRY_COMPONENTS,
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
...PROVIDERS,
|
||||||
|
...ENTRY_COMPONENTS,
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
...COMPONENTS
|
||||||
|
]
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This module handles all components, providers and modules that are needed for the menu
|
||||||
|
*/
|
||||||
|
export class DsoPageModule {
|
||||||
|
|
||||||
|
}
|
||||||
|
@@ -1,6 +1,3 @@
|
|||||||
import {
|
|
||||||
ItemVersionsSummaryModalComponent
|
|
||||||
} from '../../item/item-versions/item-versions-summary-modal/item-versions-summary-modal.component';
|
|
||||||
import { getFirstCompletedRemoteData, getFirstSucceededRemoteDataPayload } from '../../../core/shared/operators';
|
import { getFirstCompletedRemoteData, getFirstSucceededRemoteDataPayload } from '../../../core/shared/operators';
|
||||||
import { RemoteData } from '../../../core/data/remote-data';
|
import { RemoteData } from '../../../core/data/remote-data';
|
||||||
import { Version } from '../../../core/shared/version.model';
|
import { Version } from '../../../core/shared/version.model';
|
||||||
@@ -10,12 +7,15 @@ import { WorkspaceItem } from '../../../core/submission/models/workspaceitem.mod
|
|||||||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
||||||
import { VersionDataService } from '../../../core/data/version-data.service';
|
import { VersionDataService } from '../../../core/data/version-data.service';
|
||||||
import { VersionHistoryDataService } from '../../../core/data/version-history-data.service';
|
import { VersionHistoryDataService } from '../../../core/data/version-history-data.service';
|
||||||
import { ItemVersionsSharedService } from '../../item/item-versions/item-versions-shared.service';
|
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { WorkspaceitemDataService } from '../../../core/submission/workspaceitem-data.service';
|
import { WorkspaceitemDataService } from '../../../core/submission/workspaceitem-data.service';
|
||||||
import { ItemDataService } from '../../../core/data/item-data.service';
|
import { ItemDataService } from '../../../core/data/item-data.service';
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Observable, of } from 'rxjs';
|
import { Observable, of } from 'rxjs';
|
||||||
|
import { ItemVersionsSharedService } from '../../../item-page/versions/item-versions-shared.service';
|
||||||
|
import {
|
||||||
|
ItemVersionsSummaryModalComponent
|
||||||
|
} from '../../../item-page/versions/item-versions-summary-modal/item-versions-summary-modal.component';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Service to take care of all the functionality related to the version creation modal
|
* Service to take care of all the functionality related to the version creation modal
|
||||||
@@ -25,6 +25,7 @@ import { Observable, of } from 'rxjs';
|
|||||||
})
|
})
|
||||||
export class DsoVersioningModalService {
|
export class DsoVersioningModalService {
|
||||||
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected modalService: NgbModal,
|
protected modalService: NgbModal,
|
||||||
protected versionService: VersionDataService,
|
protected versionService: VersionDataService,
|
||||||
|
@@ -24,7 +24,7 @@ const ENTRY_COMPONENTS = [
|
|||||||
const MODULES = [
|
const MODULES = [
|
||||||
TranslateModule,
|
TranslateModule,
|
||||||
RouterModule,
|
RouterModule,
|
||||||
CommonModule
|
CommonModule,
|
||||||
];
|
];
|
||||||
const PROVIDERS = [
|
const PROVIDERS = [
|
||||||
|
|
||||||
|
@@ -238,13 +238,6 @@ import {
|
|||||||
ItemPageTitleFieldComponent
|
ItemPageTitleFieldComponent
|
||||||
} from '../item-page/simple/field-components/specific-field/title/item-page-title-field.component';
|
} from '../item-page/simple/field-components/specific-field/title/item-page-title-field.component';
|
||||||
import { MarkdownPipe } from './utils/markdown.pipe';
|
import { MarkdownPipe } from './utils/markdown.pipe';
|
||||||
import {
|
|
||||||
DsoEditMenuSectionComponent
|
|
||||||
} from './dso-page/dso-edit-menu/dso-edit-menu-section/dso-edit-menu-section.component';
|
|
||||||
import { DsoEditMenuComponent } from './dso-page/dso-edit-menu/dso-edit-menu.component';
|
|
||||||
import {
|
|
||||||
DsoEditMenuExpandableSectionComponent
|
|
||||||
} from './dso-page/dso-edit-menu/dso-edit-expandable-menu-section/dso-edit-menu-expandable-section.component';
|
|
||||||
import { GoogleRecaptchaModule } from '../core/google-recaptcha/google-recaptcha.module';
|
import { GoogleRecaptchaModule } from '../core/google-recaptcha/google-recaptcha.module';
|
||||||
import { MenuModule } from './menu/menu.module';
|
import { MenuModule } from './menu/menu.module';
|
||||||
import {
|
import {
|
||||||
@@ -351,7 +344,6 @@ const COMPONENTS = [
|
|||||||
ItemPageTitleFieldComponent,
|
ItemPageTitleFieldComponent,
|
||||||
ThemedSearchNavbarComponent,
|
ThemedSearchNavbarComponent,
|
||||||
ListableNotificationObjectComponent,
|
ListableNotificationObjectComponent,
|
||||||
DsoPageEditButtonComponent,
|
|
||||||
MetadataFieldWrapperComponent,
|
MetadataFieldWrapperComponent,
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -409,9 +401,6 @@ const ENTRY_COMPONENTS = [
|
|||||||
CommunitySidebarSearchListElementComponent,
|
CommunitySidebarSearchListElementComponent,
|
||||||
ScopeSelectorModalComponent,
|
ScopeSelectorModalComponent,
|
||||||
ListableNotificationObjectComponent,
|
ListableNotificationObjectComponent,
|
||||||
ExternalLinkMenuItemComponent,
|
|
||||||
DsoEditMenuSectionComponent,
|
|
||||||
DsoEditMenuExpandableSectionComponent,
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const PROVIDERS = [
|
const PROVIDERS = [
|
||||||
|
@@ -42,6 +42,7 @@ import {
|
|||||||
import { CommunityListElementComponent } from './app/shared/object-list/community-list-element/community-list-element.component';
|
import { CommunityListElementComponent } from './app/shared/object-list/community-list-element/community-list-element.component';
|
||||||
import { CollectionListElementComponent } from './app/shared/object-list/collection-list-element/collection-list-element.component';
|
import { CollectionListElementComponent } from './app/shared/object-list/collection-list-element/collection-list-element.component';
|
||||||
import { CollectionDropdownComponent } from './app/shared/collection-dropdown/collection-dropdown.component';
|
import { CollectionDropdownComponent } from './app/shared/collection-dropdown/collection-dropdown.component';
|
||||||
|
import { DsoPageModule } from '../../app/shared/dso-page/dso-page.module';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -84,6 +85,7 @@ const DECLARATIONS = [
|
|||||||
NavbarModule,
|
NavbarModule,
|
||||||
ItemPageModule,
|
ItemPageModule,
|
||||||
ItemSharedModule,
|
ItemSharedModule,
|
||||||
|
DsoPageModule,
|
||||||
],
|
],
|
||||||
declarations: DECLARATIONS,
|
declarations: DECLARATIONS,
|
||||||
providers: [
|
providers: [
|
||||||
|
@@ -119,6 +119,7 @@ import {
|
|||||||
} from './app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/external-source-tab/external-source-entry-import-modal/external-source-entry-import-modal.component';
|
} from './app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/external-source-tab/external-source-entry-import-modal/external-source-entry-import-modal.component';
|
||||||
import { ItemVersionsModule } from '../../app/item-page/versions/item-versions.module';
|
import { ItemVersionsModule } from '../../app/item-page/versions/item-versions.module';
|
||||||
import { ItemSharedModule } from '../../app/item-page/item-shared.module';
|
import { ItemSharedModule } from '../../app/item-page/item-shared.module';
|
||||||
|
import { DsoPageModule } from '../../app/shared/dso-page/dso-page.module';
|
||||||
|
|
||||||
const DECLARATIONS = [
|
const DECLARATIONS = [
|
||||||
FileSectionComponent,
|
FileSectionComponent,
|
||||||
@@ -206,6 +207,7 @@ const DECLARATIONS = [
|
|||||||
InfoModule,
|
InfoModule,
|
||||||
JournalEntitiesModule,
|
JournalEntitiesModule,
|
||||||
MenuModule,
|
MenuModule,
|
||||||
|
DsoPageModule,
|
||||||
MyDspaceSearchModule,
|
MyDspaceSearchModule,
|
||||||
NavbarModule,
|
NavbarModule,
|
||||||
NgbModule,
|
NgbModule,
|
||||||
|
@@ -12,8 +12,7 @@ import { NavbarModule } from '../../app/navbar/navbar.module';
|
|||||||
* Add components that use a custom decorator to ENTRY_COMPONENTS as well as DECLARATIONS.
|
* Add components that use a custom decorator to ENTRY_COMPONENTS as well as DECLARATIONS.
|
||||||
* This will ensure that decorator gets picked up when the app loads
|
* This will ensure that decorator gets picked up when the app loads
|
||||||
*/
|
*/
|
||||||
const ENTRY_COMPONENTS = [
|
const ENTRY_COMPONENTS = [];
|
||||||
];
|
|
||||||
|
|
||||||
const DECLARATIONS = [
|
const DECLARATIONS = [
|
||||||
...ENTRY_COMPONENTS,
|
...ENTRY_COMPONENTS,
|
||||||
@@ -32,7 +31,7 @@ const DECLARATIONS = [
|
|||||||
],
|
],
|
||||||
declarations: DECLARATIONS,
|
declarations: DECLARATIONS,
|
||||||
providers: [
|
providers: [
|
||||||
...ENTRY_COMPONENTS.map((component) => ({ provide: component }))
|
...ENTRY_COMPONENTS.map((component) => ({provide: component}))
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user